Hi,
I have a problem when I want create a FeatureLayer. Firebug show me this error :
esri.layers.FeatureLayer is not a constructor
outFields: ["ID_SVG", "Communaute", "ID_Groupe", "ID_REGION", carte.varia]
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.
This is my code to create the FeatureLayer :
comLayer = new esri.layers.FeatureLayer(urlCom,{
mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,
outFields: ["ID_SVG", "Communaute", "ID_Groupe", "ID_REGION", carte.varia]
});
Thanks for your help.
Benoît