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

21 lines
500 B
JavaScript

/* exported BonesOverlay */
/* globals AbstractIconOverlay: true */
var BonesIcon = 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>";
}
});