• JMap.Map.zoomTo

    Zoom or unzoom the map (animated)

    Parameters

    • zoom: number

      The zoom level to apply

    • Optional options: JPanAndZoomOptions

      animation, zoom padding, stop event, etc ...

    Returns void

    Throws

    Error if no zoom is passed

    Example

    // Zoom or unzoom the map to reach the desired zoom level
    JMap.Map.zoomTo(4.45)