/* exported ATMOverlay */ /* globals AbstractIconOverlay: true */ var LocatorOverlay = AbstractIconOverlay.extend({ initialize: function(wsChannel, layerMgr) { AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "locator"); }, getMaxDisplayedZoom: function(){ return 6; }, getIcon: function(obj){ var img = "pics/locator_beacon_level1.png" if (obj.attributes.level == "2") img = "pics/locator_beacon_level2.png"; else if (obj.attributes.level == "3") img = "pics/locator_beacon_level3.png"; L.icon({ iconUrl: img, iconSize: [32, 32], iconAnchor: [16, 16], popupAnchor: [0, -16] }); }, createPopup: function(obj){ return "