
- #State click map how to#
- #State click map code#
All currently requested tiles have loaded. Eventįired when a "box zoom" interaction ends.įired when a "box zoom" interaction starts.įired when a pointing device is pressed and released at the same point on the map.įired when the popup is closed manually or programatically.įired when the right button of the mouse is clicked.įired when any map data loads or changes.įired when shapes are added to the DataSource.įired when shapes are removed from the DataSource.įired when the DataSource object is updated.įired when a pointing device is clicked twice at the same point on the map.įired repeatedly during a "drag to pan" interaction on the map, popup, or HTML marker.įired when a "drag to pan" interaction ends on the map, popup, or HTML marker.įired when a "drag to pan" interaction starts on the map, popup, or HTML marker.įired after the last frame rendered before the map enters an "idle" state: The following table lists all supported map class events. See the Pen Interacting with the map - HTML Marker events by Azure Maps on CodePen. It also highlights the name of the events that get fired up as you interact with the HTML marker. #State click map code#
The following code adds JavaScript map events to an HTML marker. See the Pen Interacting with the map – Layer Events by Azure Maps on CodePen. The heat map and tile layers don't support any of these events. The symbol, bubble, line, and polygon layer all support the same set of events. The following code highlights the fired event as you interact with the Symbol Layer. See the Pen Interact with the map – mouse events by Azure Maps on CodePen. You can also click on Edit on CodePen to modify the code on CodePen. You can click on the JS tab to view and edit the JavaScript code. Play with the map below, and see the corresponding mouse events highlighted on the right. You can also highlight events when you interact with an HTML marker. The property highlight events on the map and on different layers of the map.
#State click map how to#
This article shows you how to use map events class.