1
0
forked from MTSR/mapserver
mapserver/server/static/js/overlays/TechnicQuarryOverlay.js

23 lines
671 B
JavaScript
Raw Normal View History

2019-04-04 11:49:55 +03:00
/* exported TechnicQuarryOverlay */
/* globals AbstractIconOverlay: true */
2019-02-08 15:35:56 +03:00
var TechnicQuarryIcon = L.icon({
2019-02-23 19:07:53 +03:00
iconUrl: 'pics/default_tool_mesepick.png',
2019-02-08 15:35:56 +03:00
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);
},
2019-02-08 17:25:37 +03:00
createPopup: function(quarry){
return "<p>Owner: " + quarry.attributes.owner + "</p>" +
"<p>Dug: " + quarry.attributes.dug + "</p>" +
"<p>Enabled: " + quarry.attributes.enabled + "</p>";
2019-02-08 15:35:56 +03:00
}
});