Select to view content in your preferred language

SwipeSpotLight Widget

884
6
08-11-2011 02:02 PM
JeffreyUtter
Deactivated User
I ran Robert's SwipeSpotLight widget and ran across this error when executing the widget.
Can someone help me?
[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]

Fault code: Server.Error.Request

Fault info: HTTP request error

Fault details: Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://localhost/flexviewerdebug/widgets/SwipeSpotlight/SwipeSpotlightWidget.xml
Tags (2)
0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Jeffrey,

   Can you post the portion of your config.xml where you are adding the widget?
0 Kudos
JeffreyUtter
Deactivated User
Hi Robert,
Here is my config code

<?xml version="1.0" ?>
<!-- ////////////////////////////////////////////////////////////////////////////////
// // Read more about ArcGIS Viewer for Flex - http://links.esri.com/flexviewer
// //////////////////////////////////////////////////////////////////////////////// -->
<configuration>
<title>North Slope Borough Community Planning GIS</title>
<subtitle>a configurable web mapping application</subtitle>
<logo>assets/images/Nsblogo.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" />

<!-- UI elements -->
<splashpage label="Your Label" config="widgets/Splash/SplashWidget.xml"
  url="widgets/Splash/SplashWidget.swf" />
<widget left="20" bottom="2"
  config="widgets/Coordinate/CoordinateWidget.xml" url="widgets/Coordinate/CoordinateWidget.swf" />
<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 wraparound180="true" initialextent="-19828000 8802000 -13957000 10641000"
  fullextent="-20000000 -20000000 20000000 20000000" top="40">
  <basemaps>
   <layer label="Streets" type="tiled" visible="true"
    url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" />
   <layer label="Aerial" type="tiled" visible="false"
    url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" />
   <layer label="Topo" type="tiled" visible="false"
    url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" />
   <layer label="USA Topo" type="tiled" visible="false"
       url="http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer" />
   <layer label="Shaded Relief" type="tiled" visible="false"
       url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer" />
   <layer label="Ocean Bathymetry" type="tiled" visible="false" 
       url="http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer" />
  
  </basemaps>
  <operationallayers>
   <layer label="Demographics" type="tiled" visible="false" alpha="0.5"
    url="http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Household_Income/MapServ...">
    <sublayer id="1" popupconfig="popups/PopUp_Demographics_BlockGroups.xml" />
    <sublayer id="2" popupconfig="popups/PopUp_Demographics_Tracts.xml" />
    <sublayer id="3" popupconfig="popups/PopUp_Demographics_Counties.xml" />
    <sublayer id="4" popupconfig="popups/PopUp_Demographics_States.xml" />
   </layer>
   <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.0"
    popupconfig="popups/PopUp_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" preload="open"
   icon="assets/images/i_target.png" config="widgets/Locate/LocateWidget_World.xml"
   url="widgets/Locate/LocateWidget.swf" />
  <widget label="Louisville Police" left="590" top="280"
   icon="assets/images/i_police.png" config="widgets/Query/QueryWidget_Louisville_PoliceStations.xml"
   url="widgets/Query/QueryWidget.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="Earthquakes (GeoRSS)" left="410" top="280"
   icon="assets/images/i_rss.png" config="widgets/GeoRSS/GeoRSSWidget.xml"
   url="widgets/GeoRSS/GeoRSSWidget.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="WeatherUnderground" left="390" top="400"
   icon="assets/images/i_forcast.png" config="widgets/WeatherUnderground/WUndergroundWidget.xml"
   url="widgets/WeatherUnderground/WUndergroundWidget.swf" />
  <widget label="Swipe Spotlight" left="60" top="330"
            icon="assets/images/i_swipe.png" config="widgets/SwipeSpotlight/SwipeSpotlightWidget.mxml"
            url="widgets/SwipeSpotlight/SwipeSpotlightWidget.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>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeffery,

   This is your issue:

<widget label="Swipe Spotlight" left="60" top="330"
            icon="assets/images/i_swipe.png" config="widgets/SwipeSpotlight/SwipeSpotlightWidget.mxml"
            url="widgets/SwipeSpotlight/SwipeSpotlightWidget.swf" />


This will work:

<widget label="Swipe Spotlight" left="60" top="330"
             icon="assets/images/i_swipe.png" url="widgets/SwipeSpotlight/SwipeSpotlightWidget.swf" />
0 Kudos
JeffreyUtter
Deactivated User
Error went away after I changed it and re-compiled the code.
Not sure if I'm doing the swipe correctly, as when I select another map type, such as in my case, from USA Topo to Streets, I see the arrow, but nothing happens......???
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeffery,

   You need to swipe a operational layer not one of the basemaps. When you swipe a basemap there is nothing under it to reveal.  If you go to my live preview site and choose louisville landbase than you will see how it is suppose to work.

http://gis.calhouncounty.org/FlexViewer2.4/index.html?config=config-swipe.xml
0 Kudos
JeffreyUtter
Deactivated User
Got it....many thanks!

Jeffrey
0 Kudos