Select to view content in your preferred language

Cached Basemap not showing up

1148
1
03-01-2011 07:31 AM
justinsowers
Emerging Contributor
I am creating a web application in Flash Builder 4 using the ArcGIS Viewer for Flex source code. I am having a problem getting my cached basemap, which is an aerial photograph, to show up when I run the application. The dynamic operational layers show up but the cached base map will not. When i change the basemap to dynamic, it will show up but when I try to zoom in all layers disappear. The zoom slider shows up and displays the correct scales but the basemap itself is blank. I can create a web application using the application tab in ArcGIS Server and it shows up and displays fine at all scales. Any help would be GREATLY appreciated.
Here is the code I am using:

<configuration>
    <title>Barren County WebGIS</title>
    <subtitle>Justin Sowers - Geography 418</subtitle>
    <logo>assets\images\wku.jpg</logo>
    <style>
        <colors>0xFFFFFF,0x333333,0x101010,0x000000,0xFFD700</colors>
        <alpha>0.8</alpha>
    </style>

    <!-- UI elements -->
    <widget left="10"  top="50"    config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.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=
"1455768.96629259 1771317.29498822 1715713.09129259 1950286.76200211" top="40">
        <basemaps>
            <layer label="Barren" type="tiled" visible="true"  alpha="1"
                   url="http://sowers/WebGIS/rest/services/basemap_cache/MapServer"/>
 
        </basemaps>
        <operationallayers>
          <layer label="Roads" type="dynamic" visible="true"
                   url="http://sowers/WebGIS/rest/services/b_roads/MapServer"/>

            <layer label="Schools" type="dynamic" visible="true"
                   url="http://sowers/WebGIS/rest/services/schools/MapServer"/>
        </operationallayers>
    </map>
 
<widgetcontainer layout="float">
 
  <widget label="Search" left="80" top="280" icon="assets/images/i_search.png" config="widgets/Search/SearchWidget_Louisville.xml" url="widgets/Search/SearchWidget.swf" />

  </widgetcontainer>


</configuration>
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Justin,

    As you are using the Viewer
using the ArcGIS Viewer for Flex source code
and have already posted in the viewer forum, I have responded there. Some people get their feathers in a bunch if you double post or ask Viewer questions on the API forum. Just a heads up...
0 Kudos