'use strict'; var TravelnetIcon = L.icon({ iconUrl: 'pics/travelnet_inv.png', iconSize: [64, 64], iconAnchor: [32, 32], popupAnchor: [0, -32] }); var TravelnetOverlay = AbstractIconOverlay.extend({ initialize: function(wsChannel, layerMgr) { AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "travelnet", TravelnetIcon); }, createPopup: function(travelnet){ return "

" + travelnet.attributes.station_name + "


" + "X: " + travelnet.x + "
" + "Y: " + travelnet.y + "
" + "Z: " + travelnet.z + "
" + "Network: " + travelnet.attributes.station_network + "
" + "Owner: " + travelnet.attributes.owner + "
"; } });