Skip to content

Conversation

MixMasterMitch
Copy link

This PR adds the following properties from leaflet GridLayer:

  • minZoom
  • maxZoom
  • minNativeZoom
  • maxNativeZoom
  • keepBuffer

See https://leafletjs.com/reference.html#gridlayer

(I am particularly interested in the maxNativeZoom option to solve the problem described in this SO)

This change has been tested by zooming in on the simple example after applying the following diff:

diff --git a/docs/examples/simple.md b/docs/examples/simple.md
index e6732fc..6266f17 100644
--- a/docs/examples/simple.md
+++ b/docs/examples/simple.md
@@ -21,6 +21,7 @@ pageClass: example-page
     <l-map
       v-if="showMap"
       :zoom="zoom"
+      :max-zoom="25"
       :center="center"
       :options="mapOptions"
       style="height: 80%"
@@ -30,6 +31,8 @@ pageClass: example-page
       <l-tile-layer
         :url="url"
         :attribution="attribution"
+        :max-native-zoom="18"
+        :max-zoom="25"
       />
       <l-marker :lat-lng="withPopup">
         <l-popup>

@MixMasterMitch
Copy link
Author

@DonNicoJs or @KoRiGaN, could I please get review of this change?

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.

2 participants