<?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: Why my graphics are not added to the map? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600121#M56116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure. Zip up you app and post it or send it via a private message and I'll take a look.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2012 19:55:56 GMT</pubDate>
    <dc:creator>BenFousek</dc:creator>
    <dc:date>2012-12-05T19:55:56Z</dc:date>
    <item>
      <title>Why my graphics are not added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600110#M56105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm following this example (but programmatically) &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/find_map_datagrid.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/find_map_datagrid.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I don't know why my graphic are not showing up...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank's for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
//display the location results on the map 
function showResultsLocator(results) 
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; map = getMap();
&amp;nbsp;&amp;nbsp;&amp;nbsp; //find results return an array of findResult.
&amp;nbsp;&amp;nbsp;&amp;nbsp; console.dir(map); // my map object is fully working here
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.clear();
&amp;nbsp;&amp;nbsp;&amp;nbsp; var dataForGrid = [];
&amp;nbsp;&amp;nbsp;&amp;nbsp; //Build an array of attribute information and add each found graphic to the map
&amp;nbsp;&amp;nbsp;&amp;nbsp; var cpt = 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp; //console.log(results);
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.forEach(results, function(result) 
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpt++;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = result.feature;
&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; //console.log(graphic.attributes.NAD83+","+ graphic.attributes.CIVIQUE+","+ graphic.attributes.VOIE);
&amp;nbsp; dataForGrid.push([result.layerName,graphic.attributes.NAD83, graphic.attributes.CIVIQUE, graphic.attributes.VOIE]);
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255,0,0]), 2), new dojo.Color([255,255,0,0.5]));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.setSymbol(symbol);
&amp;nbsp; map.graphics.add(graphic);&amp;nbsp; // the graphics are not added to the map. Why?
 });
 //console.log(dataForGrid);
 generateTableSearch(dataForGrid);
 //console.log("cpt search = "+cpt);
 $('#nb_res_search').empty();
 $('#nb_res_search').text('Nb. résultat(s): '+cpt);
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:44:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600110#M56105</guid>
      <dc:creator>YvanBérard</dc:creator>
      <dc:date>2021-12-12T01:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why my graphics are not added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600111#M56106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think its how you are creating the graphic using &lt;/SPAN&gt;&lt;STRONG&gt;var graphic = result.feature;&lt;/STRONG&gt;&lt;SPAN&gt;. That doesn't create a esri.Graphic object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the execute of an identify task. &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;t.execute(p, function (results) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (results[0] != undefined) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var r = results[0].feature;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var atts = r.attributes;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var sym = app.sym.SimpleFillSymbol('solid', new esri.symbol.SimpleLineSymbol('solid', new dojo.Color([255, 0, 0]), 2), new dojo.Color([255, 255, 0, 0.2]));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var it = new esri.InfoTemplate('My Info Title', 'My Info Content')
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = new esri.Graphic(r.geometry, sym, atts, it);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map._layers.MY_GRAPHICS_LAYER.add(graphic);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
})&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:44:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600111#M56106</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2021-12-12T01:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why my graphics are not added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600112#M56107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, my feature object is all right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i use FireBug to inspect the object, I have all what a graphic object should have...but nothing happen.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 16:15:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600112#M56107</guid>
      <dc:creator>YvanBérard</dc:creator>
      <dc:date>2012-12-05T16:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why my graphics are not added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600113#M56108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I agree, I don't think result.feature is a graphic either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you show what result is?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 16:31:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600113#M56108</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-12-05T16:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why my graphics are not added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600114#M56109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here some proof taht they are both graphic object...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I use my identification tool (queryTask) the feature object return (using console.dir(result.feature)) :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]19722[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And when I use my search tool (where my graphics are not added to the map) the feature object return (using console.dir(result.feature));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]19723[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 16:57:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600114#M56109</guid>
      <dc:creator>YvanBérard</dc:creator>
      <dc:date>2012-12-05T16:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why my graphics are not added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600115#M56110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I ran a test and was surprised to find you can create a graphic object that way. The problem I encountered with your method was setting the symbol. Sometimes it didn't take. The graphic was in the map but had no style. It I would create a esri.Graphic as best practice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, create your own graphics layer. I had trouble in the past with map.graphics and quit using it some time ago.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What does the graphic object look like in the DOM @ map.graphics; is it even present?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 17:44:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600115#M56110</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2012-12-05T17:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why my graphics are not added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600116#M56111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;What does the graphic object look like in the DOM @ map.graphics; is it even present?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, at the beginning I though it was the map object the problem, so then I a create setter/getter functions, but in the DOM @ map.graphics the object was present even without the setter/getter functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Also, create your own graphics layer. I had trouble in the past with map.graphics and quit using it some time ago.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do you do that? And what trouble did you have?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 17:52:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600116#M56111</guid>
      <dc:creator>YvanBérard</dc:creator>
      <dc:date>2012-12-05T17:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why my graphics are not added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600117#M56112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Graphics layer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var plotGraphics = new esri.layers.GraphicsLayer({ id: 'plot_gl' });
