rkaravia / Leaflet.TileLayer.Swiss

Plugin for displaying Swiss map tiles
https://leaflet-tilelayer-swiss.karavia.ch/
MIT License
51 stars 3 forks source link

Additional zoom level #6

Open claudep opened 2 years ago

claudep commented 2 years ago

I have a use case, where I need an additional non-native zoom for a map. For the zoom level, I can easily add a maxZoom: 29 option, however, an additional resolution is also needed (0.05) so I have to change the Leaflet.TileLayer.Swiss.js file to include that resolution. Do you think it would be doable to allow some additional option for that, or maybe automatically add a resolution depending on maxZoom?

rkaravia commented 2 years ago

Yes, I think the way to go would be to allow providing your own array of resolutions, I will try to add this in the future.