From 4c3b9b7709497aa9660454eb82f1f91ca7661a64 Mon Sep 17 00:00:00 2001 From: Peter Szymczak Date: Wed, 30 Oct 2019 14:11:34 -0700 Subject: [PATCH] Reverting maxNativeZoom maxNativeZoom was changed to 18 from 21 in one of the releases of this module, which breaks React Leaftlet's ability to display Google Maps tiles in the 21 zoom level, although they do exist. --- src/leaflet.google.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/leaflet.google.js b/src/leaflet.google.js index 6505971..32ca04d 100644 --- a/src/leaflet.google.js +++ b/src/leaflet.google.js @@ -14,7 +14,7 @@ L.GridLayer.GoogleMutant = L.GridLayer.extend({ options: { minZoom: 0, - maxZoom: 18, + maxZoom: 21, tileSize: 256, subdomains: "abc", errorTileUrl: "", @@ -25,7 +25,7 @@ L.GridLayer.GoogleMutant = L.GridLayer.extend({ // 🍂option type: String = 'roadmap' // Google's map type. Valid values are 'roadmap', 'satellite' or 'terrain'. 'hybrid' is not really supported. type: "HYBRID", - maxNativeZoom: 18, + maxNativeZoom: 21, }, initialize(options) {