back | source
  1. 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
  2. Example
  3. Zoom value
    var result = map.zoom();
    • No argument: Get the zoom value