onMarkerClick

onMarkerClick

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

Parameter:

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

    • marker(object): The marker clicked.

Returns: Nothing

Code Sample