1
0
forked from MTSR/mapserver
mapserver/static/js/overlays/BonesOverlay.js
2019-06-14 07:46:28 +02:00

20 lines
488 B
JavaScript

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