Work around nodeFeature=Marker not working correctly
This commit is contained in:
parent
d2bc580b14
commit
deef3bfb0d
1 changed files with 7 additions and 2 deletions
|
|
@ -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),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue