Fix searching for parent stop of a stop point
| | |
| | | <script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v5.3.0/build/ol.js" integrity="sha384-iQkGyyH4ioz3m+maM3s9MX1Oq67mACa4B9Z3ovUv3Sv37LJ96fx3WnZfLoiC3Wfl" crossorigin="anonymous"></script> |
| | | <script tyle="text/javascript" src="lang_pl.js?v3" id="lang_script"></script> |
| | | <script tyle="text/javascript" src="common.js?v5"></script> |
| | | <script tyle="text/javascript" src="map.js?v7"></script> |
| | | <script tyle="text/javascript" src="map.js?v8"></script> |
| | | </body> |
| | | </html> |
| | |
| | | addElementWithText(additional, 'a', lang.departures_for_stop).addEventListener( |
| | | 'click', |
| | | function() { |
| | | var stops_source = stops_trams_source; |
| | | if(feature.getId().startsWith('pb')) { |
| | | stops_source = stops_buses_source; |
| | | } |
| | | featureClicked(stops_source.forEachFeature(function(stop_feature) { |
| | | if(stop_feature.get('shortName') == feature.get('shortName') && stop_feature.getId().substr(1,1) == feature.getId().substr(1,1)) { |
| | | return stop_feature; |