<?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: Access Attributes for Sub-Layer Within AGSDynamicMapServiceLayer in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/access-attributes-for-sub-layer-within/m-p/103896#M1029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the clarification Nimesh.&amp;nbsp; I had come to the same conclusion about the AGSDynamicMapServiceLayer and have been trying the Query approach - it seems like I can do what I need using query.&amp;nbsp; The idea of using an AGSFeatureLayer is a good one...I will definitely explore that as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2012 13:46:15 GMT</pubDate>
    <dc:creator>DavidMarley</dc:creator>
    <dc:date>2012-03-19T13:46:15Z</dc:date>
    <item>
      <title>Access Attributes for Sub-Layer Within AGSDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/access-attributes-for-sub-layer-within/m-p/103894#M1027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm fairly new to the iOS SDK and trying to work through some basic concepts here.&amp;nbsp; What is the best way to access the &lt;/SPAN&gt;&lt;STRONG&gt;attributes&lt;/STRONG&gt;&lt;SPAN&gt; (the "attribute table" in old-school GIS terminology) associated with a sub-layer within an &lt;/SPAN&gt;&lt;STRONG&gt;AGSDynamicMapServiceLayer&lt;/STRONG&gt;&lt;SPAN&gt;?&amp;nbsp; I am working on an iPad app with a standard split view (map on the right, in detail view; table in left column of split view) where I want to show a set of project locations on the map, and have those projects show as a list in the table on the left. Ultimately I want to have interaction between the map and the table (touch a row in table to zoom to location on map, etc.).&amp;nbsp; I have the project locations in a feature class, and have that published as a standard AGS Map service.&amp;nbsp; I have the service/layer loaded into the map as a AGSDynamicMapServiceLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From the documentation, I can see that the &lt;/SPAN&gt;&lt;STRONG&gt;AGSGraphic&lt;/STRONG&gt;&lt;SPAN&gt; contains an &lt;/SPAN&gt;&lt;STRONG&gt;attributes&lt;/STRONG&gt;&lt;SPAN&gt; collection, but from the doc it appears I need to run an &lt;/SPAN&gt;&lt;STRONG&gt;AGSQueryTask&lt;/STRONG&gt;&lt;SPAN&gt; or other task in order to get an &lt;/SPAN&gt;&lt;STRONG&gt;AGSFeatureSet&lt;/STRONG&gt;&lt;SPAN&gt; containing the graphics/attributes.&amp;nbsp; Is there a way to get it directly from the AGSDynamicMapServiceLayer that is already in the map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I could run a query to return all my records (say with a dummy where clause like "1=1") but this seems like an unnecessary step given that I already have the points on my map.&amp;nbsp; And if I use a query result to display a graphics layer, then I lose the symbology associated with the layer itself, and have to utilize a client-side graphic to display the points.&amp;nbsp; This might be OK, but just doesn't seem right when I am wanting to show a feature class in its entirety.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's the best/recommended approach here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 14:27:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/access-attributes-for-sub-layer-within/m-p/103894#M1027</guid>
      <dc:creator>DavidMarley</dc:creator>
      <dc:date>2012-03-16T14:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Access Attributes for Sub-Layer Within AGSDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/access-attributes-for-sub-layer-within/m-p/103895#M1028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The AGSDynamicMapServiceLayer you see in a map is nothing but an image of the map. So you cannot get attributes of the features from an image. Hence, you have to execute a query task to get the features as graphics. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on your description the best recommended approach would be to load all layers as AGSFeatureLayer and you'll get all graphics in a map with attributes and symbology defined in the service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&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>Sat, 17 Mar 2012 18:12:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/access-attributes-for-sub-layer-within/m-p/103895#M1028</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-03-17T18:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Access Attributes for Sub-Layer Within AGSDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/access-attributes-for-sub-layer-within/m-p/103896#M1029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the clarification Nimesh.&amp;nbsp; I had come to the same conclusion about the AGSDynamicMapServiceLayer and have been trying the Query approach - it seems like I can do what I need using query.&amp;nbsp; The idea of using an AGSFeatureLayer is a good one...I will definitely explore that as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 13:46:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/access-attributes-for-sub-layer-within/m-p/103896#M1029</guid>
      <dc:creator>DavidMarley</dc:creator>
      <dc:date>2012-03-19T13:46:15Z</dc:date>
    </item>
  </channel>
</rss>

