This object controls how the map responds to GPS input. To make the map start responding to GPS input, call the start
method. If the autoPan property is enabled, the map will automatically zoom to the first location specified by the GPS input. The map will re-center if a new GPS location is sufficiently close to the margins of the map . To make the map stop responding to GPS input, call the stop
method. By default, the map uses a round, blue symbol to display the current location. You can replace this symbol with an image icon of your choice. This image must be included in the application bundle, it must be named GpsDisplay.png and it must be 35x35 pixels in size (70x70 for the Retina Display).
Public Member Functions | |
(CLLocation *) | - currentLocation |
(void) | - start |
(void) | - stop |
Properties | |
BOOL | autoPan |
AGSPoint * | currentPoint |
BOOL | enabled |
id< AGSGPSInfoTemplateDelegate > | infoTemplateDelegate |
- (CLLocation*) currentLocation |
Retrieve the current GPS location.
- (void) start |
Make the map start responding to GPS input.
- (void) stop |
Make the map stop responding to GPS input.
- (BOOL) autoPan [read, write, assign] |
Indicates whether or not the map should automatically pan to the latest recieved GPS location. The default is NO
.
- (AGSPoint*) currentPoint [read, retain] |
The latest recieved GPS location. If autoPan is enabled, the map will automatically center itself at this location.
- (BOOL) enabled [read, assign] |
Indicates whether or not the map will respond to GPS input.
- (id<AGSGPSInfoTemplateDelegate>) infoTemplateDelegate [read, write, assign] |
Template describing how the callout should display information for location updates.