The AGSMapView::addMapLayer returns a UIView. You can use it's hidden property to control the visibility of the layer. It'll prevents querying the server and drawing.NSURL* url = [NSURL URLWithString: @" http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"];AGSTiledMapServiceLayer* layer = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL: url];UIView<AGSLayerView>* lyrView = [mapView addMapLayer:layer withName:@Streets];lyrView.hidden = YES;Hope this helps!Regards,Nimesh
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.