<?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 undefined legend from FeatureLayer (QML) in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/undefined-legend-from-featurelayer-qml/m-p/32107#M129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #606060;"&gt;Hey,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #606060;"&gt;I'm creating FeatureLayers with ArcGISRuntime.createObject("FeatureLayer"). Then I fill the layers feature Table with information from an offline geodatabase by geodatabaseFeatureTableByLayerId(i). Afterwards I add them to my Map by addLayer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My Problem is that I now want to access layers legend list to get their legendItems image. (layer.legend[0].legendItems[0].image) To ensure that all layers are constructed I wait until all Layers are displayed and then I click a button which runs a function to get the images of my layers. Console output said that there is no legend added to my FeatureLayer(ArcGIS.Runtime.Layer: class QQmlListProperty&amp;lt;class QmlLayerLegendInfo&amp;gt; __cdecl QmlLayer::legend(void) count= 0) but I think that there should be one because the layers get displayed in different colors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #606060;"&gt;Don't know if this is a bug or if I just did smth. wrong. My target is to get the layers color or image information to display it in a legend.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Apr 2016 12:29:09 GMT</pubDate>
    <dc:creator>VinzenzJohna</dc:creator>
    <dc:date>2016-04-20T12:29:09Z</dc:date>
    <item>
      <title>undefined legend from FeatureLayer (QML)</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/undefined-legend-from-featurelayer-qml/m-p/32107#M129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #606060;"&gt;Hey,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #606060;"&gt;I'm creating FeatureLayers with ArcGISRuntime.createObject("FeatureLayer"). Then I fill the layers feature Table with information from an offline geodatabase by geodatabaseFeatureTableByLayerId(i). Afterwards I add them to my Map by addLayer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My Problem is that I now want to access layers legend list to get their legendItems image. (layer.legend[0].legendItems[0].image) To ensure that all layers are constructed I wait until all Layers are displayed and then I click a button which runs a function to get the images of my layers. Console output said that there is no legend added to my FeatureLayer(ArcGIS.Runtime.Layer: class QQmlListProperty&amp;lt;class QmlLayerLegendInfo&amp;gt; __cdecl QmlLayer::legend(void) count= 0) but I think that there should be one because the layers get displayed in different colors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #606060;"&gt;Don't know if this is a bug or if I just did smth. wrong. My target is to get the layers color or image information to display it in a legend.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 12:29:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/undefined-legend-from-featurelayer-qml/m-p/32107#M129</guid>
      <dc:creator>VinzenzJohna</dc:creator>
      <dc:date>2016-04-20T12:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: undefined legend from FeatureLayer (QML)</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/undefined-legend-from-featurelayer-qml/m-p/32108#M130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this is a bug in 10.2.6 release. FeatureLayer and ArcGISFeatureLayer legends do not work. This issue is fixed with our Quartz release, which will have a beta coming out in the next few months.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 15:18:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/undefined-legend-from-featurelayer-qml/m-p/32108#M130</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2016-04-20T15:18:28Z</dc:date>
    </item>
  </channel>
</rss>

