how to load shapefiles to flex viewer? Thx
Thank you! I am not sure where to place files, I placed them in widget folder, but it is not displaying in viewer.
Here is a widget for loading shapefiles:
http://www.arcgis.com/home/item.html?id=2e9096c5d5044d39a264df759611686f
Ramon,
Read the readme.txt file for info on how the widget works.
I added compiled version to shapefile and modified the config.xml and I receive the following error.
the compiled version resides in C:\Program Files (x86)\ArcGIS Viewer for Flex\flexviewer\widgets
config.xml resides in C:\Program Files (x86)\ArcGIS Viewer for Flex\flexviewer
Thank you for your help! : )
<?xml version="1.0"?><!--//////////////////////////////////////////////////////////////////////////////// Read more about ArcGIS Viewer for Flex - http://links.esri.com/flexviewer//////////////////////////////////////////////////////////////////////////////--><configuration><title>ArcGIS Viewer for Flex</title><logo>assets/images/logo.png</logo><style><colors>0xFFFFFF,0x333333,0x101010,0x000000,0xFFD700</colors><alpha>0.8</alpha></style><!-- replace the following url with your own geometryservice --><geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"/>
<widgetleft="10" top="50"config="widgets/Navigation/NavigationWidget.xml"url="widgets/Navigation/NavigationWidget.swf"/><widgetright="0" bottom="0"config="widgets/OverviewMap/OverviewMapWidget.xml"url="widgets/OverviewMap/OverviewMapWidget.swf"/><widgetright="20" top="55"config="widgets/MapSwitcher/MapSwitcherWidget.xml"url="widgets/MapSwitcher/MapSwitcherWidget.swf"/><widgetleft="0" top="0"config="widgets/HeaderController/HeaderControllerWidget.xml"url="widgets/HeaderController/HeaderControllerWidget.swf"/><widgetlabel="Load Shape Files" x="400" y="60"icon="widgets/ShapeFiles/assets/images/shapefiles.png"config="widgets/ShapeFiles/ShapeFilesWidget.xml"url="widgets/ShapeFiles/ShapeFilesWidget.swf"/><maptop="40"wraparound180="true"addarcgisbasemaps="true"/>
<widgetcontainer layout="float"><widgeticon="assets/images/i_draw2.png"label="Draw"config="widgets/Draw/DrawWidget.xml"url="widgets/Draw/DrawWidget.swf"/><widgeticon="assets/images/i_print.png"label="Print"config="widgets/Print/PrintWidget.xml"url="widgets/Print/PrintWidget.swf"/></widgetcontainer>
</configuration>
Did you follow the instructions for add a custom widget from the help?
ArcGIS Viewer for Flex | Manage Custom Widgets
Make sure you use the zip file in the For_AppBuilder3.7 folder and that you are using App Builder version 3.7 too.
Thanks for your help! Robert I was able to upload zip file through manage custom widgets. So I guess there was no reason to modify config file ?
Although I find it takes forever to load a 78mb shapefile.
So I guess there was no reason to modify config file ?
No
To be expected. This is not desktop where you have access to your full memory.
Don't forget to mark this thread as answered by click the "Correct answer" link on the reply that answered your question.
I have tried to run to upload shapefile for hours and it will not load. File is huge, 78mb. is this too big to handle?
I closed error and it attempted to load, but it just display msg loading shapefile .
That size file is pushing the limits on what the browser plugin is capable of handling.
In arcmap using GCS_WGS_1984 so I shouldn't change Geometry correct?
Thank you for your quick response on all my questions. Robert!
error: service does not exist or is accessible
https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer
Is your app running on the https protocol? Most of the time I recommend that people don't use the esri public geometry service if they have access to their own ArcGIS server. Change it to your ArcGIS Servers geometry service url.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.