Updating properties

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");

    Change marker sizes

  • markerColor, the notification method to call is:

    markersLayer.update("markerColor");

    Change marker colors

  • markerShape, the notification method to call is:

    markersLayer.update("markerShape");

    Change marker types

  • elevation, the notification method to call is:

    elevationLayer.update("elevation");

    Change elevations


All the code generating this visualization is inlined into the HTML page, view page source to see the code.