When wrap around is not working, verify that.
#define kBaseMapMapServiceURL @"http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" ... - (void)viewDidLoad { [super viewDidLoad]; //assign the layer delegate. self.mapView.layerDelegate = self; //add the base map. NSURL *mapUrl = [NSURL URLWithString:kBaseMapMapServiceURL]; self.baseMapLayer = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:mapUrl]; [self.mapView addMapLayer:self.baseMapLayer withName:@Base Map] self.mapView.wrapAround = YES; }
#define kBaseMapMapServiceURL @"http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" ... - (void)viewDidLoad { [super viewDidLoad]; //assign the layer delegate. self.mapView.layerDelegate = self; //add the base map. NSURL *mapUrl = [NSURL URLWithString:kBaseMapMapServiceURL]; self.baseMapLayer = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:mapUrl]; [self.mapView addMapLayer:self.baseMapLayer withName:@Base Map] NSURL *mapUrl3 = [NSURL URLWithString:{myServiceURL}]; AGSTiledMapServiceLayer *Lyr3 = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:mapUrl3]; [self.mapView addMapLayer:Lyr3 withName:@MyService]; self.mapView.wrapAround = YES; }
Full Extent: XMin: -20036554.6687116YMin: -30240971.9583863XMax: 20037164.0316042YMax: 30240971.9583862Spatial Reference: 102100 (3857)
Full Extent: XMin: -20037507.0671618YMin: -19971868.8804086XMax: 20037507.0671618YMax: 19971868.8804086Spatial Reference: 102100 (3857)
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.