mapserver/server/static/js/overlays/BonesOverlay.js
NatureFreshMilk 67ea4d9e71 module wip
2019-06-11 14:16:41 +02:00

20 lines
491 B
JavaScript

import AbstractIconOverlay from './AbstractIconOverlay.js';
export default L.icon({
iconUrl: 'pics/bones_top.png',
iconSize: [16, 16],
iconAnchor: [8, 8],
popupAnchor: [0, -16]
});
var BonesOverlay = AbstractIconOverlay.extend({
initialize: function(wsChannel, layerMgr) {
AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "bones", BonesIcon);
},
createPopup: function(bones){
return "<h4>" + bones.attributes.owner + "</h4>";
}
});