mapserver/server/static/js/overlays/TechnicAnchorOverlay.js

23 lines
659 B
JavaScript
Raw Normal View History

2019-02-08 12:13:27 +03:00
'use strict';
var TechnicAnchorIcon = L.icon({
iconUrl: 'pics/technic_admin_anchor.png',
iconSize: [32, 32],
iconAnchor: [16, 16],
popupAnchor: [0, -32]
});
var TechnicAnchorOverlay = AbstractIconOverlay.extend({
initialize: function(wsChannel, layerMgr) {
2019-02-08 23:00:39 +03:00
AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "technicanchor", TechnicAnchorIcon);
2019-02-08 12:13:27 +03:00
},
createPopup: function(lcd){
return "<p>Owner: " + lcd.attributes.owner + "</p>" +
"<p>Radius: " + lcd.attributes.radius + "</p>" +
"<p>Locked: " + lcd.attributes.locked + "</p>" +
"<p>Enabled: " + lcd.attributes.enabled + "</p>";
}
});