The callback function passed here handles clicks on user-defined markers. See addMarker for documentation on creating markers.


  • callback (function): A callback function to execute. It will be passed an object with the following property:

    • id (number): The id of the marker clicked. It’s up to the user to use the id to act on the associated marker.

Returns: Nothing

Code Sample