class to handle touch interactions on a OpenLayers.Map widget
Parameter | Type | Description |
---|---|---|
map | OpenLayers.Map | the Map widget this class provides touch navigation for. |
See the dojox/geo/openlayers/TouchInteractionSupport reference documentation for more information.
action performed on the map when a double tap was triggered
Parameter | Type | Description |
---|---|---|
touchEvent | TouchEvent | a touch event |
computes the distance between the first two fingers
Parameter | Type | Description |
---|---|---|
touchEvent | Event | a touch event |
a distance. -1 if less that 2 fingers
returns the midpoint of the two first fingers (or the first finger location if only one)
Parameter | Type | Description |
---|---|---|
touchEvent | TouchEvent | a touch event |
the midpoint as an {x,y} object.
checks whether the specified touchStart event is a double tap (i.e. follows closely a previous touchStart at approximately the same location)
Parameter | Type | Description |
---|---|---|
touchEvent | TouchEvent | a touch event |
true if this event is considered a double tap
action performed on the map when a touch end was triggered
Parameter | Type | Description |
---|---|---|
touchEvent | Event | a touch event |
action performed on the map when a touch move was triggered
Parameter | Type | Description |
---|---|---|
touchEvent | Event | a touch event |
action performed on the map when a touch start was triggered
Parameter | Type | Description |
---|---|---|
touchEvent | Event | a touch event |