- (void)viewDidLoad { [super viewDidLoad]; NSString* bingMapsKey = @-- my actual key --; AGSBingMapLayer* layer = [[AGSBingMapLayer alloc] initWithAppID:bingMapsKey style:AGSBingMapLayerStyleRoad]; if(layer.loaded){ NSLog(@Spatial Reference : %@", layer.spatialReference); } [self.mapView addMapLayer:layer withName:@Tiled Layer]; self.mapView.gps.autoPanMode = AGSGPSAutoPanModeDefault; } - (void)viewDidUnload { [self setMapView:nil]; [self setMapView:nil]; [super viewDidUnload]; [self.mapView.gps stop]; // Release any retained subviews of the main view. } -(void) mapViewDidLoad:(AGSMapView*)mapView { [self.mapView.gps start]; }
self.mapView.layerDelegate = self;
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.