app.map.addLayer(plotGraphics);&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Notice that I set the id of the layer. You should always set the id of all layers: dynamic, tiled, feature, graphic, etc. It's a lot easier to find a layer when you named it yourself. All layers are located in the map._layers object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem with map.graphics is that it isn't a true graphics layer per se. It's built into the map and is always the top most layer. So reordering is a problem. Like I said, I haven't used map.graphics in a while, but I recall having some issues with my apps being unstable, slow or crashing when I used map.graphics. That was pre v2, so it's probably fixed by now. Most of my apps have 6-10 graphics layers and up to 20 or so feature layers. Being able to reorder and have better control over graphics layers is a must in that situation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:44:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600117#M56112</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2021-12-12T01:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why my graphics are not added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600118#M56113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe I don't understand.... but what I want to do, is to create a graphic from the result of my findTask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So why should I create a new graphic layer? And if I really need to use a new graphic layer (new esri.layers.GraphicsLayer) , how could I pass the result of my findTask to the new graphic layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 18:25:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600118#M56113</guid>
      <dc:creator>YvanBérard</dc:creator>
      <dc:date>2012-12-05T18:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why my graphics are not added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600119#M56114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After you initialize the map add your graphics layer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var myGraphicsLayer = new esri.layers.GraphicsLayer({ id: 'my_graphics_layer' });
map.addLayer(myGraphicsLayer);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Add features:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function addResultsToMap(results) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.forEach(results, function(result) {
&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 sym = esri.symbol.SimpleFillSymbol('solid', new esri.symbol.SimpleLineSymbol('solid', new dojo.Color([255, 0, 0]), 2), new dojo.Color([255, 255, 0, 0.2]));
&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 graphic = new esri.Graphic(result.feature.geometry, sym); //create graphic with geometry (result.feature.geometry) and symbol (sym)
&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; map._layers.my_graphics_layer.add(graphic); //add graphic to graphics layer created above
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //OR
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //map.graphics.add(graphic); //add to map.graphics
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
}&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't add attributes or an info template to the graphic object; both are optional.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:44:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600119#M56114</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2021-12-12T01:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why my graphics are not added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600120#M56115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Even this doesn't work....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can see in my DOM object that my created layer( var mySearchLayer = new esri.layers.GraphicsLayer({ id: 'search_result' }); ) have all of my search result and their geometry, but they are still not showing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's wrong with that????&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 19:51:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600120#M56115</guid>
      <dc:creator>YvanBérard</dc:creator>
      <dc:date>2012-12-05T19:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why my graphics are not added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600121#M56116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure. Zip up you app and post it or send it via a private message and I'll take a look.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 19:55:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600121#M56116</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2012-12-05T19:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why my graphics are not added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600122#M56117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm not sure. Zip up you app and post it or send it via a private message and I'll take a look.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After digging up my problem with Mr. Fousek (btfou), he found that my graphic are added to the map but with a totally wrong extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my original extent: &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var initialExtent = new esri.geometry.Extent({ 'xmin': -8034661, 'ymin': 5652797, 'xmax': -8004182, 'ymax': 5670187, 'spatialReference': new esri.SpatialReference({ wkid: 102100 }) });&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, when the event add(graphic) is fired, the graphic are added in the middle of the mediterannean sea (?!?!?!???). How could this happen? I've never seen that bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var graphic = new esri.Graphic(result.feature.geometry, sym); //create graphic with geometry (result.feature.geometry) and symbol (sym)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.dir(map);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map._layers.search_result.add(graphic); //add graphic to graphics layer created above&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:44:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-my-graphics-are-not-added-to-the-map/m-p/600122#M56117</guid>
      <dc:creator>YvanBérard</dc:creator>
      <dc:date>2021-12-12T01:44:47Z</dc:date>
    </item>
  </channel>
</rss>

