<?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 JSAPI externalrenderer causes graphics in graphics layer to not draw in SceneView in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-externalrenderer-causes-graphics-in-graphics/m-p/284823#M26262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a SceneView, if I add graphics to a graphics layer&amp;nbsp;AFTER I&amp;nbsp;add an external renderer to the view,&amp;nbsp; the graphics do not draw. If I add them BEFORE adding the external renderer to the view, they do draw, To reproduce, go to this sandbox:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=scene-external-renderer-threejs"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=scene-external-renderer-threejs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy and paste this codeblock before line 87 - this works, you'll see a graphic over London, England. If you then put this code block after adding the external renderer, you will not see the graphic. This behaviour, we've noticed since 4.6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our desire is to add graphics after an external renderer has been added&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;require(["esri/layers/GraphicsLayer","esri/Graphic"], function(GraphicsLayer, Graphic) {&lt;BR /&gt; &lt;BR /&gt; var graphicsLayer = new GraphicsLayer();&lt;BR /&gt; map.add(graphicsLayer);&lt;BR /&gt; &lt;BR /&gt; // London&lt;BR /&gt; var point = {&lt;BR /&gt; type: "point", // autocasts as new Point()&lt;BR /&gt; x: -0.178,&lt;BR /&gt; y: 51.48791,&lt;BR /&gt; z: 1010&lt;BR /&gt; };&lt;BR /&gt; &lt;BR /&gt; markerSymbol = {&lt;BR /&gt; type: "simple-marker", // autocasts as new SimpleMarkerSymbol()&lt;BR /&gt; color: [226, 119, 40],&lt;BR /&gt; outline: {&lt;BR /&gt; // autocasts as new SimpleLineSymbol()&lt;BR /&gt; color: [255, 255, 255],&lt;BR /&gt; width: 2&lt;BR /&gt; }&lt;BR /&gt; };&lt;BR /&gt; &lt;BR /&gt; var pointGraphic = new Graphic({&lt;BR /&gt; geometry: point,&lt;BR /&gt; symbol: markerSymbol&lt;BR /&gt; });&lt;BR /&gt; &lt;BR /&gt; graphicsLayer.add(pointGraphic);&lt;BR /&gt; &lt;BR /&gt; });&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2019 17:21:03 GMT</pubDate>
    <dc:creator>MattEnglish</dc:creator>
    <dc:date>2019-08-22T17:21:03Z</dc:date>
    <item>
      <title>JSAPI externalrenderer causes graphics in graphics layer to not draw in SceneView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-externalrenderer-causes-graphics-in-graphics/m-p/284823#M26262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a SceneView, if I add graphics to a graphics layer&amp;nbsp;AFTER I&amp;nbsp;add an external renderer to the view,&amp;nbsp; the graphics do not draw. If I add them BEFORE adding the external renderer to the view, they do draw, To reproduce, go to this sandbox:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=scene-external-renderer-threejs"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=scene-external-renderer-threejs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy and paste this codeblock before line 87 - this works, you'll see a graphic over London, England. If you then put this code block after adding the external renderer, you will not see the graphic. This behaviour, we've noticed since 4.6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our desire is to add graphics after an external renderer has been added&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;require(["esri/layers/GraphicsLayer","esri/Graphic"], function(GraphicsLayer, Graphic) {&lt;BR /&gt; &lt;BR /&gt; var graphicsLayer = new GraphicsLayer();&lt;BR /&gt; map.add(graphicsLayer);&lt;BR /&gt; &lt;BR /&gt; // London&lt;BR /&gt; var point = {&lt;BR /&gt; type: "point", // autocasts as new Point()&lt;BR /&gt; x: -0.178,&lt;BR /&gt; y: 51.48791,&lt;BR /&gt; z: 1010&lt;BR /&gt; };&lt;BR /&gt; &lt;BR /&gt; markerSymbol = {&lt;BR /&gt; type: "simple-marker", // autocasts as new SimpleMarkerSymbol()&lt;BR /&gt; color: [226, 119, 40],&lt;BR /&gt; outline: {&lt;BR /&gt; // autocasts as new SimpleLineSymbol()&lt;BR /&gt; color: [255, 255, 255],&lt;BR /&gt; width: 2&lt;BR /&gt; }&lt;BR /&gt; };&lt;BR /&gt; &lt;BR /&gt; var pointGraphic = new Graphic({&lt;BR /&gt; geometry: point,&lt;BR /&gt; symbol: markerSymbol&lt;BR /&gt; });&lt;BR /&gt; &lt;BR /&gt; graphicsLayer.add(pointGraphic);&lt;BR /&gt; &lt;BR /&gt; });&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2019 17:21:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-externalrenderer-causes-graphics-in-graphics/m-p/284823#M26262</guid>
      <dc:creator>MattEnglish</dc:creator>
      <dc:date>2019-08-22T17:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: JSAPI externalrenderer causes graphics in graphics layer to not draw in SceneView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-externalrenderer-causes-graphics-in-graphics/m-p/284824#M26263</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/74276"&gt;Matt English&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot repro the problem, following your suggested steps I add the code snippet to the sample in line 453 and the point graphic shows correctly over London. Could you provide another repro case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:58:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-externalrenderer-causes-graphics-in-graphics/m-p/284824#M26263</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-08-30T15:58:52Z</dc:date>
    </item>
  </channel>
</rss>

