1
0
forked from MTSR/mapserver
mapserver/server/static/js/overlays/TechnicQuarryOverlay.js
2019-04-04 10:49:55 +02:00

23 lines
671 B
JavaScript

/* exported TechnicQuarryOverlay */
/* globals AbstractIconOverlay: true */
var TechnicQuarryIcon = L.icon({
iconUrl: 'pics/default_tool_mesepick.png',
iconSize: [16, 16],
iconAnchor: [8, 8],
popupAnchor: [0, -16]
});
var TechnicQuarryOverlay = AbstractIconOverlay.extend({
initialize: function(wsChannel, layerMgr) {
AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "technicquarry", TechnicQuarryIcon);
},
createPopup: function(quarry){
return "<p>Owner: " + quarry.attributes.owner + "</p>" +
"<p>Dug: " + quarry.attributes.dug + "</p>" +
"<p>Enabled: " + quarry.attributes.enabled + "</p>";
}
});