Location Services + Heading Update + dataChanged graphics layer

558
1
12-18-2012 12:29 PM
AaronConnolly
Occasional Contributor
Hello,

I have a problem, assuming the following:

1. My map is set up properly
2. There is a graphics layer with one graphic in it placed at my device's location.

I have an app that uses CLLocationManager and listens for the locationUpdate and headingUpdate. When headingUpdate sends my app a new value I update a new AGSPictureMarkerSymbol with a new image (based on the heading) and then assign that AGSPictureMarkerSymbol to my graphic's symbol property.

I have a class property holding my single AGSGraphic object and so as each heading comes in I can reset it's symbol and then fire dataChanged on the graphics layer (which is also stored as a class property).

I do not want to use the AGSGPS class for the following reasons:

1. The graphic isn't highly customizable.
2. The blue pulsing animation can't be disabled.
3. The heading data is not available.

Any help would be greatly appreciated. Is everyone at ESRI on vacation right now? I haven't seen a post to this forum in a while

Thanks,
- Aaron
0 Kudos
1 Reply
NimeshJarecha
Esri Regular Contributor
You can display your own symbol for GPS. Please go through displaying location in map document.

Hope this helps!

Regards,
Nimesh
0 Kudos