Implement any action you need to be triggered on one of the following map events:
Panning
Single press
Double press
Long press
To receive events you need to register id<TTMapViewDelegate> on map.
Sample use case: In your app, users invoke one behavior with a single press and another with a
long press.
Use the following code snippets in your app to catch map events. In this example, the action is
simply to display a toast with latitude and longitude on each map event. Of course, you can
implement other cool features instead.
In this example you will see that a Toast with the latitude and longitude of a point that was
clicked on the map, but you can utilize this information in your own manner.
Receive callbacks after the map panning
Receive callbacks after the map panning
Receive callbacks after the map panning
Enable and disable gestures
You can disable gestures such as zooming, scrolling, and rotating in your application by setting up
an integer mask on properties as shown in the following examples: