var layerDetails:LayerDetails = new LayerDetails(); featureLayer.featureCollection = new FeatureCollection(featureSet, layerDetails);
Leonardo, Strange I run from my Flash Builder IDE all the time. Do you have your Flex Build Path in your project pointing to an"Output folder URL"?
Leonardo, Can you try pointing your main config.xml to this instead of your?<geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" />
<geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" />
Leonardo, Are you using ArcGIS Viewer for Flex 3.0 and Adobe Flex SDK 4.6?
Leonardo, Can you try and use my live preview site to test your shapefile zip?
Leonardo, You are meaning to say Geometry Service right?... And you have you Flex Viewers main config.xml point to your Geometry Service?
Leonardo, Did you read the readme.txt where it said you need to use an ArcGIS Server 10 Geometry Service.
Leonardo, Here is the linkhttp://www.arcgis.com/home/item.html?id=2e9096c5d5044d39a264df759611686f
Leonardo, The featureCollection needs a LayerDetailsvar layerDetails:LayerDetails = new LayerDetails(); featureLayer.featureCollection = new FeatureCollection(featureSet, layerDetails);I will be coming out with an enhanced Shapefile widget very soon that handles re-projecting the shapefile and adding each shapefile and labels as different layers in the TOC, as well as other features.
Leonardo, That is because the ShapeFile widget adds the shapefiles to a graphics layer and not a normal type that would show in the TOC.Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).Follow these steps as shown in the below graphic:
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.