flex viewer shapefiles

1745
13
Jump to solution
10-04-2016 12:12 PM
RamonCoello
New Contributor II

how to load shapefiles to flex viewer? Thx

0 Kudos
1 Solution

Accepted Solutions
RamonCoello
New Contributor II

Thank you! I am not sure where to place files, I placed them in widget folder, but it is not displaying in viewer.

View solution in original post

0 Kudos
13 Replies
RobertScheitlin__GISP
MVP Emeritus
RamonCoello
New Contributor II

Thank you! I am not sure where to place files, I placed them in widget folder, but it is not displaying in viewer.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ramon,

   Read the readme.txt file for info on how the widget works.

RamonCoello
New Contributor II

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"/>

<widget
left="10" top="50"
config="widgets/Navigation/NavigationWidget.xml"
url="widgets/Navigation/NavigationWidget.swf"/>
<widget
right="0" bottom="0"
config="widgets/OverviewMap/OverviewMapWidget.xml"
url="widgets/OverviewMap/OverviewMapWidget.swf"/>
<widget
right="20" top="55"
config="widgets/MapSwitcher/MapSwitcherWidget.xml"
url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>
<widget
left="0" top="0"
config="widgets/HeaderController/HeaderControllerWidget.xml"
url="widgets/HeaderController/HeaderControllerWidget.swf"/>
<widget
label="Load Shape Files" x="400" y="60"
icon="widgets/ShapeFiles/assets/images/shapefiles.png"
config="widgets/ShapeFiles/ShapeFilesWidget.xml"
url="widgets/ShapeFiles/ShapeFilesWidget.swf"/>
<map
top="40"
wraparound180="true"
addarcgisbasemaps="true"/>

<widgetcontainer layout="float">
<widget
icon="assets/images/i_draw2.png"
label="Draw"
config="widgets/Draw/DrawWidget.xml"
url="widgets/Draw/DrawWidget.swf"/>
<widget
icon="assets/images/i_print.png"
label="Print"
config="widgets/Print/PrintWidget.xml"
url="widgets/Print/PrintWidget.swf"/>
</widgetcontainer>

</configuration>

RobertScheitlin__GISP
MVP Emeritus

Ramon,

   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.

RamonCoello
New Contributor II

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.

RobertScheitlin__GISP
MVP Emeritus

Ramon,

So I guess there was no reason to modify config file ?

No

Although I find it takes forever to load a 78mb shapefile.

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.

RamonCoello
New Contributor II

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 .

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ramon,


  That size file is pushing the limits on what the browser plugin is capable of handling.

0 Kudos