'use strict'; var MissionIcon = L.icon({ iconUrl: 'pics/mission_32px.png', iconSize: [32, 32], iconAnchor: [16, 16], popupAnchor: [0, -32] }); var MissionOverlay = AbstractIconOverlay.extend({ initialize: function(wsChannel, layerMgr) { AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "mission", MissionIcon); }, createPopup: function(mission){ return "

Owner: " + mission.attributes.owner + "

" + "

Name: " + mission.attributes.name + "

" + "

Successcount: " + mission.attributes.successcount + "

" + "

Failcount: " + mission.attributes.failcount + "

"; } });