made osm-less layer chooser work again (fix for #152)

This commit is contained in:
Philipp Schaefer 2013-04-12 23:25:32 +02:00
parent 934fa8242d
commit d9ead0597f

View File

@ -110,7 +110,7 @@ window.setupMap = function() {
//var cmMid = new L.TileLayer('http://{s}.tile.cloudmade.com/{your api key here}/999/256/{z}/{x}/{y}.png', cmOpt); //var cmMid = new L.TileLayer('http://{s}.tile.cloudmade.com/{your api key here}/999/256/{z}/{x}/{y}.png', cmOpt);
// cant make osm default per their tile usage policy (would cause too much traffic) // cant make osm default per their tile usage policy (would cause too much traffic)
var views = [/*cmMid, cmMin, osm,*/null, null, null, new L.Google('INGRESS'), new L.Google('ROADMAP'), var views = [/*cmMid, cmMin, osm,*/new L.Google('INGRESS'), new L.Google('ROADMAP'),
new L.Google('SATELLITE'), new L.Google('HYBRID')]; new L.Google('SATELLITE'), new L.Google('HYBRID')];
@ -140,10 +140,10 @@ window.setupMap = function() {
//'OSM Midnight': views[0], //'OSM Midnight': views[0],
//'OSM Minimal': views[1], //'OSM Minimal': views[1],
//'OSM Mapnik': views[2], //'OSM Mapnik': views[2],
'Default Ingress Map': views[3], 'Default Ingress Map': views[0],
'Google Roads': views[4], 'Google Roads': views[1],
'Google Satellite': views[5], 'Google Satellite': views[2],
'Google Hybrid': views[6] 'Google Hybrid': views[3]
}, addLayers); }, addLayers);
map.addControl(window.layerChooser); map.addControl(window.layerChooser);