• Options
  • Events
Options

Events

Edit this page

When a specific action occurs on a target element, e.g. region hover, marker hover, region click, etc, a handler function is executed.

PropertyDescriptionParams
onLoadedTriggered when map is fully rendered (available since v1.1.0+)[Map instance map]
onViewportChangeTriggered when map viewport was changed[scale, transX, transY]
onRegionClickTriggered when a region is clicked[event, code]
onMarkerClickTriggered when a marker is clicked[event, markerIndex]
onRegionSelectedTriggered when a region was selected[code, isSelected, selectedRegions]
onMarkerSelectedTriggered when a marker was selected[index, isSelected, selectedMarkers]
onRegionTooltipShowTriggered when region tooltip was shown[event, tooltip, index]
onMarkerTooltipShowTriggered when marker tooltip was shown[event, tooltip, code]