A class to handle touch interactions on a dojox/geo/charting/Map component.
| Parameter | Type | Description |
|---|---|---|
| map | dojox/geo/charting/Map | the Map widget this class provides touch navigation for. |
See the dojox/geo/charting/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 |
utility function to return the feature located at this touch event location
| Parameter | Type | Description |
|---|---|---|
| touchEvent | TouchEvent | a touch event |
the feature found if any, null otherwise.
computes the distance between the first two fingers
| Parameter | Type | Description |
|---|---|---|
| touchEvent | undefined |
a distance. -1 if less than 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
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 single tap was triggered
| Parameter | Type | Description |
|---|---|---|
| touchEvent | TouchEvent | a touch event |
action performed on the map when a touch end was triggered
| Parameter | Type | Description |
|---|---|---|
| touchEvent | TouchEvent | a touch event |
action performed on the map when a tap was triggered
| Parameter | Type | Description |
|---|---|---|
| touchEvent | TouchEvent | a touch event |
action performed on the map when a touch move was triggered
| Parameter | Type | Description |
|---|---|---|
| touchEvent | TouchEvent | a touch event |
action performed on the map when a touch start was triggered
| Parameter | Type | Description |
|---|---|---|
| touchEvent | TouchEvent | a touch event |
disconnects any installed listeners. Must be called only when disposing of this instance