Events

Listed below are the events made available in the JavaScript Maps API. The addListener() event handler is used to listen for an event on the source object and call a custom function when the specified event occurs.

 

Map Events

The following Event Listeners are available for MQA.TileMap: movestart, move, moveend, dragstart, drag, dragend, click, doubleclick, zoomstart, zoomend, maptypechanged, mapcleared, shapeadded, shaperemoved, rolloverclose, rolloveropen, infowindowopen, infowindowclose, shapecollectionremoved, shapecollectionadded.

 

 

Add Poi | Remove All Shapes | Add Shape Collection

Zoom Out | Zoom In

Aerial | Hybrid | Street

Clear Events

Events Fired

 

 

 

 

Points (POIs) & InfoWindow Events

The following Event Listeners are available for MQA.Poi and MQA.HtmlPoi: mouseup, mousedown, mouseover, mouseout, click, dblclick, removed (when POI is removed from map), rolloveropen, rolloverclose, infowindowopen, infowindowclose, infowindowmouseoverstate, infowindowmouseoutstate.

 

 

Remove POI

Events Fired

 

 

 

 

Overlay Events

The following Event Listeners are available for MQA.RectangleOverlay, MQA.Circleoverlay, MQA.PolygonOverlay, and other overlays: mouseup, mousedown, mouseover, mouseout, click, dblclick, mousemove and remove (when shape is removed from map).

 

 

Remove Shape

Events Fired