Use double click rather than single click to query the map

This commit is contained in:
Eric van der Vlist 2023-03-07 19:01:25 +01:00
parent bb763435ef
commit da76e30fc4
1 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ const Map: Component = () => {
moveTolerance: 10,
interactions: new Collection<Interaction>([
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);
});