diff --git a/website/src/lib/components/toolbar/tools/routing/routing-controls.ts b/website/src/lib/components/toolbar/tools/routing/routing-controls.ts index 5f7933fa8..b590f56a8 100644 --- a/website/src/lib/components/toolbar/tools/routing/routing-controls.ts +++ b/website/src/lib/components/toolbar/tools/routing/routing-controls.ts @@ -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