Zoom
- Map zoom
// Zoom in map.zoom(true, true); // Zoom out map.zoom(false, true);
- First argument : numbers or conditions that use to define the level of map zooming (1-20,true for zoom in, false for zoom out)
- Second argument: Show animation, default is false
- Zoom value
var result = map.zoom();
- No argument: Get the zoom value
Example
Example