diff --git a/src/components/map/Map.tsx b/src/components/map/Map.tsx index 0ee2758..b041f47 100644 --- a/src/components/map/Map.tsx +++ b/src/components/map/Map.tsx @@ -191,6 +191,7 @@ const Map: Component = () => { new Rotate(), new ScaleLine({ bar: true }), ]), + moveTolerance: 10, interactions: new Collection([ new DragRotate(), new DoubleClickZoom(), @@ -204,7 +205,7 @@ const Map: Component = () => { ]), }); olMap.on(['moveend'], changeListener); - olMap.on(['click'], clickHandler); + olMap.on(['singleclick'], clickHandler); setMap(olMap); setBranch('/', { vectorLayer: vectorLayer });