<?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: Draw on Map in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/draw-on-map/m-p/1095958#M4410</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/66255"&gt;@MauricioRamirez1&lt;/a&gt;&amp;nbsp;the 100.12 release of ArcGIS Runtime now supports a SketchEditor, which greatly simplifies the workflow for sketching geometries on a map. This might be something worth considering integrating into your app. It doesn't support freehand yet, but that is in the plans for the future. More details are in the release blog -&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-runtime-sdks-blog/sketcheditor-now-available-in-the-arcgis-runtime/ba-p/1094221" target="_blank"&gt;https://community.esri.com/t5/arcgis-runtime-sdks-blog/sketcheditor-now-available-in-the-arcgis-runtime/ba-p/1094221&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 15:14:16 GMT</pubDate>
    <dc:creator>LucasDanzinger</dc:creator>
    <dc:date>2021-09-07T15:14:16Z</dc:date>
    <item>
      <title>Draw on Map</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/draw-on-map/m-p/265753#M1356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We've developed an application using the Runtime SDK with QT. &amp;nbsp;We have a new requirement to allow users to draw areas on the map. &amp;nbsp;We've seen a few examples using C# and JavaScript, unfortunately we've not been able to find an example using C++ and QT. &amp;nbsp;They need the ability to &amp;nbsp;draw freehand and also by clicking points and have it auto close the shape. From other examples I've seen we need to have a FeatureService that will allow editing, but getting the map to accept clicks as points for a polygon has me puzzled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2020 14:38:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/draw-on-map/m-p/265753#M1356</guid>
      <dc:creator>MauricioRamirez1</dc:creator>
      <dc:date>2020-08-25T14:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Draw on Map</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/draw-on-map/m-p/265754#M1357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, here's a quick untested code snippet that hopefully nudges you in the right direction, there may be a better way to do it, but it's repurposed from a gps breadcrumb function I had and looking at the SDK sample for Geometries&amp;gt;Nearest Vertex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapGraphicsView *map_control;&lt;/P&gt;&lt;P&gt;std::shared_ptr&amp;lt;GraphicsOverlay&amp;gt; layer_geometries;&lt;/P&gt;&lt;P&gt;std::shared_ptr&amp;lt;PolylineBuilder&amp;gt; polyline_tracks;&lt;/P&gt;&lt;P&gt;std::shared_ptr&amp;lt;SimpleLineSymbol&amp;gt; polyline_pen;&lt;/P&gt;&lt;P&gt;std::shared_ptr&amp;lt;Graphic&amp;gt; polyline_graphic;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// choose your line style&lt;/P&gt;&lt;P&gt;polyline_pen&amp;nbsp;= std::make_shared&amp;lt;SimpleLineSymbol&amp;gt;(SimpleLineSymbolStyle::Dot, QColor(0, 0, 255, 100), 5);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map_control = new MapGraphicsView(this);&lt;/P&gt;&lt;P&gt;layer_geometries = std::make_shared&amp;lt;GraphicsOverlay&amp;gt;();&lt;/P&gt;&lt;P&gt;map_control-&amp;gt;graphicsOverlays()-&amp;gt;append(p-&amp;gt;layer_geometries.get());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;connect(m_mapView, &amp;amp;&lt;SPAN&gt;MapGraphicsView&lt;/SPAN&gt;::mouseClicked, this, [=](QMouseEvent&amp;amp; e)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;Point clicked_location = &lt;SPAN&gt;map_control&lt;/SPAN&gt;-&amp;gt;screenToLocation(e.x(), e.y());&lt;BR /&gt;polyline_tracks-&amp;gt;addPoint(&lt;SPAN&gt;clicked_location&amp;nbsp;&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;std::shared_ptr&amp;lt;PolylineBuilder&amp;gt;close_points(p-&amp;gt;gps_tracks);&lt;/P&gt;&lt;P&gt;close_points-&amp;gt;addPoint(p-&amp;gt;gps_tracks-&amp;gt;parts()-&amp;gt;part(0)-&amp;gt;startPoint());&lt;/P&gt;&lt;P&gt;polyline_graphic= std::make_shared&amp;lt;Graphic&amp;gt;(&lt;SPAN&gt;close_points&lt;/SPAN&gt;-&amp;gt;toGeometry(), polyline_pen.get());&lt;/P&gt;&lt;P&gt;layer_geometries-&amp;gt;graphics()-&amp;gt;clear();&lt;/P&gt;&lt;P&gt;layer_geometries-&amp;gt;graphics()-&amp;gt;append(p-&amp;gt;polyline_graphic.get());&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Check out this sample program with markup -&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/dynamic-situational-awareness-qt/blob/master/docs/README.md#markup-tools" title="https://github.com/Esri/dynamic-situational-awareness-qt/blob/master/docs/README.md#markup-tools"&gt;Markup Documentation&lt;/A&gt;. Source code here:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/dynamic-situational-awareness-qt/tree/master/Shared/markup" title="https://github.com/Esri/dynamic-situational-awareness-qt/tree/master/Shared/markup"&gt;dynamic-situational-awareness-qt/Shared/markup&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2020 17:32:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/draw-on-map/m-p/265754#M1357</guid>
      <dc:creator>TomNorby</dc:creator>
      <dc:date>2020-08-25T17:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Draw on Map</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/draw-on-map/m-p/265755#M1358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I’ll give it a try. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2020 23:44:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/draw-on-map/m-p/265755#M1358</guid>
      <dc:creator>MauricioRamirez1</dc:creator>
      <dc:date>2020-08-25T23:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Draw on Map</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/draw-on-map/m-p/1095958#M4410</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/66255"&gt;@MauricioRamirez1&lt;/a&gt;&amp;nbsp;the 100.12 release of ArcGIS Runtime now supports a SketchEditor, which greatly simplifies the workflow for sketching geometries on a map. This might be something worth considering integrating into your app. It doesn't support freehand yet, but that is in the plans for the future. More details are in the release blog -&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-runtime-sdks-blog/sketcheditor-now-available-in-the-arcgis-runtime/ba-p/1094221" target="_blank"&gt;https://community.esri.com/t5/arcgis-runtime-sdks-blog/sketcheditor-now-available-in-the-arcgis-runtime/ba-p/1094221&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 15:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/draw-on-map/m-p/1095958#M4410</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2021-09-07T15:14:16Z</dc:date>
    </item>
  </channel>
</rss>

