AGSGPS Class Reference


Description

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).

Defined in:
AGSGPS.h ( ArcGIS library)
Since:
1.0

List of all members.

Public Member Functions

(CLLocation *) - currentLocation
(void) - start
(void) - stop

Properties

BOOL autoPan
AGSPointcurrentPoint
BOOL enabled
id< AGSGPSInfoTemplateDelegateinfoTemplateDelegate

Member Function Documentation

- (CLLocation*) currentLocation  

Retrieve the current GPS location.

Since:
1.0
- (void) start  

Make the map start responding to GPS input.

Since:
1.0
- (void) stop  

Make the map stop responding to GPS input.

Since:
1.0

Property Documentation

- (BOOL) autoPan [read, write, assign]

Indicates whether or not the map should automatically pan to the latest recieved GPS location. The default is NO.

Since:
1.0
- (AGSPoint*) currentPoint [read, retain]

The latest recieved GPS location. If autoPan is enabled, the map will automatically center itself at this location.

Since:
1.0
- (BOOL) enabled [read, assign]

Indicates whether or not the map will respond to GPS input.

Since:
1.0
- (id<AGSGPSInfoTemplateDelegate>) infoTemplateDelegate [read, write, assign]

Template describing how the callout should display information for location updates.

Since:
1.0