Work around nodeFeature=Marker not working correctly

This commit is contained in:
Stefan Siegl 2021-04-03 21:46:05 +02:00
parent d2bc580b14
commit deef3bfb0d
No known key found for this signature in database
GPG key ID: 73942AF5642F3DDA

View file

@ -206,8 +206,13 @@ BR.LayersConfig = L.Class.extend({
markerSign, markerSign,
style: function (overpassObject) { style: function (overpassObject) {
return { return {
nodeFeature: 'Marker', // nodeFeature: 'Marker' isn't currently working well, hence use transparent circle color for nodes
color: this.defaultBaseLayers?.[0] === 'cyclosm' ? 'darkorange' : '#3388ff', color:
overpassObject.type === 'node'
? '#00000000'
: this.defaultBaseLayers?.[0] === 'cyclosm'
? 'darkorange'
: '#3388ff',
}; };
}.bind(this), }.bind(this),
}, },