MapLibreLayerTranslateZoomFunction: (zoom: number) => number

Receives the zoom level from the OpenLayers view and can transform it for MapLibre in case the projection system used by OL isn't using a standard Mercator pyramid.

This enables the MapLibreLayer to work in Mercator zooms even if OL is using a localized projection (such as LV95 for Switzerland)

Type declaration

    • (zoom: number): number
    • Parameters

      • zoom: number

      Returns number