Move resonator layer back to layerGroup "portalsLayers",

to make it work with portal level filter.
And modify cleanup code to work with this change.
This commit is contained in:
Xelio
2013-02-10 16:06:13 +08:00
parent c34d7ee3a2
commit eecec0b4a4
3 changed files with 23 additions and 28 deletions

View File

@ -81,15 +81,6 @@ window.setupMap = function() {
map.addLayer(linksLayer, true);
addLayers['Links'] = linksLayer;
resonatorsLayers = [];
for(var i = 1; i <= 8; i++) {
resonatorsLayers[i] = L.layerGroup([]);
map.addLayer(resonatorsLayers[i]);
var t = 'Level ' + i + ' Portal resonators';
addLayers[t] = resonatorsLayers[i];
}
map.addControl(new L.Control.Layers({
'OSM Cloudmade Midnight': views[0],
'OSM Cloudmade Minimal': views[1],