<?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 url property of PictureMarkerSymbol on 3d map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-url-property-of-picturemarkersymbol-on-3d/m-p/53999#M4786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well that's a bummer, but thanks for the info!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Mar 2017 20:37:22 GMT</pubDate>
    <dc:creator>ZackMarble</dc:creator>
    <dc:date>2017-03-15T20:37:22Z</dc:date>
    <item>
      <title>Using url property of PictureMarkerSymbol on 3d map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-url-property-of-picturemarkersymbol-on-3d/m-p/53997#M4784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The API for JavaScript &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureMarkerSymbol.html"&gt;reference &lt;/A&gt;says that PictureMarkerSymbol can render Point graphics in either a 2D MapView or 3D SceneView using an image. I can get the example to work on a 2D map but when using a 3D map, nothing is rendered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to test, I changed the url from a web http URL to a data URI. When I did that, it rendered correctly in 2D and 3D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't believe it is a CORS problem because: 1) As stated the URL worked on 2D map, 2) I also tried a locally hosted image with a relative path, and 3) Looking at the new Symbol Playground I am seeing the same behavior. If you click on PictureMarkerSymbol you see a yellow square with black JS drawn over Southern California, but if you switch to 3D, it disappears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since it's not working on the esri playground I think it must be a code issue instead of a configuration issue. So is this a bug in the API the way the url property is used? Or do you have to include extra steps to make it render?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 21:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-url-property-of-picturemarkersymbol-on-3d/m-p/53997#M4784</guid>
      <dc:creator>ZackMarble</dc:creator>
      <dc:date>2017-03-14T21:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using url property of PictureMarkerSymbol on 3d map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-url-property-of-picturemarkersymbol-on-3d/m-p/53998#M4785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This appears to be a bug in the JS API. &amp;nbsp;Glancing at the API issues, this has been reported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the culprit is esriRequest, which is being used to fetch the image data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 13:45:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-url-property-of-picturemarkersymbol-on-3d/m-p/53998#M4785</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-03-15T13:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using url property of PictureMarkerSymbol on 3d map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-url-property-of-picturemarkersymbol-on-3d/m-p/53999#M4786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well that's a bummer, but thanks for the info!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 20:37:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-url-property-of-picturemarkersymbol-on-3d/m-p/53999#M4786</guid>
      <dc:creator>ZackMarble</dc:creator>
      <dc:date>2017-03-15T20:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using url property of PictureMarkerSymbol on 3d map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-url-property-of-picturemarkersymbol-on-3d/m-p/54000#M4787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should work if you host the image locally rather than getting it from another domain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another possible workaround&amp;nbsp;would be to encode the image in base64 and use a dataURI instead of a URL. &amp;nbsp;Using this, your url parameter&amp;nbsp;would look something like: "data:image/svg+xml;base64,&amp;lt;svg xml string in base64 encoding&amp;gt;". &amp;nbsp;For a jpeg, it would look like: "data:image/jpeg;base64,&amp;lt;jpeg binary encoded in base64&amp;gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: due to another issue (possibly another bug)&amp;nbsp;you can't have uft8 encoded svgs on 3D maps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can encode strings in the browser with &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/btoa"&gt;btoa&lt;/A&gt;&amp;nbsp;or check google, I'm sure there's plenty of websites that will allow you to upload an image and give you back a base64 string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 21:04:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-url-property-of-picturemarkersymbol-on-3d/m-p/54000#M4787</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-03-15T21:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using url property of PictureMarkerSymbol on 3d map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-url-property-of-picturemarkersymbol-on-3d/m-p/54001#M4788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chrome Dev tools has the ability to create data uris from your image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://deanhume.com/home/blogpost/quick-tip--create-data-uris-using-chrome/8112" title="http://deanhume.com/home/blogpost/quick-tip--create-data-uris-using-chrome/8112"&gt;http://deanhume.com/home/blogpost/quick-tip--create-data-uris-using-chrome/8112&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 20:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-url-property-of-picturemarkersymbol-on-3d/m-p/54001#M4788</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2017-03-16T20:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using url property of PictureMarkerSymbol on 3d map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-url-property-of-picturemarkersymbol-on-3d/m-p/54002#M4789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the data URI works in both 2D and 3D. I don't think I can make that work since I will be getting the URLs from a rest payload. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using 4.2 and the locally hosted images would not work in 3D. However, I updated to 4.3 and that seems to be fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like that's the best I can do for now. I'm hoping the URL will be fully functional in a future release. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 21:38:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-url-property-of-picturemarkersymbol-on-3d/m-p/54002#M4789</guid>
      <dc:creator>ZackMarble</dc:creator>
      <dc:date>2017-03-16T21:38:17Z</dc:date>
    </item>
  </channel>
</rss>

