The DoubleClickZoomHandler allows the user to zoom the map at a point by double clicking or double tapping.
DoubleClickZoomHandler
Disables the "double click to zoom" interaction.
map.doubleClickZoom.disable(); Copy
map.doubleClickZoom.disable();
Enables the "double click to zoom" interaction.
map.doubleClickZoom.enable(); Copy
map.doubleClickZoom.enable();
Returns a Boolean indicating whether the "double click to zoom" interaction is active, i.e. currently being used.
true if the "double click to zoom" interaction is active.
true
Returns a Boolean indicating whether the "double click to zoom" interaction is enabled.
true if the "double click to zoom" interaction is enabled.
The
DoubleClickZoomHandlerallows the user to zoom the map at a point by double clicking or double tapping.