AGSSimpleMarkerSymbol dragging

2151
2
09-23-2015 08:37 AM
MyroslavaPolovka
New Contributor

Can i drag AGSSimpleMarkerSymbol and track location changes by dragging? Like MKPinAnnotationView dragging in MapKit with delegate methods of change view state.

0 Kudos
2 Replies
GagandeepSingh
Occasional Contributor II

You can use a combination of the following methods on `AGSMapViewTouchDelegate`.

(void)  - mapView:didTapAndHoldAtPoint:mapPoint:graphics:​    use this get the tapped graphic

(void)  - mapView:didMoveTapAndHoldAtPoint:mapPoint:graphics:     use this to update the graphic location to mapPoint

(void)  - mapView:didEndTapAndHoldAtPoint:mapPoint:graphics:    ​use this for clean up

MyroslavaPolovka
New Contributor

Thanks for your answer!

0 Kudos