GeoJson/Mapbox markers: let users change their attributes (e.g. color) via a button [EDITED]
- 阅读更多 关于 GeoJson/Mapbox markers: let users change their attributes (e.g. color) via a button [EDITED]
问题 (EDIT:I received some thumbs down because accidentally posted the question with an unfinished name, please don't be deterred) As in the example of https://www.mapbox.com/mapbox.js/example/v1.0.0/change-marker-color-click/ I'm trying to let the user change attributes (in this example the color) of markers. In this example of Mapbox the attribute of a marker is changed when the user clicks on the marker. However, I would like to change the attribute of markers when the user clicks on one of the