From deef3bfb0dda7ece63ea2b255fda8b2d7beabe40 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sat, 3 Apr 2021 21:46:05 +0200 Subject: [PATCH] Work around nodeFeature=Marker not working correctly --- js/LayersConfig.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/js/LayersConfig.js b/js/LayersConfig.js index b087c2b..a2fd125 100644 --- a/js/LayersConfig.js +++ b/js/LayersConfig.js @@ -206,8 +206,13 @@ BR.LayersConfig = L.Class.extend({ markerSign, style: function (overpassObject) { return { - nodeFeature: 'Marker', - color: this.defaultBaseLayers?.[0] === 'cyclosm' ? 'darkorange' : '#3388ff', + // nodeFeature: 'Marker' isn't currently working well, hence use transparent circle color for nodes + color: + overpassObject.type === 'node' + ? '#00000000' + : this.defaultBaseLayers?.[0] === 'cyclosm' + ? 'darkorange' + : '#3388ff', }; }.bind(this), },