-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for lowering zoom levels #128
Comments
The main problem here is that if you set maxZoom greater than the maximum zoom of the layer (OSM Standard = 19), then nothing will be displayed on the map except for the gray background. maxZooms: CyclOSM = 20 For now I do not know how to enable the overzoom in Leaflet. |
ah right, guess this'll be solvable once osm org uses the osm vector tiles... actually.. could you use js to switch to vector tiles or is that too much work (and not worth it, just wait till osm does it themselves?) https://weeklyosm.eu/archives/17587#:~:text=Vector%20tiles%20are,as%20a%20map. |
This comment was marked as outdated.
This comment was marked as outdated.
Okay, that's how it works: map.options.maxZoom = 23
var layers = []
map.eachLayer(i => layers.push(i))
layers[0].options.maxZoom = 23 It remains to understand why this works, and when this code should be run :) For example, this would also be useful for such changesets: https://osm.org/changeset/160584534 |
in 0.7, a setting was added that enables overzoom when the Map Data layer is active. This option is disabled by default, because sometimes you can see gray tiles. |
Def if you're exploring data on osm using the "map data" layer in the layers tab, it would be nice to be able to zoom in more than the current z zoom limit
The text was updated successfully, but these errors were encountered: