• JMap.Map.setScale

    Zooms or unzooms the map to reach the given map scale

    Parameters

    • scaleDenominator: number

      must be greater than 0

    • Optional options: JPanAndZoomOptions

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

    Returns number

    Example

    // zooms or unzooms the map to reach the given map scale
    JMap.Map.setScale(2344, { animate: true })