Select to view content in your preferred language

Adding Shape file data in ArcGIS viewer for flex 2.2 HELP,

1460
2
01-31-2011 06:28 AM
AndrewCummings
New Contributor
Already downloaded http://www.arcgis.com/home/item.html?id=bc6a88cf51364d9ea767347954363d7d

This is what I'm looking at

<!-- UI elements -->
<widget left="10" top="50" config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
<widget right="-2" bottom="-2" 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"/>

<map initialextent="-10083000 2559000 -10879000 5558000" top="40">
<basemaps>
<layer label="Streets" type="tiled" visible="true" alpha="1"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
<layer label="Aerial" type="tiled" visible="false" alpha="1"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>
<layer label="Topo" type="tiled" visible="false" alpha="1"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
</basemaps>
<operationallayers>
<layer label="Boundaries and Places" type="tiled" visible="false"
url="http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places_Alternate/..."/>
<layer label="Fires" type="feature" visible="false" alpha="1"
info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
infoconfig="widgets/InfoTemplates/IWT_Fires.xml"
url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0"/>
</operationallayers>
</map>

<!-- widgets organized into widget containers that manage close/open etc -->
<!-- supported layout property options: horizontal(default)|float|vertical|fix-->
<widgetcontainer layout="float">
<widget label="Bookmarks" left="430" top="90"
icon="assets/images/i_bookmark.png"
config="widgets/Bookmark/BookmarkWidget.xml"
url="widgets/Bookmark/BookmarkWidget.swf"/>
<widget label="Find an address" left="100" top="90"
icon="assets/images/i_target.png"
config="widgets/Locate/LocateWidget_US.xml"
url="widgets/Locate/LocateWidget.swf"/>
<widget label="Search" left="80" top="280"
icon="assets/images/i_search.png"
config="widgets/Search/SearchWidget_Louisville.xml"
url="widgets/Search/SearchWidget.swf"/>
<widget label="Draw and Measure" left="60" top="400"
icon="assets/images/i_draw2.png"
config="widgets/Draw/DrawWidget.xml"
url="widgets/Draw/DrawWidget.swf"/>
<widget label="Print" left="390" top="400"
icon="assets/images/i_print.png"
config="widgets/Print/PrintWidget.xml"
url="widgets/Print/PrintWidget.swf"/>
<widget label="Load Shape Files" x="400" y="60"
icon="widgets/ShapeFiles/images/shapefiles.png"
config="widgets/ShapeFiles/ShapeFiles.xml"
url="widgets/ShapeFiles/ShapeFiles.swf"/>

<!--
<widget label="My first widget"
icon="assets/images/i_widget.png"
config="widgets/Samples/HelloWorld/HelloWorldWidget.xml"
url="widgets/Samples/HelloWorld/HelloWorldWidget.swf"/>
-->
</widgetcontainer>

</configuration>



And its giving me " Error #2036 "

What can I do?
Tags (2)
0 Kudos
2 Replies
TyroneLigon
Deactivated User
Did you try using "top" and "left" attributes instead of "x" and "y"? I'm not using the SFV, but those attributes jumped out at me.
0 Kudos
CoreyLunsford
Deactivated User
I'm not the OP but I'm interested in this topic. I did everything he did and it is not displaying for me either. I changed the attributes to "Top" and "Left" (I copied the values from another widget that I know works) and it is not being displayed for me either. Is there an easier way to load shapefiles into flex besides this?
0 Kudos