References

⇠ Go Back

addMarkers

addMarkers(eventCallback = {})

Display markers, set by points defined, on the map and add event listeners to each.

Parameters

eventCallback - Object

Contains all events with their associated function.

Example:

{
    click: handleClickOnMarker,
    mouseover: handleMouseEnterOnMarker,
    mouseout: handleMouseLeaveOnMarker
}