Skip to content

Conversation

@Auspicus
Copy link

@Auspicus Auspicus commented Dec 23, 2025

Adds a test to cover different cases where minZoom and maxZoom are adjusted together. Ensures that minZoom and maxZoom never cross. The same has been done for minPitch and maxPitch.

fixes: #2572

see also: maplibre/maplibre-gl-js#6926 where a bug was fixed causing pitch to also throw an error if changed in the wrong order

@Auspicus Auspicus changed the title Call setMinZoom and setMaxZoom in the right order to ensure that minZoom and maxZoom never cross Call setMinZoom, setMaxZoom, setMinPitch and setMaxPitch in the right order to avoid error in Maplibre Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Changing minZoom and maxZoom at the same time can throw an error in Maplibre

1 participant