Skip to content

Using external controls to zoom the map

Just in case JavaScript Maps’ built in zoom controls do not offer enough customization options, you can replace them with your own, HTML-based elements.

This demo shows how to use map API functions zoomIn(), zoomOut() and zoomToLongLat() to, well, zoom in, zoom out and position the map using external controls.