AmrEldib / JsapiTypescriptSamples

ArcGIS Javascript API Samples written in Typescript
http://amreldib.com/JsapiTypescriptSamples/
8 stars 5 forks source link

ags_createwebmapitem Sample not working #115

Open AmrEldib opened 10 years ago

AmrEldib commented 10 years ago

The basemap loads correctly but no other layers are loaded.
I keep getting the error message:
"esri.layers.FeatureLayer: unable to find a field of type 'esriFieldTypeGeometry' in the layer 'fields' information. If you are using a map service layer, features will not have geometry [url: http://server.arcgisonline.com/ArcGIS/rest/services/Specialty/Soil_Survey_Map/MapServer/0]"

AmrEldib commented 10 years ago

After some investigation, I found that the problem is caused by the AGOL resource not available.
The same sample doesn't work on Esri's JSAPI site.

amarinelli commented 10 years ago

I do remember seeing this on the JSAPI site but forgot to make note of it. Thanks for the reminder.

AmrEldib commented 10 years ago

We need to report this bug to the JSAPI team.