Select to view content in your preferred language

how to get all the coordinates contained in a polyline in an array

3114
1
Jump to solution
08-26-2013 07:33 PM
HumzaAkhtar
Deactivated User
Hi,

How can we get all the coordinates (latitude and longitude) from agsmutablepolyline? Is there a function available in ArcGIS SDK for this? I was checking the API reference and couldnot find any.


Thanks
0 Kudos
1 Solution

Accepted Solutions
HumzaAkhtar
Deactivated User
never mind I got it.

For people who faced similar issue, the trick is to use CLLocationManager and while you insert index into the polyline using

[self.SketchLayer insertVertex:[self.mapView.locationDisplay mapLocation] inPart:0 atIndex:-1];


save this mapLocation in an array of AGSPoints at the same time.

Regards

View solution in original post

0 Kudos
1 Reply
HumzaAkhtar
Deactivated User
never mind I got it.

For people who faced similar issue, the trick is to use CLLocationManager and while you insert index into the polyline using

[self.SketchLayer insertVertex:[self.mapView.locationDisplay mapLocation] inPart:0 atIndex:-1];


save this mapLocation in an array of AGSPoints at the same time.

Regards
0 Kudos