| | |
| | | color_type = 'orange'; |
| | | break; |
| | | case '1': |
| | | color_type = 'blue'; |
| | | break; |
| | | case '2': |
| | | color_type = 'green'; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | var fill = '#F60'; |
| | | var fill = '#B70'; |
| | | if(vehicle.getId().startsWith('b')) { |
| | | fill = '#05B'; |
| | | } |
| | |
| | | fill = '#292'; |
| | | } |
| | | |
| | | var image = '<svg xmlns="http://www.w3.org/2000/svg" height="30" width="20"><polygon points="10,0 20,23 0,23" style="fill:'+fill+';stroke:'+color_type+';stroke-width:2" /></svg>'; |
| | | var image = '<svg xmlns="http://www.w3.org/2000/svg" height="30" width="20"><polygon points="10,0 20,23 0,23" style="fill:'+fill+';stroke:'+color_type+';stroke-width:3" /></svg>'; |
| | | |
| | | return new ol.style.Style({ |
| | | image: new ol.style.Icon({ |
| | |
| | | } |
| | | |
| | | vehicle.geometry = getGeometry(vehicle); |
| | | vehicle.vehicle_type = parseVehicle(vehicle.id); |
| | | vehicle.vehicle_type = parseVehicle('t' + vehicle.id); |
| | | |
| | | if(!vehicle_feature) { |
| | | vehicle_feature = new ol.Feature(vehicle); |
| | |
| | | } |
| | | |
| | | vehicle.geometry = getGeometry(vehicle); |
| | | vehicle.vehicle_type = parseVehicle(vehicle.id); |
| | | vehicle.vehicle_type = parseVehicle('b' + vehicle.id); |
| | | |
| | | if(!vehicle_feature) { |
| | | vehicle_feature = new ol.Feature(vehicle); |
| | |
| | | }); |
| | | |
| | | $.when( |
| | | updateVehicleInfo(), |
| | | updateTrams(), |
| | | updateBuses(), |
| | | updateStops(ttss_trams_base, 't'), |