umap icon indicating copy to clipboard operation
umap copied to clipboard

Set minNativeZoom and maxNativeZoom for a map

Open tordans opened this issue 3 years ago • 3 comments
trafficstars

This is similar to https://github.com/umap-project/umap/issues/103, but for the values.

  • maxNativeZoom https://leafletjs.com/reference.html#gridlayer-maxnativezoom
  • minNativeZoom

They allow to set a maxZoom for the tiles (that is the "native" value) independent from the maxZoom for the viewer.

Example:

  • https://supaplexosm.github.io/strassenraumkarte-neukoelln/?map=osm#21/52.48146/13.44826 allows to zoom in further than 19.
  • https://github.com/SupaplexOSM/strassenraumkarte-neukoelln/blob/main/index.html#L53-L54

tordans avatar Feb 18 '22 11:02 tordans