1
0
forked from MTSR/mapserver
mapserver/public/js/map/overlays/TechnicQuarryOverlay.js
2021-04-12 13:03:10 +02:00

22 lines
603 B
JavaScript

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