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:
parent
124242ed86
commit
54ebbc3896
@ -1,4 +1,4 @@
|
|||||||
// SETUP /////////////////////////////////////////////////////////////
|
/// SETUP /////////////////////////////////////////////////////////////
|
||||||
// these functions set up specific areas after the boot function
|
// these functions set up specific areas after the boot function
|
||||||
// created a basic framework. All of these functions should only ever
|
// created a basic framework. All of these functions should only ever
|
||||||
// be run once.
|
// be run once.
|
||||||
@ -129,7 +129,7 @@ window.setupMap = function() {
|
|||||||
|
|
||||||
|
|
||||||
window.map = new L.Map('map', $.extend(getPosition(),
|
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
|
// 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());
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
2
main.js
2
main.js
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @id ingress-intel-total-conversion@jonatkins
|
// @id ingress-intel-total-conversion@jonatkins
|
||||||
// @name IITC: Ingress intel map total conversion
|
// @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
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||||
// @updateURL @@UPDATEURL@@
|
// @updateURL @@UPDATEURL@@
|
||||||
// @downloadURL @@DOWNLOADURL@@
|
// @downloadURL @@DOWNLOADURL@@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user