I am trying to create a polygon feature layer from a feature collection. I have modified the Flickr sample to use polygon geometries, rather than point geometries. The features are not getting added to the layer properly. I have put together a JSFiddle here that illustrates the problem.
I have commented out line 137 where I add the features to the layer, as this results in the map turning white. While the API doesn't display any errors in the console, I don't get the results on the map either. What am I missing?
Solved! Go to Solution.
Lefteris,
Sure that is what I do in the eSearch.
Yes, but the layerdefinition is esearch is derived from the configuration file. In my case, there is no config file. I'm trying to dynamically develop the layerdefintion from the json similar to the process posted at:
Request layer info | ArcGIS API for JavaScript
but so far I seem to be missing something...
Lefteris,
No ,the layerdefinition is derived from the ArcGIS server layer layer info using a esriRequest based on the URL that is in the configuration file.
oops. I was looking at the getOutputfileds function instead of the _getLayerInfoWithRelationships function.