bump version nimber in preperation for next release

remove maxZoom leaflet setting - as it overrides individual map layer settings - fix #466
ensure map zoom is valid for selected base layer - replicate functionality removed from current leaflet
This commit is contained in:
Jon Atkins 2013-08-04 07:17:14 +01:00
parent 124242ed86
commit 54ebbc3896
2 changed files with 7 additions and 3 deletions

View File

@ -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());
});

View File

@ -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@@