Select to view content in your preferred language

Shapefiles Widget for ArcGIS Viewer for Flex 3.0

5514
17
12-14-2012 06:46 AM
RobertScheitlin__GISP
MVP Emeritus
All,

   I am pleased to announce the release of my Enhanced Shapefile Widget for ArcGIS Viewer for Flex 3.0

The ShapeFiles Widget version 3.0 for Flex Viewer 3.0 is a widget that allows you to add shapefiles to the
viewer from the client machine if they are zipped. Shapefiles are made up of multiple file (i.e. xyz.shp, xyz.dbf, xyz.shx,
xyz.prj, etc). The fact that a shapefile is made up of these multiple files is the reason that they need to be zipped. Flash
Player allows the client to upload one file at a time. The minimum files necessary in the zipped file are the .shp and .dbf,
it is also advisable to include the .prj file as well. This widget takes the initial work of Abdul Mannan Mohammed, the
mods of Wesley Chow and Iain Campion and enhance then with the following features.

Feature include:

    * Added shapefiles are re-projected to the map wkid.
    * Adding labeling based on the first string field in the shapefile is optional and will be added as a seperate FeatureLayer.
    * Each Shapefile is added as a FeatureLayer so that it appears in the LayerList Widget, TOC Widget, MapSwitcher Widget.
    * The widget has been localized so that all text in the widget can be changed to the users locale.
    * The widget has a ShapeFiles.xml that allows for widget options to be configured.
    * Each added shapefile is displayed in the widgets results and has a remove button.
    * When the widget is closed the shapefiles remain in the map (unless you choose to remove them using the widget).
    * Options for symbology and labeling are now very extensive.
    * UX (user Experience) and GUI has been greatly improved.
    * When a shapefile is removed and it has been labeled, the corresponding labels are also removed.

http://www.arcgis.com/home/item.html?id=2e9096c5d5044d39a264df759611686f
Tags (2)
0 Kudos
17 Replies
AnthonyGiles
Honored Contributor
Robert,

Great widget, thanks again for all you excellent work. Just a quick question, I presume the widget uses a geometry service to project the shape file to the right projection. I do not see a setting for this in the config file or is it defaulting to the one set in the main config?

I suppose your going to be busy updating all your widgets to 3.1 🙂

Regards

Anthony
0 Kudos
GISDev1
Deactivated User
Cool widget Robert. I hope Esri compensates you in some way for all of the legwork you do for them and the users.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Anthony,

   Yes it uses the one specified in the main config.xml. Yep I have lots of work ahead of me.
0 Kudos
RhettZufelt
MVP Notable Contributor
Was wondering if anyone has gotten this to play nicely with the TOC widget?

If I have the TOC open and add a shapefile, I get the null value errors, and the TOC widget loading.swf keep going indefinatly.

I get same result with FV3.0 and FV3.1.

R_

More on this, it appears to get along with the MapSwitcher more button, the LayerList and Legend widgets (at least, it puts the shapefile name and/or labels name up there an can turn on/off, but no symbology), but doesn't appear to like the TOC, even if all other layer widgets are removed.

Also, not sure if it helps, or if it is supposed to work, but in the LayerList or More button, If I select the zoom to option, it zooms to the full extent of the map, not the shapefile.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rhett,

   Both widgets now updated to fix the reported issues.
0 Kudos
RhettZufelt
MVP Notable Contributor
Excellent work.

Everything seems to be getting along just fine now 🙂

R_
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

  A new version of the widget is now available:

Version 3.5.2 - Dec 7, 2013
* Shapefile symbology cab be changed for the shapefile once added to the map.
* Label by default has be removed.
* Labeling a shapefile can be done after the shapefile has been loaded.
* You can now label using which ever field you choose from the shapefile.
* Labeling can be removed from a shapefile at any time without having to remove the shapefile.
0 Kudos
AhmadShahryar
Emerging Contributor
I have recieved this error even using the widget on the following link
http://gis.calhouncounty.org/FlexViewer3.5/index.html?config=config-shapefile.xml
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Sheri92,

   OK, so would you care to share some more info about your shapefile? Can you actually share the shapefile zip for further testing? The Viewer has limitations on the number of features and the limits is greatly reduced when you are talking about complex polygons.
0 Kudos