Make it possible to set a minZoom, maxZoom and a maxNativeZoom

Created on 17 February 2022, over 2 years ago
Updated 19 June 2024, 3 months ago

Problem/Motivation

1.
Right now the maximum zoom of Leaflet Maptiler is limited to 18 but Maptiler supports higher zooms than that.
Leaflet map widgets (views and field formatters) also support higher zooms (up to 22 it seems).

2.
Also, it should be possible to define a maxNativeZoom on Leaflet Maptiler (https://leafletjs.com/reference.html#gridlayer-maxnativezoom). This will allow Maptiler maps to be easier to read when we zoom in. This is specially important for accessibility purposes.

Steps to reproduce

1.
On a Leaflet Map view, set the zoom to 22. Then, try to zoom to the maximum. You'll notice that the map won't load properly.

2.
This is not possible to set right now.

Proposed resolution

1.
Add a maxZoom and minZoom setting to Leaflet Maptiler, allowing map boundaries to expand (or decrease)

2.
Add these settings to Maptiler so they get applied globally.

Remaining tasks

Do it.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇵🇹Portugal rutiolma

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024