From 8c6af65e3602947478ccddba5253861406962f37 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Mon, 24 Oct 2016 15:13:38 +0200 Subject: [PATCH] Limit the map zoom level to 3 --- app/static/src/js/modules/lightslidernetwork-init.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/static/src/js/modules/lightslidernetwork-init.js b/app/static/src/js/modules/lightslidernetwork-init.js index d1cd5c96..f386fa56 100644 --- a/app/static/src/js/modules/lightslidernetwork-init.js +++ b/app/static/src/js/modules/lightslidernetwork-init.js @@ -57,6 +57,10 @@ LightSliderNetworkInit.prototype.init = function() { that.initMarkers(); }); + google.maps.event.addListener(that.map, 'zoom_changed', function() { + if (that.map.getZoom() < 3) that.map.setZoom(3); + }); + } }; -- 2.39.5