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