• JMap.Map.zoomToRect

    Zoom or unzoom to fit exactly the boundary box (animated)

    Parameters

    Returns void

    Throws

    Error if an invalid bbox is passed

    Example

    // Zoom or unzoom to fit exactly the boundary box
    JMap.Map.zoomToRect({ sw: { x: 12, y: 34 }, ne: { x: 23, y: 32 }})