<?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: TypeError: this.spatialReference is undefined in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typeerror-this-spatialreference-is-undefined/m-p/93311#M8483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also "Unexpected value NaN parsing x attribute." Are these errors related. Is there a problem in the service(s) itself or the code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 May 2014 16:49:23 GMT</pubDate>
    <dc:creator>MatthewBorr</dc:creator>
    <dc:date>2014-05-28T16:49:23Z</dc:date>
    <item>
      <title>TypeError: this.spatialReference is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typeerror-this-spatialreference-is-undefined/m-p/93310#M8482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am calling two services, but getting this error in firebug: "TypeError: this.spatialReference is undefined"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; var it = new InfoTemplate();
&amp;nbsp;&amp;nbsp;&amp;nbsp; it.setTitle("Low Income Housing Information");
&amp;nbsp;&amp;nbsp;&amp;nbsp; it.setContent("&amp;lt;b&amp;gt;Score:&amp;lt;/b&amp;gt;${Score}&amp;lt;br/&amp;gt;" +
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;b&amp;gt;Name: &amp;lt;/b&amp;gt;${Name}&amp;lt;br/&amp;gt;" +
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;Address:&amp;lt;/b&amp;gt; ${Address}&amp;lt;br&amp;gt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp; 
 var a = new FeatureLayer("http://gis-server.cc.wmich.edu/harcgis/rest/services/hdream/house/MapServer/0",
&amp;nbsp; { mode: FeatureLayer.MODE_SNAPSHOT,
 infoTemplate: it,
 } );
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 var b = new FeatureLayer("http://gis-server.cc.wmich.edu/harcgis/rest/services/hdream/kcountyborder/MapServer/1" );
 
&amp;nbsp; 
&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(a)
&amp;nbsp;&amp;nbsp; map.addLayer(b)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Puzzled as to what this error is, and how to fix it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 16:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typeerror-this-spatialreference-is-undefined/m-p/93310#M8482</guid>
      <dc:creator>MatthewBorr</dc:creator>
      <dc:date>2014-05-28T16:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: this.spatialReference is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typeerror-this-spatialreference-is-undefined/m-p/93311#M8483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also "Unexpected value NaN parsing x attribute." Are these errors related. Is there a problem in the service(s) itself or the code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 16:49:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typeerror-this-spatialreference-is-undefined/m-p/93311#M8483</guid>
      <dc:creator>MatthewBorr</dc:creator>
      <dc:date>2014-05-28T16:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: this.spatialReference is undefined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typeerror-this-spatialreference-is-undefined/m-p/93312#M8484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have seen this error too.&amp;nbsp; Frequently is was from trying to use a map right away, instead of waiting for the onload event to fire&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 16:57:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typeerror-this-spatialreference-is-undefined/m-p/93312#M8484</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-05-28T16:57:03Z</dc:date>
    </item>
  </channel>
</rss>

