2019-06-11 16:01:16 +03:00
|
|
|
import AbstractIconOverlay from './AbstractIconOverlay.js';
|
2019-01-29 20:08:54 +03:00
|
|
|
|
2019-02-01 14:58:26 +03:00
|
|
|
var TravelnetIcon = L.icon({
|
|
|
|
iconUrl: 'pics/travelnet_inv.png',
|
2019-01-29 20:08:54 +03:00
|
|
|
|
2019-02-01 14:58:26 +03:00
|
|
|
iconSize: [64, 64],
|
|
|
|
iconAnchor: [32, 32],
|
|
|
|
popupAnchor: [0, -32]
|
|
|
|
});
|
2019-01-29 20:08:54 +03:00
|
|
|
|
2019-06-11 16:01:16 +03:00
|
|
|
export default AbstractIconOverlay.extend({
|
2019-02-01 15:20:50 +03:00
|
|
|
initialize: function(wsChannel, layerMgr) {
|
2019-02-05 23:17:14 +03:00
|
|
|
AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "travelnet", TravelnetIcon);
|
2019-02-01 14:58:26 +03:00
|
|
|
},
|
|
|
|
|
2019-02-05 11:09:35 +03:00
|
|
|
createPopup: function(travelnet){
|
|
|
|
return "<h4>" + travelnet.attributes.station_name + "</h4><hr>" +
|
|
|
|
"<b>X: </b> " + travelnet.x + "<br>" +
|
|
|
|
"<b>Y: </b> " + travelnet.y + "<br>" +
|
|
|
|
"<b>Z: </b> " + travelnet.z + "<br>" +
|
|
|
|
"<b>Network: </b> " + travelnet.attributes.station_network + "<br>" +
|
|
|
|
"<b>Owner: </b> " + travelnet.attributes.owner + "<br>";
|
2019-02-01 14:58:26 +03:00
|
|
|
}
|
|
|
|
});
|