• JMap.Map.panTo

    Move and center the map to the location (animated)

    Parameters

    • center: JLocation

      The location where the map will be centered

    • Optional stopJMapEventPropagation: boolean

      if true will prevent JMap events to be fired

    Returns void

    Throws

    Error if no or incorrect center is passed

    Example

    // Move the map to the desired location
    JMap.Map.panTo({ x: 45.34, y: 65.87 })