<?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: Using Javascipt API to draw an arrow in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/1063029#M73332</link>
    <description>&lt;P&gt;From 4.16 you have the ability to add a marker of type LineSymbolMarker to a line. Arrow is one of the style option with settings of placement and color.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbolMarker.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbolMarker.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 May 2021 18:58:11 GMT</pubDate>
    <dc:creator>AamirSuleman1</dc:creator>
    <dc:date>2021-05-28T18:58:11Z</dc:date>
    <item>
      <title>Using Javascipt API to draw an arrow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327857#M30270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a list with tuples containing latitude and longitudes, and I need to draw an arrow between the two points in the tuple. I cannot however find any easy way to do this. How would i go about drawing an arrow with the javascript API? Also it needs to scale with zoom level so the arrow isnt giantly large if u zoom in on it &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 13:52:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327857#M30270</guid>
      <dc:creator>BjörnPaulström</dc:creator>
      <dc:date>2017-07-17T13:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Javascipt API to draw an arrow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327858#M30271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 3.21 API has a draw tool that can draw arrows. &amp;nbsp;This does not yet exist in 4.XX unfortunately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the 3.21 tool (click arrow)&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=toolbar_draw" title="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=toolbar_draw"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A question though: you say the arrow should be drawn between point A and point B, but if A and B&amp;nbsp;are&amp;nbsp;fixed long/lats then the arrow has to scale as you zoom in and out. &amp;nbsp;For example, in the 3.21 draw tool, both ends of the arrow are fixed long/lats, so the arrow must change sizes as the user zooms in and out. &amp;nbsp;If it didn't change size, then it would no longer be fit to those two points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the 3.21 tool matches what you need I can probably make a quick sample that does roughly the same thing for the 4.X API.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 15:24:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327858#M30271</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-07-17T15:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using Javascipt API to draw an arrow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327859#M30272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here's a sample showing how to make an arrow drawing tool in the 4.XX API:&amp;nbsp;&lt;A class="link-titled" href="https://jsbin.com/xicojevuni/edit?html,output" title="https://jsbin.com/xicojevuni/edit?html,output"&gt;https://jsbin.com/xicojevuni/edit?html,output&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(draw on the map to draw an arrow)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 19:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327859#M30272</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-07-17T19:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using Javascipt API to draw an arrow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327860#M30273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer, however this approach has the side effect i am trying to avoid (probably wasnt a good description, english is not my native language). Since you place the coordinates in worldspace the arrow occupies the whole view when you zoom in.&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/363149_Namnlös.png" style="width: 620px; height: 434px;" /&gt;&lt;/P&gt;&lt;P&gt;I was looking for something closer to how google solves it,&amp;nbsp;&lt;BR /&gt;&lt;A class="link-titled" href="https://developers.google.com/maps/documentation/javascript/examples/overlay-symbol-arrow" title="https://developers.google.com/maps/documentation/javascript/examples/overlay-symbol-arrow"&gt;Arrows (Symbols) &amp;nbsp;|&amp;nbsp; Google Maps JavaScript API &amp;nbsp;|&amp;nbsp; Google Developers&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;where the arrow is the same size even if u zoom in, thought this would be something simple already included in the api...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 07:58:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327860#M30273</guid>
      <dc:creator>BjörnPaulström</dc:creator>
      <dc:date>2017-07-18T07:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using Javascipt API to draw an arrow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327861#M30274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some types of symbols remain the same size as you zoom in and out. &amp;nbsp;For example, PictureMarkerSymbols and SimpleMarkerSymbols do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think&amp;nbsp;you could get something like this working using two graphics, one of them symbolized by a PictureMarkerSymbol to represent the head of the arrow and the other a polyline represented by a SimpleLineSymbol representing the rest of the arrow. &amp;nbsp;You'd have to rotate the PMS based on the direction the arrow is facing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 13:02:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327861#M30274</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-07-18T13:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using Javascipt API to draw an arrow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327862#M30275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a sample showing how you might do this:&amp;nbsp;&lt;A class="link-titled" href="https://jsbin.com/hidahikupi/edit?html,output" title="https://jsbin.com/hidahikupi/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The arrowhead image is a base64 svg, but you could use whatever image you wanted for the arrowhead. &amp;nbsp;You might have to play with how the angle of rotation is calculated based on the orientation of the image you use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 13:38:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327862#M30275</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-07-18T13:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using Javascipt API to draw an arrow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327863#M30276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, if you looking for something that is look same with &lt;A href="https://developers.google.com/maps/documentation/javascript/examples/overlay-symbol-arrow"&gt;Arrows (Symbols) | Google Maps JavaScript API | Google Developers&lt;/A&gt;, then I'll suggest you this one: &lt;A class="jivelink10" href="https://github.com/nickcam/DirectionalLineSymbol/" title="https://github.com/nickcam/DirectionalLineSymbol/"&gt;DirectionalLineSymbol.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create polyline and&amp;nbsp;arrow at the end of line or make it repeatly along the line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 02:17:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327863#M30276</guid>
      <dc:creator>PutriDewi_Purnamasari</dc:creator>
      <dc:date>2017-07-20T02:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Javascipt API to draw an arrow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327864#M30277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no arrow in the Esri Sketch Widget in the 4.x api (as of February 2020), so I took Thomas's drag arrow functionality and tweaked it&amp;nbsp;for use with the sketch widget in this&amp;nbsp;&lt;A href="https://codepen.io/christianhoward/pen/WNveVMW"&gt;codepen&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2020 20:31:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327864#M30277</guid>
      <dc:creator>ChristianHoward</dc:creator>
      <dc:date>2020-02-05T20:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using Javascipt API to draw an arrow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327865#M30278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a version using the ArcGIS API for JavaScript version 4.16. It uses the CIMSymbol which is in beta and has some caveats (&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html"&gt;read those&lt;/A&gt; before using):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://codepen.io/gavinr/pen/BaKpbYd" title="https://codepen.io/gavinr/pen/BaKpbYd"&gt;https://codepen.io/gavinr/pen/BaKpbYd&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also: &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/cim-line-arrows/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/cim-line-arrows/index.html"&gt;Arrows along a line | ArcGIS API for JavaScript 4.16&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2020 18:14:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/327865#M30278</guid>
      <dc:creator>GavinRehkemper</dc:creator>
      <dc:date>2020-08-24T18:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using Javascipt API to draw an arrow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/1050642#M72705</link>
      <description>&lt;P&gt;I had a question, do you think the print service will work for this ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 13:48:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/1050642#M72705</guid>
      <dc:creator>SelectivelySocial</dc:creator>
      <dc:date>2021-04-23T13:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using Javascipt API to draw an arrow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/1063029#M73332</link>
      <description>&lt;P&gt;From 4.16 you have the ability to add a marker of type LineSymbolMarker to a line. Arrow is one of the style option with settings of placement and color.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbolMarker.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbolMarker.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 18:58:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/1063029#M73332</guid>
      <dc:creator>AamirSuleman1</dc:creator>
      <dc:date>2021-05-28T18:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Javascipt API to draw an arrow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/1067802#M73478</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;So I tried this and it works perfectly fine, but there's one issue when I try to use print service then it simply removes the arrow symbol from the print, do you know any workaround for this.&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 07:16:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascipt-api-to-draw-an-arrow/m-p/1067802#M73478</guid>
      <dc:creator>SelectivelySocial</dc:creator>
      <dc:date>2021-06-14T07:16:18Z</dc:date>
    </item>
  </channel>
</rss>

