2019-02-08 17:40:30 +03:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var TechnicSwitchIcon = L.icon({
|
2019-02-23 19:07:53 +03:00
|
|
|
iconUrl: 'pics/technic_water_mill_top_active.png',
|
2019-02-08 17:40:30 +03:00
|
|
|
|
|
|
|
iconSize: [16, 16],
|
|
|
|
iconAnchor: [8, 8],
|
|
|
|
popupAnchor: [0, -16]
|
|
|
|
});
|
|
|
|
|
|
|
|
var TechnicSwitchOverlay = AbstractIconOverlay.extend({
|
|
|
|
initialize: function(wsChannel, layerMgr) {
|
2019-02-23 19:07:53 +03:00
|
|
|
AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "technicswitch", TechnicSwitchIcon);
|
2019-02-08 17:40:30 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
createPopup: function(sw){
|
|
|
|
return "<p>Active: " + sw.attributes.active + "</p>" +
|
|
|
|
"<p>Channel: " + sw.attributes.channel + "</p>" +
|
|
|
|
"<p>Supply: " + sw.attributes.supply + "</p>" +
|
|
|
|
"<p>Demand: " + sw.attributes.demand + "</p>";
|
|
|
|
}
|
|
|
|
});
|