Use double click rather than single click to query the map
This commit is contained in:
1 parent
bb763435ef
commit
da76e30fc4
1 file changed
+2
-2
@@ -290,7 +290,7 @@ const Map: Component = () => {
|
|||||||
moveTolerance: 10,
|
moveTolerance: 10,
|
||||||
interactions: new Collection<Interaction>([
|
interactions: new Collection<Interaction>([
|
||||||
new DragRotate(),
|
new DragRotate(),
|
||||||
new DoubleClickZoom(),
|
// new DoubleClickZoom(),
|
||||||
new DragPan(),
|
new DragPan(),
|
||||||
new PinchRotate(),
|
new PinchRotate(),
|
||||||
new PinchZoom(),
|
new PinchZoom(),
|
||||||
@@ -301,7 +301,7 @@ const Map: Component = () => {
|
|||||||
]),
|
]),
|
||||||
});
|
});
|
||||||
olMap.on(['moveend'], changeListener);
|
olMap.on(['moveend'], changeListener);
|
||||||
olMap.on(['singleclick'], clickHandler);
|
olMap.on(['dblclick'], clickHandler);
|
||||||
|
|
||||||
setMap(olMap);
|
setMap(olMap);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user