Improved www.ttss.krakow.pl
Jacek Kowalski
2021-07-29 d80109132d362199e6d9e370d5f54bd0d6554126
[map] Allow zero-prefixed stop identifiers (fix for bus stops)
1 files modified
2 ■■■ changed files
map.js 2 ●●● patch | view | raw | blame | history
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) {