This example shows how to change properties of individual points, such as marker color or elevation, without reloading the visualization with new data.
Below is a list of a number example point properties that you can change dynamically.
See the documentation of the update()
method for a complete list of point properties that can be updated.
markerSize, the notification method to call is:
markersLayer.update("markerSize");
markerColor, the notification method to call is:
markersLayer.update("markerColor");
markerShape, the notification method to call is:
markersLayer.update("markerShape");
elevation, the notification method to call is:
elevationLayer.update("elevation");
All the code generating this visualization is inlined into the HTML page, view page source to see the code.