From da76e30fc405c997836aca15f9231db58cf9d07e Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Tue, 7 Mar 2023 19:01:25 +0100 Subject: [PATCH] Use double click rather than single click to query the map --- src/components/map/Map.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/map/Map.tsx b/src/components/map/Map.tsx index 693bdda..48128f6 100644 --- a/src/components/map/Map.tsx +++ b/src/components/map/Map.tsx @@ -290,7 +290,7 @@ const Map: Component = () => { moveTolerance: 10, interactions: new Collection([ new DragRotate(), - new DoubleClickZoom(), +// new DoubleClickZoom(), new DragPan(), new PinchRotate(), new PinchZoom(), @@ -301,7 +301,7 @@ const Map: Component = () => { ]), }); olMap.on(['moveend'], changeListener); - olMap.on(['singleclick'], clickHandler); + olMap.on(['dblclick'], clickHandler); setMap(olMap); });