I'm trying to figure out how I can specify the maxNativeZoom
multiple times for different regions/bounds.
Our tile server has more detailed tiles available for some parts of Europe. I would like to allow the user to zoom in on these regions, but not on the less detailed region.
- We have most of Europe available until zoom level 13.
- Most of the Netherlands is available at zoom level 16.
- Some parts of the Netherlands (cities) are even available at zoom level 17.
Currently, I set my maxNativeZoom
to 17. This way, the user can zoom in on the cities and retrieve the detailed tiles. Sadly, for the rest of Europe, this will result in gray tiles and a lot of 404 errors.
Is there a way, maybe with a moveend
JavaScript trigger, to have different maxNativeZoom
levels for specific bounds? Perhaps this is not smart to do, if so, please also let me know! :)