From 9f039289d2a0855fde6d4d40e09249ac3a6de0da Mon Sep 17 00:00:00 2001 From: deanchen Date: Wed, 14 Apr 2021 14:21:47 +0800 Subject: [PATCH] fix: restore city namp on the map --- src/map.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/map.js b/src/map.js index f6957c3ec..7ed7d7a5a 100644 --- a/src/map.js +++ b/src/map.js @@ -882,11 +882,10 @@ var initialize = function() { }).addTo(map); //google satillite map - window.L.gridLayer.googleMutant({ - maxZoom: 20, - type: 'satellite' - }).addTo(map); - /* +// window.L.gridLayer.googleMutant({ +// maxZoom: 20, +// type: 'satellite' +// }).addTo(map); const googleSat = window.L.tileLayer( 'http://{s}.google.com/vt/lyrs=s,h&x={x}&y={y}&z={z}',{ maxZoom: 20, @@ -895,7 +894,6 @@ var initialize = function() { subdomains:['mt0','mt1','mt2','mt3'] }); googleSat.addTo(map); - */ window.L.TileLayer.FreeTown = window.L.TileLayer.extend({ getTileUrl: function(coords) {