Do you know of a way to convert this �??on-the-fly�?�?
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/... to project the geometries. This is all done client-side.
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.
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.
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.
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.
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?
Cheers
Coomsie
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)
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.