<?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 get legend from webmap in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/get-legend-from-webmap/m-p/141696#M1312</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We cannot het the legend from a webmap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are displaying a webmap in a mapview.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; self.webmap = [AGSWebMap webMapWithItemId:theId credential:nil];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[self.webmap openIntoMapView:self.mapView];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- (void)mapView:(AGSMapView *) mapView didLoadLayerForLayerView:(UIView&amp;lt;AGSLayerView&amp;gt; *) layerView {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; //Add legend for each layer added to the map&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [[DataModel getInstance].legendDataSource addLegendForLayer:(AGSLayer *)layerView.agsLayer];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We got this construction from this: &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=901ca5cbcc6e4fe9bee960136c5971ba"&gt;http://www.arcgis.com/home/item.html?id=901ca5cbcc6e4fe9bee960136c5971ba&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, we only get the legend information from the basemap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can somebody help?&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;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2012 08:45:11 GMT</pubDate>
    <dc:creator>Chrisvan_Aart</dc:creator>
    <dc:date>2012-06-25T08:45:11Z</dc:date>
    <item>
      <title>get legend from webmap</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/get-legend-from-webmap/m-p/141696#M1312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We cannot het the legend from a webmap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are displaying a webmap in a mapview.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; self.webmap = [AGSWebMap webMapWithItemId:theId credential:nil];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[self.webmap openIntoMapView:self.mapView];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- (void)mapView:(AGSMapView *) mapView didLoadLayerForLayerView:(UIView&amp;lt;AGSLayerView&amp;gt; *) layerView {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; //Add legend for each layer added to the map&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [[DataModel getInstance].legendDataSource addLegendForLayer:(AGSLayer *)layerView.agsLayer];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We got this construction from this: &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=901ca5cbcc6e4fe9bee960136c5971ba"&gt;http://www.arcgis.com/home/item.html?id=901ca5cbcc6e4fe9bee960136c5971ba&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, we only get the legend information from the basemap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can somebody help?&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;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 08:45:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/get-legend-from-webmap/m-p/141696#M1312</guid>
      <dc:creator>Chrisvan_Aart</dc:creator>
      <dc:date>2012-06-25T08:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: get legend from webmap</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/get-legend-from-webmap/m-p/141697#M1313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the type of all your operational layers? i.e. Dynamic map service layer, tiled layer, feature layer etc? Which version of the server they belong to?&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>Mon, 25 Jun 2012 15:52:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/get-legend-from-webmap/m-p/141697#M1313</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-06-25T15:52:33Z</dc:date>
    </item>
  </channel>
</rss>

