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)
#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; }
When wrap around is not working, verify that.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.