拖曳標記事件
拖曳標記事件
拖曳標記觸發之事件,共有拖曳標記時觸發、開始拖曳標記時觸發、結束拖曳標記時觸發三類,範例說明分別如下:
- (void)mapView:(TGMapView *)mapView didMarkerDrag:(id<TGMarker>)marker
//Marker拖曳時觸發
{
NSLog(@"didMarkerDrag");
}
- (void)mapView:(TGMapView *)mapView didMarkerDragStart:(id<TGMarker>)marker
//Marker開始拖曳時觸發
{
NSLog(@"didMarkerDragStart");
}
- (void)mapView:(TGMapView *)mapView didMarkerDragEnd:(id<TGMarker>)marker
//Marker拖曳結束時觸發
{
NSLog(@"didMarkerDragEnd");
}