what can i do to stop my app from crashing when i start the gps?
edit:
I got it. I used the CLLocationManager to create a CLLocationCoordinate2d object and then converted that into an agspoint with spatial reference wgs84.
then i just checked that point with the mapViews maxEnvelope
So why you want to start the GPS when you are not/does not want to be at location? Or you want to start GPS and move/pan map to the current location? If yes, you should set autoPanMode property. like this..
i am able to load different maps in my app, and have the gps function enabled by a button. I want it to display an error message if the current location of the device is not on the current loaded map
what can i do to stop my app from crashing when i start the gps?
edit:
I got it. I used the CLLocationManager to create a CLLocationCoordinate2d object and then converted that into an agspoint with spatial reference wgs84.
then i just checked that point with the mapViews maxEnvelope