<?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: Graphics don't display; spatial reference issue in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-don-t-display-spatial-reference-issue/m-p/100179#M9180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Kaitlynn&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having the same problem! Do you mind posting the source code to explain how to use the project method from the geometry service class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2014 22:46:50 GMT</pubDate>
    <dc:creator>JoseSanchez</dc:creator>
    <dc:date>2014-05-14T22:46:50Z</dc:date>
    <item>
      <title>Graphics don't display; spatial reference issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-don-t-display-spatial-reference-issue/m-p/100175#M9176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having trouble adding my query results to my map as graphics. Firebug shows that my query is returning the correct features. The only thing that seems off is that they are being returned with the spatial reference of wkid 102711, whereas my map is in 102011. I don't understand why this is, since I have set the outSpatialReference property to be 102011 (my console.log proves this). Could this mismatch be the problem and if so what can I try to fix this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var queryRecArea = new esri.tasks.RelationshipQuery();
queryRecArea.outFields = ["*"];
queryRecArea.returnGeometry = true;
console.log("spatial reference:", map.spatialReference);
queryRecArea.outSpatialReference = map.spatialReference; 
queryRecArea.relationshipId = 4;
queryRecArea.objectIds = [feature.attributes.OBJECTID];
queryRecArea.where = layerDefs;
documents.queryRelatedFeatures(queryRecArea, function(relatedRecords2) {
&amp;nbsp; console.log("relatedRecords2:", relatedRecords2);
&amp;nbsp; fset = relatedRecords2[fsetObjectIDArrayArea[0]];
&amp;nbsp; console.log("fset:", fset.features);
&amp;nbsp; for(var i=0, il = fset.features.length; i &amp;lt; il; i++){
&amp;nbsp; thirdGraphics = fset.features&lt;I&gt;;
&amp;nbsp; var symbol4 = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255,0,0]), 3), new dojo.Color([125,125,125,0.35]));
&amp;nbsp; thirdGraphics.setSymbol(symbol4);
&amp;nbsp; map.graphics.add(thirdGraphics);
&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; }
});&lt;/I&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 15:14:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-don-t-display-spatial-reference-issue/m-p/100175#M9176</guid>
      <dc:creator>KaitlynnDavis</dc:creator>
      <dc:date>2013-09-26T15:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics don't display; spatial reference issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-don-t-display-spatial-reference-issue/m-p/100176#M9177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, Kait,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you resolve your issue? I had same issue and found that it is related to the query using objectIds property.&amp;nbsp; Whenever a query is sent with objectIds set, the outSpatialReference paramter will be ignored and the geometries are sent back in the layer's original spatial reference.&amp;nbsp; I believe it is a bug in ESRI's API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Harold&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 13:13:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-don-t-display-spatial-reference-issue/m-p/100176#M9177</guid>
      <dc:creator>HaroldYang</dc:creator>
      <dc:date>2014-05-07T13:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics don't display; spatial reference issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-don-t-display-spatial-reference-issue/m-p/100177#M9178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Harold,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was advised by a tech support analyst to use the project method from the geometry service class (&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/geometryservice-amd.html#project"&gt;https://developers.arcgis.com/javascript/jsapi/geometryservice-amd.html#project&lt;/A&gt;&lt;SPAN&gt;). This sucessfully allowed me to reproject my graphics in the desired spatial reference value.&amp;nbsp; I was not aware that the objectIds query parameter was to blame for my issue though. It makes sense though; I've noticed this issue several times since and have just resorted to the projection tool when needed. Thanks for sharing&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 13:24:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-don-t-display-spatial-reference-issue/m-p/100177#M9178</guid>
      <dc:creator>KaitlynnDavis</dc:creator>
      <dc:date>2014-05-07T13:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics don't display; spatial reference issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-don-t-display-spatial-reference-issue/m-p/100178#M9179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, Kait,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the quick reply.&amp;nbsp; I will follow your suggestion to use the geometry service's project method. Though it adds some overhead in terms of performance, this might be the proper workaround about this issue.&amp;nbsp; Thanks very much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Harold&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 15:20:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-don-t-display-spatial-reference-issue/m-p/100178#M9179</guid>
      <dc:creator>HaroldYang</dc:creator>
      <dc:date>2014-05-07T15:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics don't display; spatial reference issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-don-t-display-spatial-reference-issue/m-p/100179#M9180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Kaitlynn&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having the same problem! Do you mind posting the source code to explain how to use the project method from the geometry service class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 22:46:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-don-t-display-spatial-reference-issue/m-p/100179#M9180</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2014-05-14T22:46:50Z</dc:date>
    </item>
  </channel>
</rss>

