<?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 Issue with graphics not being visible in multiple graphics layers in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-graphics-not-being-visible-in-multiple/m-p/395915#M36494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pretty solid JavaScript mapping application that I wrote several years ago.&amp;nbsp; It is currently using the 3.3 api.&amp;nbsp; I am moving forward in updating this to 3.16 so that we can get around issues we have been having lately with newer versions of IE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One big problem I am seeing moving to the latest API is how graphics and graphics layers are being handled.&amp;nbsp; I have a few different graphics layers for the different functionality in the application.&amp;nbsp; Adding new graphics to these layers does not produce any errors, but is not displayed.&amp;nbsp; Looking at the objects behind the scenes, the graphics are being added to the correct layers and everything is flagged as visible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying different APIs, this problem appears to start happening at 3.11. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas on what changed that would affect how graphics are displayed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any advice you can provide!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Here is my original app that works correctly at 3.3:&amp;nbsp; &lt;A href="http://kc-web-01.kenoshacounty.org/InteractiveMapping/" title="http://kc-web-01.kenoshacounty.org/InteractiveMapping/"&gt;Kenosha County Interactive Mapping&lt;/A&gt; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jun 2016 19:25:59 GMT</pubDate>
    <dc:creator>JonathanKressin</dc:creator>
    <dc:date>2016-06-02T19:25:59Z</dc:date>
    <item>
      <title>Issue with graphics not being visible in multiple graphics layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-graphics-not-being-visible-in-multiple/m-p/395915#M36494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pretty solid JavaScript mapping application that I wrote several years ago.&amp;nbsp; It is currently using the 3.3 api.&amp;nbsp; I am moving forward in updating this to 3.16 so that we can get around issues we have been having lately with newer versions of IE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One big problem I am seeing moving to the latest API is how graphics and graphics layers are being handled.&amp;nbsp; I have a few different graphics layers for the different functionality in the application.&amp;nbsp; Adding new graphics to these layers does not produce any errors, but is not displayed.&amp;nbsp; Looking at the objects behind the scenes, the graphics are being added to the correct layers and everything is flagged as visible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying different APIs, this problem appears to start happening at 3.11. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas on what changed that would affect how graphics are displayed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any advice you can provide!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Here is my original app that works correctly at 3.3:&amp;nbsp; &lt;A href="http://kc-web-01.kenoshacounty.org/InteractiveMapping/" title="http://kc-web-01.kenoshacounty.org/InteractiveMapping/"&gt;Kenosha County Interactive Mapping&lt;/A&gt; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 19:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-graphics-not-being-visible-in-multiple/m-p/395915#M36494</guid>
      <dc:creator>JonathanKressin</dc:creator>
      <dc:date>2016-06-02T19:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with graphics not being visible in multiple graphics layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-graphics-not-being-visible-in-multiple/m-p/395916#M36495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you going to try to move to AMD? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 22:36:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-graphics-not-being-visible-in-multiple/m-p/395916#M36495</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2016-06-02T22:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with graphics not being visible in multiple graphics layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-graphics-not-being-visible-in-multiple/m-p/395917#M36496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was really hoping I could stick with the legacy method of defining and consuming modules for now, as I have quite a few custom modules in my code.&amp;nbsp; I don't have a lot of development time right now to rewrite the program, but was hoping I could at least get it working enough with the latest API to support the latest browsers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 13:08:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-graphics-not-being-visible-in-multiple/m-p/395917#M36496</guid>
      <dc:creator>JonathanKressin</dc:creator>
      <dc:date>2016-06-03T13:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with graphics not being visible in multiple graphics layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-graphics-not-being-visible-in-multiple/m-p/395918#M36497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; It's a timing issue. You need to be sure the nap is loaded before trying to add a GraphicsLayer to it:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dojo.connect(kctools.map, "onLoad", function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Setup Graphics Functionality
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grtool = new kcgis.Graphics(kctools.map, clearTools, kctools.srStateP);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grtool.showDrawOptions("divDrawOptions");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grtool.initializeButton("btnDrawPoint", "point");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grtool.initializeButton("btnDrawLine", "line");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grtool.initializeButton("btnDrawFreehandLine", "linefree");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grtool.initializeButton("btnDrawShape", "polygon");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grtool.initializeButton("btnDrawFreehand", "polyfree");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //grtool.initializeButton("btnInsertImage", "image");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grtool.initializeButton("btnInsertText", "text");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grtool.initializeButton("btnEraseGraphic", "erase");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grtool.initializeButton("btnClearGraphics", "clearall");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layerlist.func_image_change = kctools.set_image_base;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layerlist.initialize(dojo.byId("paneLayers"), kctools.map, master_layer_list, image_layers, kctools.feature_layerlist, kctools.imagebase, "layerlist");


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(kctools.map, "onUpdateEnd", function () { layerlist.onMapUpdate(); });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(kctools.map, "onUpdateEnd", function () { updateScale(kctools.map.getScale()); });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //dojo.connect(dojo.byId("chkOrthoToggle"), "onchange", toggleImagery);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; changeImagery("rdoImage2015");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kctools.map.setScale(12000 * 12);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //kctools.map.graphics.disableMouseEvents();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:07:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-graphics-not-being-visible-in-multiple/m-p/395918#M36497</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T18:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with graphics not being visible in multiple graphics layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-graphics-not-being-visible-in-multiple/m-p/395919#M36498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did the trick!&amp;nbsp; Thank you for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 16:01:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-graphics-not-being-visible-in-multiple/m-p/395919#M36498</guid>
      <dc:creator>JonathanKressin</dc:creator>
      <dc:date>2016-06-13T16:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with graphics not being visible in multiple graphics layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-graphics-not-being-visible-in-multiple/m-p/395920#M36499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Jonathan,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp; Be sure to close this thread out by marking it as answered. To do that click on the "Correct Answer" link on the reply that answered your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 16:13:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-graphics-not-being-visible-in-multiple/m-p/395920#M36499</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-06-13T16:13:40Z</dc:date>
    </item>
  </channel>
</rss>

