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:
@ -2,7 +2,7 @@
|
||||
// @id iitc-plugin-basemap-mapquest-open-aerial@jonatkins
|
||||
// @name IITC plugin: MapQuest Open Satellite view (US Only)
|
||||
// @category Map Tiles
|
||||
// @version 0.1.0.@@DATETIMEVERSION@@
|
||||
// @version 0.1.1.@@DATETIMEVERSION@@
|
||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||
// @updateURL @@UPDATEURL@@
|
||||
// @downloadURL @@DOWNLOADURL@@
|
||||
@ -27,7 +27,7 @@ window.plugin.mapTileMapQuestSat.addLayer = function() {
|
||||
var mqSubdomains = [ 'otile1','otile2', 'otile3', 'otile4' ];
|
||||
var mqTileUrlPrefix = window.location.protocol !== 'https:' ? 'http://{s}.mqcdn.com' : 'https://{s}-s.mqcdn.com';
|
||||
//MapQuest satellite coverage outside of the US is rather limited - so not really worth having as we have google as an op!
|
||||
var mqSatOpt = {attribution: 'Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency', maxZoom: 18, subdomains: mqSubdomains};
|
||||
var mqSatOpt = {attribution: 'Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency', maxNativeZoom: 18, maxZoom: 21, subdomains: mqSubdomains};
|
||||
var mqSat = new L.TileLayer('http://{s}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg',mqSatOpt);
|
||||
|
||||
layerChooser.addBaseLayer(mqSat, "MapQuest Open Satellite");
|
||||
|
Reference in New Issue
Block a user