From 27187eda97ab63cea0f004f596854cd0e91a4155 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Tue, 03 Nov 2020 09:53:23 +0000
Subject: [PATCH] [map] Fix vehicle search

---
 map.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/map.js b/map.js
index ab69a94..330093a 100644
--- a/map.js
+++ b/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);
 				}
 			});

--
Gitblit v1.9.1