<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding Map Layers in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568954#M4900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The 1st layer (base layer) should be a tiled layer and then you�??ll be able to add your map service layers on top of it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jun 2010 14:35:27 GMT</pubDate>
    <dc:creator>NimeshJarecha</dc:creator>
    <dc:date>2010-06-15T14:35:27Z</dc:date>
    <item>
      <title>Adding Map Layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568952#M4898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since ESRI documentation on the Beta SDK is still a work in progress, can any one give me some help on adding individual map layers from a rest service?&amp;nbsp; I am pretty solid on adding the map service from the documentation thus far, but am not exactly sure on how to impelement individual layers within the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ex: basemap rest service&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(3) = roads&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://server.maphost_example/ArcGIS/rest/services/basemap/MapServer/3" rel="nofollow" target="_blank"&gt;http://server.maphost_example/ArcGIS/rest/services/basemap/MapServer/3&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just want to add one layer from my map service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any Ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jun 2010 13:17:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568952#M4898</guid>
      <dc:creator>JeffPapirtis</dc:creator>
      <dc:date>2010-06-14T13:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Map Layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568953#M4899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use the addLayer method.&amp;nbsp; For example, this is from the header file from a map nib I have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;-(void) addLenexaTiledMapLayer:(NSString*)layerURL:(NSString*) lyrName;
-(void) addLenexaTiledMapLayerURL:(NSURL*)layerURL:(NSString*) lyrName;
-(void) removeLenexaMapLayer:(NSString*)layerName;
-(void) addLenexaDynamicMapLayer:(NSString*)layerURL:(NSString*) lyrName;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here is the implementations of said functions, in the .m file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;-(void) addLenexaTiledMapLayerURL:(NSURL*)layerURL:(NSString*)lyrName{
 
 AGSTiledMapServiceLayer *tiledMapLyr = [[AGSTiledMapServiceLayer alloc] initWithURL:layerURL];
 [mapView addMapLayer:tiledMapLyr withName:lyrName];
 [tiledMapLyr release];
 
}

