<?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: esri.layers.FeatureLayer is not a constructor in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-layers-featurelayer-is-not-a-constructor/m-p/529521#M49416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Benoit,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was getting the same error "esri.layers.FeatureLayer is not a constructor" and it was because esri.layers.FeatureLayer did not exist (the API was not loaded) when I was calling it. Instead of using dojo.addOnLoad I was using Ext.onReady (another JS API). I had to use dojo.addOnLoad to make sure that when I call esri.layers.FeatureLayer it is actually loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Rodolfo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Sep 2010 21:57:56 GMT</pubDate>
    <dc:creator>RodolfoOrtiz</dc:creator>
    <dc:date>2010-09-10T21:57:56Z</dc:date>
    <item>
      <title>esri.layers.FeatureLayer is not a constructor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-layers-featurelayer-is-not-a-constructor/m-p/529519#M49414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem when I want create a FeatureLayer. Firebug show me this error : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.layers.FeatureLayer is not a constructor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields: ["ID_SVG", "Communaute", "ID_Groupe", "ID_REGION", carte.varia] &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't understand why, because esri.layers.FeatureLayer IS a constructor. And half the time, it's work, no error and my layer is displayed correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my code to create the FeatureLayer : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; comLayer = new esri.layers.FeatureLayer(urlCom,{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; outFields: ["ID_SVG", "Communaute",&amp;nbsp; "ID_Groupe", "ID_REGION", carte.varia]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Benoît&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 14:42:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-layers-featurelayer-is-not-a-constructor/m-p/529519#M49414</guid>
      <dc:creator>BenoitFrébault</dc:creator>
      <dc:date>2010-08-12T14:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: esri.layers.FeatureLayer is not a constructor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-layers-featurelayer-is-not-a-constructor/m-p/529520#M49415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I come back with this problem because it's very annoying.I don't understand this error and I don't know where the problem can be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My application doesn't work with IE, Chrome and Safari but it's works half the time with Firefox and Opera..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My server is IIS7.5 and the version of ArcGis Server is 9.3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The version of my ArcGis Api for JS is 2.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the beginning of my script., I call &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;dojo.require("esri.layers.FeatureLayer");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My variable urlCom is defined in a switch case, but it looks all the time like this. Only comJoin change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;var urlCom = "http://arcgisserveur/ArcGIS/rest/services/comJoin/MapServer/0";&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an other problem may be it's linked. My zoom slider is not the classical, it's a grey square on&amp;nbsp; a red bar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My web application is almost finish and I don't want to say to my future users that only&amp;nbsp; works with Firefox or Opera and you must refresh the page if the map doesn't show.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if someone have an idea about the problem, please don't hesitate to tell me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2010 14:41:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-layers-featurelayer-is-not-a-constructor/m-p/529520#M49415</guid>
      <dc:creator>BenoitFrébault</dc:creator>
      <dc:date>2010-08-24T14:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: esri.layers.FeatureLayer is not a constructor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-layers-featurelayer-is-not-a-constructor/m-p/529521#M49416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Benoit,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was getting the same error "esri.layers.FeatureLayer is not a constructor" and it was because esri.layers.FeatureLayer did not exist (the API was not loaded) when I was calling it. Instead of using dojo.addOnLoad I was using Ext.onReady (another JS API). I had to use dojo.addOnLoad to make sure that when I call esri.layers.FeatureLayer it is actually loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Rodolfo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 21:57:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-layers-featurelayer-is-not-a-constructor/m-p/529521#M49416</guid>
      <dc:creator>RodolfoOrtiz</dc:creator>
      <dc:date>2010-09-10T21:57:56Z</dc:date>
    </item>
  </channel>
</rss>

