<?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: Web URL to *.png file for PictureMarkerSymbol in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-url-to-png-file-for-picturemarkersymbol/m-p/21851#M1886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/331608"&gt;Egge-Jan Pollé&lt;/A&gt;‌ then I got it right, but it's not possible to simply add something like this to the url property?&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"https://i.stack.imgur.com/ILTQq.png"&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2020 10:22:49 GMT</pubDate>
    <dc:creator>ChristianBischof</dc:creator>
    <dc:date>2020-06-22T10:22:49Z</dc:date>
    <item>
      <title>Web URL to *.png file for PictureMarkerSymbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-url-to-png-file-for-picturemarkersymbol/m-p/21849#M1884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to achieve the following:&lt;/P&gt;&lt;P&gt;I'd like to use a png file as the marker symbol for my PictureMarkerSymbol, but it seems like it's only possible with local png files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What doesn't work, but I'd like to achieve:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; markerSymbol &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
          type&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"picture-marker"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
          url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"https://www.myurltothepicture.com/img/mypicture.png"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
          height&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"60px"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
          width&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"60px"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What works, but isn't what I need:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; markerSymbol &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
          type&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"picture-marker"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
          url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"local/path/to/png/symbol.png"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
          height&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"60px"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
          width&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"60px"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know if this is generally not possible, or am I doing something wrong?&lt;/P&gt;&lt;P&gt;I'm using JS API 4.15&lt;/P&gt;&lt;P&gt;Thanks in advance for your help &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:53:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-url-to-png-file-for-picturemarkersymbol/m-p/21849#M1884</guid>
      <dc:creator>ChristianBischof</dc:creator>
      <dc:date>2021-12-10T20:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Web URL to *.png file for PictureMarkerSymbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-url-to-png-file-for-picturemarkersymbol/m-p/21850#M1885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/405468"&gt;Christian Bischof&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah, the easiest way is to use an image hosted on the same domain as the application. That works, as you have already noted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV class=""&gt;&lt;P&gt;To avoid CORS issues with this symbol, do one of the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Make certain that the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureMarkerSymbol.html#url"&gt;image&lt;/A&gt; is hosted on a &lt;A href="https://developers.arcgis.com/javascript/latest/guide/cors/index.html"&gt;CORS enabled server&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;Use an &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureMarkerSymbol.html#url"&gt;image&lt;/A&gt; hosted on the same domain as the application.&lt;/LI&gt;&lt;LI&gt;Install a &lt;A href="https://developers.arcgis.com/javascript/latest/guide/proxies/index.html"&gt;proxy&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;More info here: &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureMarkerSymbol.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureMarkerSymbol.html"&gt;PictureMarkerSymbol | ArcGIS API for JavaScript 4.15&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 10:02:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-url-to-png-file-for-picturemarkersymbol/m-p/21850#M1885</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2020-06-22T10:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Web URL to *.png file for PictureMarkerSymbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-url-to-png-file-for-picturemarkersymbol/m-p/21851#M1886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/331608"&gt;Egge-Jan Pollé&lt;/A&gt;‌ then I got it right, but it's not possible to simply add something like this to the url property?&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"https://i.stack.imgur.com/ILTQq.png"&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 10:22:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-url-to-png-file-for-picturemarkersymbol/m-p/21851#M1886</guid>
      <dc:creator>ChristianBischof</dc:creator>
      <dc:date>2020-06-22T10:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Web URL to *.png file for PictureMarkerSymbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-url-to-png-file-for-picturemarkersymbol/m-p/21852#M1887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/405468"&gt;Christian Bischof&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, apparently not... When your image is hosted in a different domain as the application, you should make sure that the server the image is hosted on is CORS enabled. Or you should install a proxy...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried this sometime ago (&lt;A class="link-titled" href="https://twiav.nl/cursus/arcgis/javascript/cursus_arcgis_javascript_csv_bestand_toevoegen.htm" title="https://twiav.nl/cursus/arcgis/javascript/cursus_arcgis_javascript_csv_bestand_toevoegen.htm"&gt;Aan de slag met ArcGIS JavaScript - CSV bestand toevoegen&lt;/A&gt;), I ended up using the most simple solution: I copied the image to my own server. I did not (not yet) get one of the other two options to work, so I am not able to give you any insights into these...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 10:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-url-to-png-file-for-picturemarkersymbol/m-p/21852#M1887</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2020-06-22T10:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Web URL to *.png file for PictureMarkerSymbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-url-to-png-file-for-picturemarkersymbol/m-p/21853#M1888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.esri.com/migrated-users/331608"&gt;Egge-Jan Pollé&lt;/A&gt;‌ that's exactly what I've done right now, because it's the easiest way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 11:01:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/web-url-to-png-file-for-picturemarkersymbol/m-p/21853#M1888</guid>
      <dc:creator>ChristianBischof</dc:creator>
      <dc:date>2020-06-22T11:01:47Z</dc:date>
    </item>
  </channel>
</rss>

