update default and plugin base maps to allow zooming up to level 21, and scale the tiles when they don't support such a resolution

This commit is contained in:
Jon Atkins
2014-05-29 01:23:25 +01:00
parent 6c35c8d238
commit a05ac61cb4
9 changed files with 22 additions and 24 deletions

View File

@ -2,7 +2,7 @@
// @id iitc-plugin-bing-maps
// @name IITC plugin: Bing maps
// @category Map Tiles
// @version 0.1.2.@@DATETIMEVERSION@@
// @version 0.1.3.@@DATETIMEVERSION@@
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@
// @downloadURL @@DOWNLOADURL@@
@ -27,7 +27,7 @@ window.plugin.mapBing.setupBingLeaflet = function() {
window.plugin.mapBing.setup = function() {
window.plugin.mapBing.setupBingLeaflet();
//set this to your API key
var bingApiKey = 'ArR2hTa2C9cRQZT-RmgrDkfvh3PwEVRl0gB34OO4wJI7vQNElg3DDWvbo5lfUs3p';
@ -59,7 +59,7 @@ window.plugin.mapBing.setup = function() {
if (bingMapContainers[type].getLayers().length == 0) {
// dummy layer group is empty - create the bing layer
console.log('basemap-bing: creating '+type+' layer');
var bingMap = new L.BingLayer (bingApiKey, {type: type, maxZoom:20});
var bingMap = new L.BingLayer (bingApiKey, {type: type, maxNativeZoom: 19, maxZoom: 21});
bingMapContainers[type].addLayer(bingMap);
}
}