<?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 Make a polyline/polygon of arrows in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/make-a-polyline-polygon-of-arrows/m-p/463011#M2350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to indicate the direction of flow for a polyline and also for a polygon. I'd like each segment of the multipart to have an arrowhead (or just a triangle graphic) at the tip. What tools does ArcGIS for Qt/C++ have for something like this? How would I go about making arrows?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Sep 2017 13:57:45 GMT</pubDate>
    <dc:creator>NicholasLiccini</dc:creator>
    <dc:date>2017-09-06T13:57:45Z</dc:date>
    <item>
      <title>Make a polyline/polygon of arrows</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/make-a-polyline-polygon-of-arrows/m-p/463011#M2350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to indicate the direction of flow for a polyline and also for a polygon. I'd like each segment of the multipart to have an arrowhead (or just a triangle graphic) at the tip. What tools does ArcGIS for Qt/C++ have for something like this? How would I go about making arrows?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 13:57:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/make-a-polyline-polygon-of-arrows/m-p/463011#M2350</guid>
      <dc:creator>NicholasLiccini</dc:creator>
      <dc:date>2017-09-06T13:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Make a polyline/polygon of arrows</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/make-a-polyline-polygon-of-arrows/m-p/463012#M2351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicholas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assuming you can determine the angle you would like to show your arrows at for each segment, you could achieve something like this by adding SimpleMarkerSymbols, with the style set to Triangle. If you use a renderer with a rotation expression you can set an attribute on each Graphic to rotate to your desired angle. The code below shows a simple example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #800080;"&gt;&amp;nbsp; GraphicsOverlay&lt;/SPAN&gt;*&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;overlay&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;GraphicsOverlay&lt;/SPAN&gt;(&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;m_mapView&lt;/SPAN&gt;-&amp;gt;graphicsOverlays()-&amp;gt;append(overlay);&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;SimpleMarkerSymbol&lt;/SPAN&gt;*&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;symbol&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;SimpleMarkerSymbol&lt;/SPAN&gt;(&lt;SPAN style="color: #800080;"&gt;SimpleMarkerSymbolStyle&lt;/SPAN&gt;::&lt;SPAN style="color: #800080;"&gt;Triangle&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Qt&lt;/SPAN&gt;::&lt;SPAN style="color: #800080;"&gt;red&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;25&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Graphic&lt;/SPAN&gt;*&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;g1&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Graphic&lt;/SPAN&gt;(&lt;SPAN style="color: #800080;"&gt;Point&lt;/SPAN&gt;(&lt;SPAN style="color: #000080;"&gt;0.&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;0.&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;SpatialReference&lt;/SPAN&gt;::wgs84()),&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;g1-&amp;gt;&lt;SPAN style="color: #000000;"&gt;attributes&lt;/SPAN&gt;()-&amp;gt;insertAttribute(&lt;SPAN style="color: #008000;"&gt;"ANGLE"&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;10&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;overlay-&amp;gt;graphics()-&amp;gt;append(g1);&lt;/PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Graphic&lt;/SPAN&gt;*&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;g2&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Graphic&lt;/SPAN&gt;(&lt;SPAN style="color: #800080;"&gt;Point&lt;/SPAN&gt;(&lt;SPAN style="color: #000080;"&gt;51.&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;0.&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;SpatialReference&lt;/SPAN&gt;::wgs84()),&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;g2-&amp;gt;&lt;SPAN style="color: #000000;"&gt;attributes&lt;/SPAN&gt;()-&amp;gt;insertAttribute(&lt;SPAN style="color: #008000;"&gt;"ANGLE"&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;45&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;overlay-&amp;gt;graphics()-&amp;gt;append(g2);&lt;/PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Graphic&lt;/SPAN&gt;*&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;g3&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Graphic&lt;/SPAN&gt;(&lt;SPAN style="color: #800080;"&gt;Point&lt;/SPAN&gt;(&lt;SPAN style="color: #000080;"&gt;51.&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;22.&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;SpatialReference&lt;/SPAN&gt;::wgs84()),&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;g3-&amp;gt;&lt;SPAN style="color: #000000;"&gt;attributes&lt;/SPAN&gt;()-&amp;gt;insertAttribute(&lt;SPAN style="color: #008000;"&gt;"ANGLE"&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;28&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;overlay-&amp;gt;graphics()-&amp;gt;append(g3);&lt;/PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;SimpleRenderer&lt;/SPAN&gt;*&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;renderer&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;SimpleRenderer&lt;/SPAN&gt;(symbol,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;renderer-&amp;gt;setRotationExpression(&lt;SPAN style="color: #008000;"&gt;"[ANGLE]"&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp; &lt;/SPAN&gt;overlay-&amp;gt;setRenderer(renderer);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would like to more complex&amp;nbsp;arrow symbols, there are probably two approaches you could take:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use a PictureMarkerSymbol with an image of your arrow&lt;/P&gt;&lt;P&gt;2. Use a CompositeSymbol to combine several&amp;nbsp;SimpleMarkerSymbols (e.g. a Triangle and a Square) to make the arrow shape&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 11:17:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/make-a-polyline-polygon-of-arrows/m-p/463012#M2351</guid>
      <dc:creator>LukeSmallwood</dc:creator>
      <dc:date>2017-09-07T11:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Make a polyline/polygon of arrows</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/make-a-polyline-polygon-of-arrows/m-p/463013#M2352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Luke! That definitely will get me started&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to determine the angle of a segment from the geometry itself rather than hardcoding it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 13:24:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/make-a-polyline-polygon-of-arrows/m-p/463013#M2352</guid>
      <dc:creator>NicholasLiccini</dc:creator>
      <dc:date>2017-09-07T13:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Make a polyline/polygon of arrows</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/make-a-polyline-polygon-of-arrows/m-p/463014#M2353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;H Nicholas, if you can walk the vertices of the geometry (e.g. using ImmutablePartCollection and so on) you should be able to use the distanceGeodetic method on GeometryEngine (&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/cpp/api-reference/esri-arcgisruntime-geometryengine.html#distanceGeodetic" title="https://developers.arcgis.com/qt/latest/cpp/api-reference/esri-arcgisruntime-geometryengine.html#distanceGeodetic"&gt;GeometryEngine Class | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;) to determine the azimuth from the start to the end point of your segments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 13:27:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/make-a-polyline-polygon-of-arrows/m-p/463014#M2353</guid>
      <dc:creator>LukeSmallwood</dc:creator>
      <dc:date>2017-09-07T13:27:43Z</dc:date>
    </item>
  </channel>
</rss>

