ancient change i forgot to push

This commit is contained in:
Jon Atkins
2016-06-13 20:37:24 +01:00
parent ca33fe9ae6
commit 8f6f89a9f3

View File

@ -201,7 +201,7 @@ window.setupMap = function() {
portalsFactionLayers[i] = [L.layerGroup(), L.layerGroup(), L.layerGroup()]; portalsFactionLayers[i] = [L.layerGroup(), L.layerGroup(), L.layerGroup()];
portalsLayers[i] = L.layerGroup(portalsFactionLayers[i]); portalsLayers[i] = L.layerGroup(portalsFactionLayers[i]);
map.addLayer(portalsLayers[i]); map.addLayer(portalsLayers[i]);
var t = (i === 0 ? 'Unclaimed' : 'Level ' + i) + ' Portals'; var t = (i === 0 ? 'Unclaimed/Placeholder' : 'Level ' + i) + ' Portals';
addLayers[t] = portalsLayers[i]; addLayers[t] = portalsLayers[i];
// Store it in hiddenLayer to remove later // Store it in hiddenLayer to remove later
if(!isLayerGroupDisplayed(t, true)) hiddenLayer.push(portalsLayers[i]); if(!isLayerGroupDisplayed(t, true)) hiddenLayer.push(portalsLayers[i]);