• JMap.Map.panAndZoomTo

    Move and zoom (or unzoom) the map (animated)

    Parameters

    • center: JLocation

      The location where the map will be centered

    • zoom: number

      The zoom level to apply

    • Optional options: JPanAndZoomOptions

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

    Returns void

    Throws

    Error if bad parameters are passed

    Example

    // Move and zoom the map
    JMap.Map.panAndZoomTo({ x: 45.34, y: 65.87 }, 5)