- (void)mapViewDidLoad:(AGSMapView *) mapView{ [mapView.gps start]; if (!mapView.gps.enabled) { NSLog(@"The GPS is not enabled"); } else if (mapView.gps.enabled) { NSLog(@"The GPS is enabled"); } }
Thanks! I can display the current location.
Thanks! I can display the current location.
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.
From the class documentation: