• JMap.Map.getZoomFromScale

    returns the zoom corresponding to the given scale.

    Parameters

    • scaleDenominator: number

      must be greater than 0

    • Optional latitude: number

      must be greater than 0

    Returns number

    Example

    // returns the corresponding zoom level for the given scale 2344
    JMap.Map.getZoomFromScale(2344)