nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit 33c729c272f88a42239325ee4b96029e44c13ba8
parent 269f86733d66991f02079a1638e70facb59d085e
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Wed, 15 Mar 2017 11:42:28 +0300

explicitly set maxZoom=18 for map to avoid unexpected behavior when single layer doesnot have maxZoom

Diffstat:
Msrc/App.js | 3++-
Msrc/lib/leaflet.layer.rasterize/index.js | 2+-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/App.js b/src/App.js @@ -35,7 +35,8 @@ function setUp() { fadeAnimation: false, attributionControl: false, inertiaMaxSpeed: 1500, - worldCopyJump: true + worldCopyJump: true, + maxZoom: 18 } ); map.enableHashState('m', [10, 55.75185, 37.61856]); diff --git a/src/lib/leaflet.layer.rasterize/index.js b/src/lib/leaflet.layer.rasterize/index.js @@ -32,7 +32,7 @@ function getTempMap(zoom, fullSize, pixelBounds) { } ); - const map = L.map(container, {fadeAnimation: false, zoomAnimation: false, inertia: false}); + const map = L.map(container, {fadeAnimation: false, zoomAnimation: false, inertia: false, maxZoom: 18}); map.setView(center, zoom); return map; }