increase zoom levels for google map layers to 20
add google terrain layer - max zoom possible here is 15 I did try experimenting with higher zoom for the MapQuest tiles. there was some success at 19, but not all tiles would load - reverted for now alternative to merging #212
This commit is contained in:
parent
d42d4bb9ea
commit
be430acc7d
12
code/boot.js
12
code/boot.js
@ -119,7 +119,7 @@ window.setupMap = function() {
|
|||||||
//their usage policy has no limits (except required notification above 4000 tiles/sec - we're perhaps at 50 tiles/sec based on CloudMade stats)
|
//their usage policy has no limits (except required notification above 4000 tiles/sec - we're perhaps at 50 tiles/sec based on CloudMade stats)
|
||||||
var mqSubdomains = [ 'otile1','otile2', 'otile3', 'otile4' ];
|
var mqSubdomains = [ 'otile1','otile2', 'otile3', 'otile4' ];
|
||||||
var mqTileUrlPrefix = window.location.protocol !== 'https:' ? 'http://{s}.mqcdn.com' : 'https://{s}-s.mqcdn.com';
|
var mqTileUrlPrefix = window.location.protocol !== 'https:' ? 'http://{s}.mqcdn.com' : 'https://{s}-s.mqcdn.com';
|
||||||
var mqMapOpt = {attribution: osmAttribution+', Tiles Courtesy of MapQuest', mazZoom: 18, detectRetena: true, subdomains: mqSubdomains};
|
var mqMapOpt = {attribution: osmAttribution+', Tiles Courtesy of MapQuest', maxZoom: 18, detectRetena: true, subdomains: mqSubdomains};
|
||||||
var mqMap = new L.TileLayer(mqTileUrlPrefix+'/tiles/1.0.0/map/{z}/{x}/{y}.jpg',mqMapOpt);
|
var mqMap = new L.TileLayer(mqTileUrlPrefix+'/tiles/1.0.0/map/{z}/{x}/{y}.jpg',mqMapOpt);
|
||||||
//MapQuest satellite coverage outside of the US is rather limited - so not really worth having as we have google as an option
|
//MapQuest satellite coverage outside of the US is rather limited - so not really worth having as we have google as an option
|
||||||
//var mqSatOpt = {attribution: 'Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency', mazZoom: 18, detectRetena: true, subdomains: mqSubdomains};
|
//var mqSatOpt = {attribution: 'Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency', mazZoom: 18, detectRetena: true, subdomains: mqSubdomains};
|
||||||
@ -127,10 +127,11 @@ window.setupMap = function() {
|
|||||||
|
|
||||||
var views = [
|
var views = [
|
||||||
/*0*/ mqMap,
|
/*0*/ mqMap,
|
||||||
/*1*/ new L.Google('INGRESS'),
|
/*1*/ new L.Google('INGRESS',{maxZoom:20}),
|
||||||
/*2*/ new L.Google('ROADMAP'),
|
/*2*/ new L.Google('ROADMAP',{maxZoom:20}),
|
||||||
/*3*/ new L.Google('SATELLITE',{maxZoom:20}),
|
/*3*/ new L.Google('SATELLITE',{maxZoom:20}),
|
||||||
/*4*/ new L.Google('HYBRID',{maxZoom:20})
|
/*4*/ new L.Google('HYBRID',{maxZoom:20}),
|
||||||
|
/*5*/ new L.Google('TERRAIN',{maxZoom:15})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
@ -161,7 +162,8 @@ window.setupMap = function() {
|
|||||||
'Default Ingress Map': views[1],
|
'Default Ingress Map': views[1],
|
||||||
'Google Roads': views[2],
|
'Google Roads': views[2],
|
||||||
'Google Satellite': views[3],
|
'Google Satellite': views[3],
|
||||||
'Google Hybrid': views[4]
|
'Google Hybrid': views[4],
|
||||||
|
'Google Terrain': views[5]
|
||||||
}, addLayers);
|
}, addLayers);
|
||||||
|
|
||||||
map.addControl(window.layerChooser);
|
map.addControl(window.layerChooser);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user