<?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: GraphicsLayer / require ordering in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261966#M24278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think &lt;A href="https://community.esri.com/migrated-users/2122"&gt;Adrian Welsh&lt;/A&gt;​ is right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14598783936987289" data-renderedposition="112_8_1332_16" jivemacro_uid="_14598783936987289"&gt;&lt;P&gt;&lt;SPAN style="font-weight: bold; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000080;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;(Map, GraphicsLayer, Graphic, Point, &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d; background-color: #e4e4ff;"&gt;SimpleMarkerSymbol&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1459878399998227" data-renderedposition="206_8_1332_16" jivemacro_uid="_1459878399998227"&gt;&lt;P&gt;&lt;SPAN style="font-weight: bold; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000080;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;(Map, Graphic, GraphicsLayer, Point, &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d; background-color: #e4e4ff;"&gt;SimpleMarkerSymbol&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2016 17:46:49 GMT</pubDate>
    <dc:creator>SteveCole</dc:creator>
    <dc:date>2016-04-05T17:46:49Z</dc:date>
    <item>
      <title>GraphicsLayer / require ordering</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261962#M24274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a simple map that shows a point at a fixed lat/lon.&amp;nbsp; The script below, by all accounts of the documentation I've read, should work...However, I get a GraphicsLayer() is not a constructor error.&amp;nbsp; Is this due to the ordering of the require/function includes?&amp;nbsp; If so, how can I determine the proper order, once I add additional libraries? The code as is, loads a map without error, but as soon as I uncomment the highlighted line, it throws the error.&amp;nbsp; Any assistance would be **greatly** appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Glenn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;html &lt;/SPAN&gt;lang=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"en"&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;head&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;meta &lt;/SPAN&gt;charset=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"utf-8"&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;meta &lt;/SPAN&gt;name=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"viewport" &lt;/SPAN&gt;content=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"initial-scale=1,maximum-scale=1,user-scalable=no"&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;title&lt;/SPAN&gt;&amp;gt;Point Demo&amp;lt;/&lt;SPAN style="color: #000080; font-weight: bold;"&gt;title&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;link &lt;/SPAN&gt;rel=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"stylesheet" &lt;/SPAN&gt;href=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.16%2Fesri%2Fcss%2Fesri.css" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.16/esri/css/esri.css&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;script &lt;/SPAN&gt;src=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.16%2F" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.16/&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;&amp;lt;/&lt;SPAN style="color: #000080; font-weight: bold;"&gt;script&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;style&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;html&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;body &lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; padding: &lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; margin: &lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/&lt;SPAN style="color: #000080; font-weight: bold;"&gt;style&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;script&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; require([&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"esri/map"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"dojo/domReady!"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"esri/graphic"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"esri/layers/GraphicsLayer"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"esri/geometry/Point"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"esri/symbols/SimpleMarkerSymbol"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;], &lt;SPAN style="color: #000080; font-weight: bold;"&gt;function&lt;/SPAN&gt;(Map, GraphicsLayer, Graphic, Point, &lt;SPAN style="background-color: #e4e4ff;"&gt;SimpleMarkerSymbol&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #458383;"&gt;map &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Map(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"myMapDiv"&lt;/SPAN&gt;, {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;center&lt;/SPAN&gt;: [-&lt;SPAN style="color: #0000ff;"&gt;0.178&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;51.48791&lt;/SPAN&gt;],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;zoom&lt;/SPAN&gt;: &lt;SPAN style="color: #0000ff;"&gt;8&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;basemap&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"topo"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080; font-style: italic;"&gt;/*********************&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; * Add graphics layer&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; *********************/&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// UNCOMMENT BELOW TO GET ERROR...&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// var graphicsLayer = new GraphicsLayer({displayOnPan: true});&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// map.add(graphicsLayer);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;//&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// /*************************&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// * Add a 2D point graphic&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// *************************/&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;//&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// // London&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// var point = new Point({&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// x: -0.178,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// y: 51.48791&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// }),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;//&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// markerSymbol = new SimpleMarkerSymbol({&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// color: [226, 119, 40],&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;//&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// outline: new SimpleLineSymbol({&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// color: [255, 255, 255],&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// width: 2&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// })&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// });&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;//&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// var pointGraphic = new Graphic({&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// geometry: point,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// symbol: markerSymbol&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// });&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;//&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;// graphicsLayer.add(pointGraphic);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/&lt;SPAN style="color: #000080; font-weight: bold;"&gt;script&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/&lt;SPAN style="color: #000080; font-weight: bold;"&gt;head&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;body&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;div &lt;/SPAN&gt;id=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"myMapDiv"&lt;/SPAN&gt;&amp;gt;&amp;lt;/&lt;SPAN style="color: #000080; font-weight: bold;"&gt;div&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/&lt;SPAN style="color: #000080; font-weight: bold;"&gt;body&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/&lt;SPAN style="color: #000080; font-weight: bold;"&gt;html&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 17:08:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261962#M24274</guid>
      <dc:creator>GlennWilson1</dc:creator>
      <dc:date>2016-04-05T17:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer / require ordering</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261963#M24275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glenn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if this makes a difference or not, but does it help to name your graphics layer variable a different name (just something like 'glayer' to make sure it is different)? Have you tried toying around in the Sandbox: &lt;A href="http://developers.arcgis.com/javascript/sandbox/sandbox.html" title="http://developers.arcgis.com/javascript/sandbox/sandbox.html"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might help others here to see your code blocked out. To do this, Use advanced editor in your forum post, click on the double arrows, click on syntax, and then Javascript (or html). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 17:34:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261963#M24275</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-04-05T17:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer / require ordering</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261964#M24276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also, take a look at this sample code for graphics layers:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/graphics_create_circles.html" title="https://developers.arcgis.com/javascript/jssamples/graphics_create_circles.html"&gt;Create circles | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had another thought... I'm not a javascript programmer, but have you tried re-ordering your functions around just to see if it would work or not (like putting "graphics" in front of "graphicslayer")? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 17:37:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261964#M24276</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-04-05T17:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer / require ordering</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261965#M24277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have a basic problem of the arguments in the function not agreeing with the modules in the require. It would have to be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;require([&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"esri/map",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"esri/graphic"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"esri/layers/GraphicsLayer"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"esri/geometry/Point"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"esri/symbols/SimpleMarkerSymbol",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"dojo/domReady!"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;], &lt;SPAN style="color: #000080; font-weight: bold;"&gt;function&lt;/SPAN&gt;(Map, Graphic, GraphicsLayer, Point, &lt;SPAN style="background-color: #e4e4ff;"&gt;SimpleMarkerSymbol&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend you read this blog: &lt;A href="https://blogs.esri.com/esri/arcgis/2013/10/14/the-abcs-of-amd/" title="https://blogs.esri.com/esri/arcgis/2013/10/14/the-abcs-of-amd/"&gt;The abc’s of AMD | ArcGIS Blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's common practice to have the "domReady" module as the last one listed. This is from the &lt;A href="https://dojotoolkit.org/documentation/tutorials/1.10/modern_dojo/index.html"&gt;Modern Dojo&lt;/A&gt; page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;The sharped eyed among you will notice that there is a "module" in the requirement array that doesn't have a return variable, called &lt;CODE&gt;dojo/domReady!&lt;/CODE&gt;. This is actually a loader "plugin" that is used to control the behaviour of the loader. This one ensures that the loader waits until the DOM structure for the page is ready. In an async world, it isn't a bright idea to assume that your DOM structure is there if you want to manipulate it, so if you are going to be doing something with the DOM in your code, make sure you include this plugin. Since we don't use the plugin in the code, it is the standard convention to put it at the end of the array and not provide a return variable for it.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 17:46:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261965#M24277</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2016-04-05T17:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer / require ordering</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261966#M24278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think &lt;A href="https://community.esri.com/migrated-users/2122"&gt;Adrian Welsh&lt;/A&gt;​ is right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14598783936987289" data-renderedposition="112_8_1332_16" jivemacro_uid="_14598783936987289"&gt;&lt;P&gt;&lt;SPAN style="font-weight: bold; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000080;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;(Map, GraphicsLayer, Graphic, Point, &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d; background-color: #e4e4ff;"&gt;SimpleMarkerSymbol&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1459878399998227" data-renderedposition="206_8_1332_16" jivemacro_uid="_1459878399998227"&gt;&lt;P&gt;&lt;SPAN style="font-weight: bold; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000080;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;(Map, Graphic, GraphicsLayer, Point, &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d; background-color: #e4e4ff;"&gt;SimpleMarkerSymbol&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 17:46:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261966#M24278</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2016-04-05T17:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer / require ordering</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261967#M24279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and here is your code corrected and working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;

