diff --git a/code/boot.js b/code/boot.js index d627e8aa..683e36f4 100644 --- a/code/boot.js +++ b/code/boot.js @@ -1,4 +1,4 @@ -// SETUP ///////////////////////////////////////////////////////////// +/// SETUP ///////////////////////////////////////////////////////////// // these functions set up specific areas after the boot function // created a basic framework. All of these functions should only ever // be run once. @@ -129,7 +129,7 @@ window.setupMap = function() { window.map = new L.Map('map', $.extend(getPosition(), - {zoomControl: window.showZoom, minZoom: 1, maxZoom: 22} + {zoomControl: window.showZoom, minZoom: 1} )); // add empty div to leaflet control areas - to force other leaflet controls to move around IITC UI elements @@ -248,6 +248,10 @@ window.setMapBaseLayer = function() { } } + //also, leaflet no longer ensures the base layer zoom is suitable for the map (a bug? feature change?), so do so here + map.setZoom(map.getZoom()); + + }); diff --git a/main.js b/main.js index e783d772..f1644c0c 100644 --- a/main.js +++ b/main.js @@ -1,7 +1,7 @@ // ==UserScript== // @id ingress-intel-total-conversion@jonatkins // @name IITC: Ingress intel map total conversion -// @version 0.13.0.@@DATETIMEVERSION@@ +// @version 0.13.1.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@