Created
August 23, 2022 08:20
-
-
Save dbauszus-glx/e1a88d0c6ffef1655b02983383689e10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
params.mapview.locations = new Proxy(params.mapview.locations, { | |
set: function(target, key, location){ | |
Reflect.set(...arguments) | |
// code to add a location view element to the listview element in the DOM. | |
return true | |
}, | |
deleteProperty: function (target, hook) { | |
Reflect.deleteProperty(...arguments) | |
// code to remove a location view element from the listview element in the DOM. | |
return true | |
}, | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment