Documentation menu
Developer guides

Ola Maps Web SDK v1 - Map Events & Controls

Important Notice
The Web SDK v1 support ended on March 31, 2026. We will no longer be providing any support for Web SDK v1. Please migrate to our Web SDK v2 for new features and improvements, and continued support.
This documentation provides methods for adding map events and controls

Map Events

OnMapLoad Event

OnMapFailure Event

onMapIdle Event

onMapClick Event

onMapMove Event

onMapMoveStart Event

onMapMoveEnd Event

onMapZoom Event

onMapZoomStart Event

onMapZoomEnd Event

onMapPitch Event

onMapPitchStart Event

onMapPitchEnd Event

onMapRotate Event

Get Map Styles

Map Event Demonstration

Try performing some actions like click,zoom,rotate etc on the map to see the events being triggered.

Map Controls

Enable Map Rotation

Disable Map Rotation

Enable Map Double Click Zoom

Disable Map Double Click Zoom

Enable Map Scroll

Disable Map Scroll

Enable Map Zoom

Disable Map Zoom

Enable Map Compass