Hi,thanks for the code,I've quickly converted to the SFV 2.0 Beta 2, if anyone wants it.I've included the compiled version and source code.DISCLAIMER: A quick modify of the existing widget to bring it up to flex 2.0, code by others ....p.s. it would be interesting to extend this to have the same graphics colors etc control as the advanced graphic widget in sfv 1.3 (we have one for SFV 2.0 - using flex 2.0 api) and have the ability to push the graphic (which is now geometry) into a feature layer as a new edit feature ... 🙂 Anyone thinking of doing that?CheersCoomsie
YiJia LAI, That is a common error with this forum and zip files when you use IE to download. Try downloading the zip from Firefox or chrome and it will be fine.
Hi,it need the file to be a zip one currently,i.e.a normal zip file with all the normal gis file within it.+ *.dbf+ *.shp+ *.shxyou could change the code to look for the files unzipped.
That's great! I have issue with opening the file. It says 'it's not a valid zip file'. Any one has the same issue at all or I missed something? Thanks.
Mr. Gonzalez,I've tested your PLP version of the ShpOverlay and it works great for polygon shps in both WGS84 and Web Mercator flex applications. (SFV 1.0)
I did come across a point location error in a WGS84 the application. (It works fine for my Web Mercator app.) Have you tested the correctness of the point locations for a point shapefile input? (I did not test a line shapefile.) The points are all pulled towards the center of the map 0, 0 anywhere from 20 - 70 miles. Please let me know what you come up with.
Have you tested the correctness of the point locations for a point shapefile input? (I did not test a line shapefile.) The points are all pulled towards the center of the map 0, 0 anywhere from 20 - 70 miles.
Attached is a modified version of the shapefile overlay widget that allows you to modify the symbology, displays the first attribute and supports points, lines and polygons. You will need to have the original shapefile widget installed and update with the attached files. Let me know if this works for you. If it does, I can post it to the code gallery.DISCLAIMER: An intern in my group modified the widget, so I didn't write the code.
1) If it's between geographic and web mercator, use the WebMercatorUtil class http://help.arcgis.com/en/webapi/flex/apiref/index.html?com/esri/ags/utils/WebMercatorUtil.html&com/esri/ags/utils/class-list.html to project the geometries. This is all done client-side.
Do you know of a way to convert this �??on-the-fly�?�?
Works great! Thank you so much. I got about 12 "3596: Duplicate variable definition" warnings in FB3, but I can live with that.
Have you done much re-projection work in Flex? Robert Scheitlin helped me out a bunch with this before he moved on to his work w/ SFV 2.0. I use Bing base maps in the Web Mercator Aux Sphere (102100) projection for my Flex project. Every time my users want to use this tool, they need to convert their shapefile from WGS 1984 Geographic (4326) à (102100) in ArcMap first. Do you know of a way to convert this �??on-the-fly�?�?Note: The input shapefiles are always in (4326), so the conversion would always be the same.
Have you been sucessful in getting the shapefile overlay to label based on attribute?
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.