<?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 Using a ListModel as a model for map markers in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/using-a-listmodel-as-a-model-for-map-markers/m-p/1073737#M4284</link>
    <description>&lt;P&gt;I might have missed this in the examples, but I cannot find a worked example of how to have points/markers/symbols be linked to a ListModel.&lt;/P&gt;&lt;P&gt;I have an XMLListModel from NOAA which lists all the weather stations across the US and I would like to plot their location with a simple circle. This is pretty simple so I'm sure it's low-hanging fruit for the right approach. It seems that I could create each point through iteratively&amp;nbsp; calling `ArcGISRuntimeEnvironment.createObject()`, but this doesn't feel "qml-like". I'm hoping to find a view which consumes the model, much like the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://doc.qt.io/qt-5/qml-qtlocation-mapitemview.html" target="_self" rel="nofollow noopener noreferrer"&gt;QML-native MapItemView&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Nothing in the API jumps out at me as appropriate, with the closest being&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-geoview.html" target="_self" rel="nofollow noopener noreferrer"&gt;GeoView&lt;/A&gt;. However, a GeoView cannot be created directly and is inherited by a MapView and a SceneView, neither of which is appropriate for a model view which consumes a ListModel.&lt;/P&gt;&lt;P&gt;This&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-qt/is-a-layer-quot-delegate-quot-type-supporting-qt-s-models-in-the/m-p/395562" target="_self"&gt;forum post&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;seems to be asking for the same thing, but it's 6 years old so perhaps the feature has been implemented in the meanwhile.&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is there SDK support for an ArcGIS equivalent of the MapItemView?&lt;/LI&gt;&lt;LI&gt;If not, what is the recommended way to create the same behavior?&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Tue, 29 Jun 2021 16:52:13 GMT</pubDate>
    <dc:creator>KennSebesta</dc:creator>
    <dc:date>2021-06-29T16:52:13Z</dc:date>
    <item>
      <title>Using a ListModel as a model for map markers</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/using-a-listmodel-as-a-model-for-map-markers/m-p/1073737#M4284</link>
      <description>&lt;P&gt;I might have missed this in the examples, but I cannot find a worked example of how to have points/markers/symbols be linked to a ListModel.&lt;/P&gt;&lt;P&gt;I have an XMLListModel from NOAA which lists all the weather stations across the US and I would like to plot their location with a simple circle. This is pretty simple so I'm sure it's low-hanging fruit for the right approach. It seems that I could create each point through iteratively&amp;nbsp; calling `ArcGISRuntimeEnvironment.createObject()`, but this doesn't feel "qml-like". I'm hoping to find a view which consumes the model, much like the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://doc.qt.io/qt-5/qml-qtlocation-mapitemview.html" target="_self" rel="nofollow noopener noreferrer"&gt;QML-native MapItemView&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Nothing in the API jumps out at me as appropriate, with the closest being&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-geoview.html" target="_self" rel="nofollow noopener noreferrer"&gt;GeoView&lt;/A&gt;. However, a GeoView cannot be created directly and is inherited by a MapView and a SceneView, neither of which is appropriate for a model view which consumes a ListModel.&lt;/P&gt;&lt;P&gt;This&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-qt/is-a-layer-quot-delegate-quot-type-supporting-qt-s-models-in-the/m-p/395562" target="_self"&gt;forum post&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;seems to be asking for the same thing, but it's 6 years old so perhaps the feature has been implemented in the meanwhile.&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is there SDK support for an ArcGIS equivalent of the MapItemView?&lt;/LI&gt;&lt;LI&gt;If not, what is the recommended way to create the same behavior?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 29 Jun 2021 16:52:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/using-a-listmodel-as-a-model-for-map-markers/m-p/1073737#M4284</guid>
      <dc:creator>KennSebesta</dc:creator>
      <dc:date>2021-06-29T16:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using a ListModel as a delegate for map markers</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/using-a-listmodel-as-a-model-for-map-markers/m-p/1073772#M4285</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/368809"&gt;@KennSebesta&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Unfortunately there is no way to apply an&amp;nbsp;&lt;SPAN&gt;XmlListModel&lt;/SPAN&gt; of data to our MapView. We do support MVC with our creatable view types being MapView (2D) and SceneView (3D) along with their models, Map and Scene.&lt;/P&gt;&lt;P&gt;There is no way to "hydrate" graphics onto our Map or Scene directly from an&amp;nbsp;&lt;SPAN&gt;XmlListModel. We do have an existing sample showing how to get graphics onto the map from data in an xml file, via an&amp;nbsp;XmlListModel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-qt/blob/main/ArcGISRuntimeSDKQt_QMLSamples/DisplayInformation/GODictionaryRenderer/GODictionaryRenderer.qml" target="_blank"&gt;https://github.com/Esri/arcgis-runtime-samples-qt/blob/main/ArcGISRuntimeSDKQt_QMLSamples/DisplayInformation/GODictionaryRenderer/GODictionaryRenderer.qml&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If the incoming data is from an open standard like OGC, the Runtime can natively support OGC.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 16:27:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/using-a-listmodel-as-a-model-for-map-markers/m-p/1073772#M4285</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2021-06-29T16:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using a ListModel as a delegate for map markers</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/using-a-listmodel-as-a-model-for-map-markers/m-p/1073778#M4286</link>
      <description>&lt;P&gt;Gotcha.&lt;/P&gt;&lt;P&gt;I might have erred in mentioning that I'm&amp;nbsp;using an XMLListModel, since the question is about the broader ListModel component.&amp;nbsp;Is there an example about how to "hydrate" graphical markers onto a Map, with the markers coordinates being defined in a standard ListModel?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 16:40:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/using-a-listmodel-as-a-model-for-map-markers/m-p/1073778#M4286</guid>
      <dc:creator>KennSebesta</dc:creator>
      <dc:date>2021-06-29T16:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using a ListModel as a delegate for map markers</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/using-a-listmodel-as-a-model-for-map-markers/m-p/1073782#M4287</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/368809"&gt;@KennSebesta&lt;/a&gt;&amp;nbsp;, no, it's not possible I'm afraid. You'd need to read the data out and parse it manually.&lt;/P&gt;&lt;P&gt;We do allow nesting of objects (Map nested in a MapView, Graphics nested in a GraphicsOverlay), but they all need to be Runtime objects and declared to utilize that workflow.&lt;/P&gt;&lt;P&gt;On the plus side, it should not be very difficult to parse out the data and create the graphics from any long/lat data in the file. The example I shared is doing exactly that.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 16:43:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/using-a-listmodel-as-a-model-for-map-markers/m-p/1073782#M4287</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2021-06-29T16:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using a ListModel as a delegate for map markers</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/using-a-listmodel-as-a-model-for-map-markers/m-p/1073787#M4288</link>
      <description>&lt;P&gt;Understood.&lt;/P&gt;&lt;P&gt;If you guys get a chance, it would be nice to have support for this feature. The MapItemView interface is very clean to read/write, and it's furthermore easy to use when removing items. Looking at the above GODictionaryRenderer example, it seems like there's a non-trivial burden to finding an item once it's appended to the generic&amp;nbsp;graphicsOverlay.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 16:57:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/using-a-listmodel-as-a-model-for-map-markers/m-p/1073787#M4288</guid>
      <dc:creator>KennSebesta</dc:creator>
      <dc:date>2021-06-29T16:57:11Z</dc:date>
    </item>
  </channel>
</rss>

