OpenLayers Click Event Example

Author: Julian Hansen, August 2017

Click the map to randomly load markers. Markers will be cleared on each reload. Custom data is associated with each marker - this can be used to interact with the rest of the page as required.

Click the markers to see the custom data linked to the marker

Custom Data for clicked item