From 5bd38819682d40421166d6ebc15e7346e9ade690 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Thu, 29 Jul 2021 22:41:53 +0000
Subject: [PATCH] [map] Allow zero-prefixed stop identifiers (fix for bus stops)

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

diff --git a/map.js b/map.js
index bef6783..456edaa 100644
--- a/map.js
+++ b/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) {

--
Gitblit v1.9.1