aconnolly

AGSGPSAutoPanModeCompassNavigation + Graphics Layer Symbols

Discussion created by aconnolly on Dec 19, 2012
Latest reply on Apr 30, 2013 by njarecha-esristaff
Hi,

When the map's gps is set to AGSGPSAutoPanModeCompassNavigation, the map rotates around the user's location. Unfortunately any graphics on the map do not rotate as well. I would like to rotate them manually, do you have any suggestions as to the best approach for this?

To date, I have:

1. Started listening for heading updates from CLLocationManager which come in very fast and in a high volume.
2. Retained a pointer to my graphics layer and rotate each graphic based on the heading that was provided by the device.
3. Refresh the graphics layer.

This seems to work, but it doesn't look great and it is not efficient because of the frequency with which the headings are provided.

Questions:

1. If I want the map's graphics to rotate around the user's location while in AGSGPSAutoPanModeCompassNavigation, what's the best approach to do that?
2. Is there a better way to do what I'm trying to do?
3. Is it even recommended to do what I am trying to do?
4. Are there any known issues with calling dataChanged on a graphics layer frequently in short intervals?

Thanks,
- Aaron

Outcomes