mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-04-27 22:05:54 +00:00
Compare commits
2 Commits
1d204bacf2
...
8aafa26238
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8aafa26238 | ||
|
|
5768391305 |
@@ -523,10 +523,7 @@ export class RoutingControls {
|
||||
}
|
||||
if (
|
||||
e.target.queryRenderedFeatures(e.point, {
|
||||
layers: this.layers
|
||||
.values()
|
||||
.map((layer) => layer.id)
|
||||
.toArray(),
|
||||
layers: [...this.layers.values()].map((layer) => layer.id),
|
||||
}).length
|
||||
) {
|
||||
// Clicked on routing control, ignoring
|
||||
|
||||
@@ -169,6 +169,8 @@ function filterLayerTree(t: LayerTreeType, allowed: LayerTreeType | undefined):
|
||||
Object.keys(allowed).forEach((key) => {
|
||||
if (Object.hasOwn(t, key)) {
|
||||
filtered[key] = t[key];
|
||||
} else {
|
||||
filtered[key] = allowed[key];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user