-(void) addLenexaTiledMapLayer:(NSString*)layerURL:(NSString*)lyrName{
 
 AGSTiledMapServiceLayer *tiledMapLyr = [[AGSTiledMapServiceLayer alloc] initWithURL:[NSURL URLWithString:layerURL]];
 [mapView addMapLayer:tiledMapLyr withName:lyrName];
 [tiledMapLyr release];

}
-(void) removeLenexaMapLayer:(NSString*)layerURL:(NSString*)lyrName{
 [mapView removeMapLayerWithName:lyrName];
}
-(void) addLenexaDynamicMapLayer:(NSString*)layerURL:(NSString*)lyrName{

 AGSDynamicMapServiceLayer *dynaMapLyr = [[AGSDynamicMapServiceLayer alloc] initWithURL:[NSURL URLWithString:layerURL]];
 dynaMapLyr.dpi = 96;
 [mapView addMapLayer:dynaMapLyr withName:lyrName];
 
 [dynaMapLyr release];
 
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and then if you want to access the layer once it's been added to the map, use the appropriate layerview object:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; AGSTiledLayerView *basemapView = [self.mapView.mapLayerViews objectForKey:@"myBasemap"];
 basemapView.alpha = self.mySlider.value;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:29:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568953#M4899</guid>
      <dc:creator>JeremyBixby</dc:creator>
      <dc:date>2021-12-12T00:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Map Layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568954#M4900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The 1st layer (base layer) should be a tiled layer and then you�??ll be able to add your map service layers on top of it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 14:35:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568954#M4900</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2010-06-15T14:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Map Layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568955#M4901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You cannot selectively add only one layer from your map service. You have to add the entire map service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you add the map service as a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSDynamicMapServiceLayer&lt;/SPAN&gt;&lt;SPAN&gt;, you can set it's &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;visibleLayers&lt;/SPAN&gt;&lt;SPAN&gt; property to only display the layer you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 16:14:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568955#M4901</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2010-06-16T16:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Map Layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568956#M4902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Divesh, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have all of my map services added, two tiled, and one Dynamic, but I am not sure what the proper syntax is to acomplish what is visible within the mapView within the dynamic map service.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where and how would the visibleLayers property be set?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will I need to set up an array with the layers that are present in the rest service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appologize if I am not following, but I am very new at this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 21:48:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568956#M4902</guid>
      <dc:creator>JeffPapirtis</dc:creator>
      <dc:date>2010-06-17T21:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Map Layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568957#M4903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just before adding a layer to map view, add following line to set the visible layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dynamicLayer.visibleLayers = [NSArray arrayWithObjects:[NSNumber numberWithInt:0], nil];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 14:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568957#M4903</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2010-06-18T14:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Map Layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568958#M4904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Nimesh!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;after a lot of metal lifting I was able to load only the layers I wanted using the NSArray and your advice.&amp;nbsp; For everyone else interested I will post my solution this weekend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Nimesh!!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 19:59:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568958#M4904</guid>
      <dc:creator>JeffPapirtis</dc:creator>
      <dc:date>2010-06-18T19:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Map Layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568959#M4905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally, What was your solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 09:00:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568959#M4905</guid>
      <dc:creator>KOLDODUARTE</dc:creator>
      <dc:date>2010-06-22T09:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Map Layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568960#M4906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok, sorry for the delay.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some real code, I am still figuring out how to read the documentation code, so looking at something that actually works in code helps me a lot.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Code below creates an array with the different layers within a dynamic service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GSDynamicMapServiceLayer *facilityLayer = [[AGSDynamicMapServiceLayer alloc] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; initWithURL:[NSURL URLWithString:@"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://gis.shh.noaa.gov/ArcGIS.rest/services/coop/MapServer" rel="nofollow" target="_blank"&gt;http://gis.shh.noaa.gov/ArcGIS.rest/services/coop/MapServer&lt;/A&gt;&lt;SPAN&gt;"]];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//define varible, initiate &amp;amp; populate the array. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; NSArray *dynamicLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; dynamicLayer =[[NSArray alloc] initWithObjects:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NSNumber numberWithInt:0],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NSNumber numberWithInt:1],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NSNumber numberWithInt:2],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NSNumber numberWithInt:3],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NSNumber numberWithInt:4],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NSNumber numberWithInt:5],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NSNumber numberWithInt:6],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NSNumber numberWithInt:7],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NSNumber numberWithInt:8],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NSNumber numberWithInt:9],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NSNumber numberWithInt:10],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NSNumber numberWithInt:11],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NSNumber numberWithInt:12],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nil&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//set the facility layer visible layers property to equal the array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; facilityLayer.visibleLayers=dynamicLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.facilityView = [self.mapView addMapLayer:facilityLayer withName:@"dynamicLayer"]; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [facilityLayer release];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in order to show only certain layers just remove the corresponding value in the array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;example if 20 mile grid in the NOAA rest service is ....MapServer/8" then to remove the line in the array that defines that particular layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is by no means a final working solution, but hopefully it will help to understand some of the structure behind it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 13:04:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568960#M4906</guid>
      <dc:creator>JeffPapirtis</dc:creator>
      <dc:date>2010-06-22T13:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Map Layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568961#M4907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank jpapirti !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same problem, I hope to resolve with you solution !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 16:14:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568961#M4907</guid>
      <dc:creator>KOLDODUARTE</dc:creator>
      <dc:date>2010-06-24T16:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Map Layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568962#M4908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My question is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have to remove the entire DynamicMapLayer each time you want to change the visible layers on the fly? (as in, I've already created the dynamicmaplayer and added it to the mapView.Now I want to make a change to the visible layers in the middle of running the app)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, Do I have to do this entire process of removing the layer either by reset or removing it by name, recreating it, and adding it back in? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[self.mapView reset];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then rebuild the AGSDynamicMapServiceLayer&amp;nbsp; and addit to the&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.baseDynamicLayer = [[[AGSDynamicMapServiceLayer alloc] initWithMapServiceInfo:bms]autorelease];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.baseDynamicLayer.visibleLayers = [NSArray arrayWithObjects:[NSNumber numberWithInt:2], nil];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[self.mapView addMapLayer:baseDynamicLayer withName:@"baseLayer"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or - is there a better way I can accomplish changing visible layers without REMOVING the AGSDynamicMapServiceLayer from the mapView and adding back in ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 19:23:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568962#M4908</guid>
      <dc:creator>DarrenMackiewicz</dc:creator>
      <dc:date>2011-12-08T19:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Map Layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568963#M4909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, you do not need to remove the layer and add it back in order to change the visibleLayers. Just setting the self.baseDynamicLayer.visibleLayers with desired visible layers is enough.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 19:30:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568963#M4909</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2011-12-08T19:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Map Layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568964#M4910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Confirmed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Nimesh!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 19:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/adding-map-layers/m-p/568964#M4910</guid>
      <dc:creator>DarrenMackiewicz</dc:creator>
      <dc:date>2011-12-08T19:57:05Z</dc:date>
    </item>
  </channel>
</rss>

