'use strict'; var TechnicSwitchIcon = L.icon({ iconUrl: 'pics/technic_water_mill_top_active.png.png', iconSize: [16, 16], iconAnchor: [8, 8], popupAnchor: [0, -16] }); var TechnicSwitchOverlay = AbstractIconOverlay.extend({ initialize: function(wsChannel, layerMgr) { AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "technicswitch", TechnicQuarryIcon); }, createPopup: function(sw){ return "

Active: " + sw.attributes.active + "

" + "

Channel: " + sw.attributes.channel + "

" + "

Supply: " + sw.attributes.supply + "

" + "

Demand: " + sw.attributes.demand + "

"; } });