From d80109132d362199e6d9e370d5f54bd0d6554126 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Thu, 29 Jul 2021 22:40:29 +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