Skip to content

Instantly share code, notes, and snippets.

@dbauszus-glx
Created August 23, 2022 08:20
Show Gist options
  • Save dbauszus-glx/e1a88d0c6ffef1655b02983383689e10 to your computer and use it in GitHub Desktop.
Save dbauszus-glx/e1a88d0c6ffef1655b02983383689e10 to your computer and use it in GitHub Desktop.
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