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