<?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 LayerDefinitions in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/layerdefinitions/m-p/610498#M5373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This question is concerning layer definitions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I follow the sample code snippets posted at the very bottom of this page:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/iOS/1.8/concepts/index.html#//00pw0000004m000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgismobile/10.0/apis/iOS/1.8/concepts/index.html#//00pw0000004m000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;AGSDynamicMapServiceLayer *dyn = [[AGSDynamicMapServiceLayer alloc] initWithURL:[NSURL URLWithString:@"http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_1990-2000_Population_Change/MapServer"]];
 
int layerID = 3; 
NSString *defString = @"NAME = 'Middlesex County'";
AGSLayerDefinition *layerDef = [AGSLayerDefinition layerDefinitionWithLayerId:layerID definition:defString];
dyn.layerDefinitions = [NSArray arrayWithObject:layerDef];
 
[mapView removeMapLayerWithName:@"previous layer"];
self.fbMapServiceUIView = [mapView addMapLayer:_dyn withName:@"some name"];&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of just 4 counties being loaded, the entire choropleth map is being loaded as though there were no layer definitions being applied.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone out there successfully applied layer definitions?&amp;nbsp; Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 02:07:25 GMT</pubDate>
    <dc:creator>ChrisMahlke</dc:creator>
    <dc:date>2021-12-12T02:07:25Z</dc:date>
    <item>
      <title>LayerDefinitions</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/layerdefinitions/m-p/610498#M5373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This question is concerning layer definitions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I follow the sample code snippets posted at the very bottom of this page:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/iOS/1.8/concepts/index.html#//00pw0000004m000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgismobile/10.0/apis/iOS/1.8/concepts/index.html#//00pw0000004m000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;AGSDynamicMapServiceLayer *dyn = [[AGSDynamicMapServiceLayer alloc] initWithURL:[NSURL URLWithString:@"http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_1990-2000_Population_Change/MapServer"]];
 
int layerID = 3; 
NSString *defString = @"NAME = 'Middlesex County'";
AGSLayerDefinition *layerDef = [AGSLayerDefinition layerDefinitionWithLayerId:layerID definition:defString];
dyn.layerDefinitions = [NSArray arrayWithObject:layerDef];
 
[mapView removeMapLayerWithName:@"previous layer"];
self.fbMapServiceUIView = [mapView addMapLayer:_dyn withName:@"some name"];&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of just 4 counties being loaded, the entire choropleth map is being loaded as though there were no layer definitions being applied.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone out there successfully applied layer definitions?&amp;nbsp; Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:07:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/layerdefinitions/m-p/610498#M5373</guid>
      <dc:creator>ChrisMahlke</dc:creator>
      <dc:date>2021-12-12T02:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: LayerDefinitions</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/layerdefinitions/m-p/610499#M5374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_1990-2000_Population_Change/MapServer"&gt;layer&lt;/A&gt;&lt;SPAN&gt; you are using is a Tiled layer not a Dynamic layer. Hence, it's not being honored.&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>Fri, 09 Sep 2011 17:09:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/layerdefinitions/m-p/610499#M5374</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2011-09-09T17:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: LayerDefinitions</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/layerdefinitions/m-p/610500#M5375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3053"&gt;Nimesh Jarecha&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't find the `AGSLayerDefinition` class in latest runtime SDK for iOS. How to accomplished this in Latest arcgis runtime SDK for iOS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 13:12:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/layerdefinitions/m-p/610500#M5375</guid>
      <dc:creator>MuruganandhamKuppan1</dc:creator>
      <dc:date>2018-03-07T13:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: LayerDefinitions</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/layerdefinitions/m-p/610501#M5376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For latest SDK (ver 100.x) property is renamed to `definitionExpression` and is available on sub layers, feature layer and service feature table. Please see below image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/398310_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample is available at&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-ios/tree/master/arcgis-ios-sdk-samples/Features/Feature%20layer%20definition%20expression" title="https://github.com/Esri/arcgis-runtime-samples-ios/tree/master/arcgis-ios-sdk-samples/Features/Feature%20layer%20definition%20expression"&gt;arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature layer definition expression at master · Esri/arcgis-r…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 16:57:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/layerdefinitions/m-p/610501#M5376</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2018-03-07T16:57:46Z</dc:date>
    </item>
  </channel>
</rss>

