Change resonators render min zoom level and radius

Change:
Resonators render minimum zoom level 16 -> 17
Resonators render radius 4 -> 3
Some cleanup and performance tuning
This commit is contained in:
Xelio
2013-02-11 02:22:35 +08:00
parent 259905b224
commit 7b7f229ac5
3 changed files with 8 additions and 8 deletions

View File

@ -102,7 +102,7 @@ window.setupMap = function() {
portalsLayers[i].eachLayer(function(item) {
var itemGuid = item.options.guid;
// check if 'item' is a resonator
if(!window.resonators[itemGuid]) return;
if(getTypeByGuid(itemGuid) != TYPE_RESONATOR) return true;
portalsLayers[i].removeLayer(item);
});
}