Improved www.ttss.krakow.pl
Jacek Kowalski
2020-11-03 27187eda97ab63cea0f004f596854cd0e91a4155
[map] Fix vehicle search
1 files modified
2 ■■■ changed files
map.js 2 ●●● patch | view | raw | blame | history
map.js
@@ -189,7 +189,7 @@
        
        ttss_types.forEach(function(ttss_type) {
            vehicles[ttss_type].source.forEachFeature(function(feature) {
                if(feature.get('vehicle_type') && feature.get('vehicle_type').num.indexOf(query) > -1) {
                if(feature.get('type') && feature.get('type').num.indexOf(query) > -1) {
                    features.push(feature);
                }
            });