Improved www.ttss.krakow.pl
Jacek Kowalski
2021-07-29 c3b488060589273466a1723ad7cd51416cfba84c
[map] Allow zero-prefixed stop identifiers (fix for bus stops)
2 files modified
4 ■■■■ changed files
map.html 2 ●●● patch | view | raw | blame | history
map.js 2 ●●● patch | view | raw | blame | history
map.html
@@ -22,6 +22,6 @@
<script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.3.1/build/ol.js" integrity="sha384-pOrIhclJOIWlmYwhc69tvE0NTGhH7/oEdC9zrxJ3yyKMR+aCxEVIc4tj51WxVocG" crossorigin="anonymous"></script>
<script tyle="text/javascript" src="lang_pl.js?v10" id="lang_script"></script>
<script tyle="text/javascript" src="common.js?v11"></script>
<script tyle="text/javascript" src="map.js?v25"></script>
<script tyle="text/javascript" src="map.js?v26"></script>
</body>
</html>
map.js
@@ -494,7 +494,7 @@
        stop = stops[i];
        
        var feature = new ol.Feature(stop);
        feature.setId(stop.id);
        feature.setId(stop.id.replace(/^0+/, ''));
        feature.setGeometry(getGeometryFeature(feature));
        
        if(feature.get('parent') === null) {