2019-04-04 11:49:55 +03:00
|
|
|
/* exported BonesOverlay */
|
|
|
|
/* globals AbstractIconOverlay: true */
|
2019-02-08 10:27:10 +03:00
|
|
|
|
|
|
|
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>";
|
|
|
|
}
|
|
|
|
});
|