import AbstractIconOverlay from './AbstractIconOverlay.js'; var MissionIcon = L.icon({ iconUrl: 'pics/mission_32px.png', iconSize: [32, 32], iconAnchor: [16, 16], popupAnchor: [0, -32] }); export default AbstractIconOverlay.extend({ initialize: function() { AbstractIconOverlay.prototype.initialize.call(this, "mission", MissionIcon); }, createPopup: function(mission){ return "
Owner: " + mission.attributes.owner + "
" + "Name: " + mission.attributes.name + "
" + "Successcount: " + mission.attributes.successcount + "
" + "Failcount: " + mission.attributes.failcount + "
"; } });