&amp;lt;head&amp;gt;
&amp;nbsp; &amp;lt;meta charset="utf-8"&amp;gt;
&amp;nbsp; &amp;lt;meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"&amp;gt;
&amp;nbsp; &amp;lt;title&amp;gt;Point Demo&amp;lt;/title&amp;gt;

&lt;SPAN&gt;&amp;nbsp; &amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.16%2Fesri%2Fcss%2Fesri.css" target="_blank"&gt;https://js.arcgis.com/3.16/esri/css/esri.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp; &amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.16%2F" target="_blank"&gt;https://js.arcgis.com/3.16/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;

&amp;nbsp; &amp;lt;style&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; html,
&amp;nbsp;&amp;nbsp;&amp;nbsp; body {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; padding: 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; margin: 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; &amp;lt;/style&amp;gt;
&amp;nbsp; &amp;lt;script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; require([
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/map",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/graphic",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/layers/GraphicsLayer",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/geometry/Point",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/symbols/SimpleMarkerSymbol",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/domReady!"
&amp;nbsp;&amp;nbsp;&amp;nbsp; ], function(Map, Graphic, GraphicsLayer, Point, SimpleMarkerSymbol) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var map = new Map("myMapDiv", {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-0.178, 51.48791],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 8,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: "topo"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*********************
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Add graphics layer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *********************/

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // UNCOMMENT BELOW TO GET ERROR...
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphicsLayer = new GraphicsLayer({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; displayOnPan: true
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(graphicsLayer);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*************************
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Add a 2D point graphic
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *************************/
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // London
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var point = new Point({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "x": -0.178,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "y": 51.48791,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "spatialReference": {"wkid": 4326 }}),

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; markerSymbol = new SimpleMarkerSymbol({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "color": [226, 119, 40],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "size": 12,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "esriSMS",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "style": "esriSMSCircle",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "outline": {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "color": [255, 255, 255],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "width": 2,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "esriSLS",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "style": "esriSLSSolid"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var pointGraphic = new Graphic(point, markerSymbol);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsLayer.add(pointGraphic);

&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp; &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
&amp;nbsp; &amp;lt;div id="myMapDiv"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:50:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261967#M24279</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T12:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer / require ordering</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261968#M24280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had tried reordering them, but I don't think I understood all of the relationships between the require and the variables in the function header.&amp;nbsp; Ken's response was spot on, and Robert's solution actually pointed out several other really bad assumptions in my code.&amp;nbsp; Thank you all for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 18:45:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261968#M24280</guid>
      <dc:creator>GlennWilson1</dc:creator>
      <dc:date>2016-04-05T18:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer / require ordering</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261969#M24281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for the assistance!&amp;nbsp; Your code pointed out several other bad assumptions I had made that I *hope* I would have discovered when I got the includes correct.&amp;nbsp; I'm very grateful for your response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 18:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphicslayer-require-ordering/m-p/261969#M24281</guid>
      <dc:creator>GlennWilson1</dc:creator>
      <dc:date>2016-04-05T18:47:02Z</dc:date>
    </item>
  </channel>
</rss>

