Skip to content
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

Add additional properties from leaflet to GridLayer #731

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant