Select to view content in your preferred language

Cached Basemap Layer will not show up

3254
12
03-01-2011 07:29 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
12 Replies
RobertScheitlin__GISP
MVP Emeritus
Nicholas,

   If you look above you will see that he is only using his services and not any other cached Map services (like ESRI or BING).
0 Kudos
justinsowers
Emerging Contributor
that makes sense because the .sid is in utm and the other layer in the basemap as well as the data frame is in state plane. i went in and reprojected the other layer in the basemap and set the data frame to match the aerial photo. i republished the service but it still has a wacky value as the x origin. here is what the REST endpoint service gives me now:

Origin:
X: -5120900
Y: 9998100

Spatial Reference: 26916
Intial Extent:

XMin: 572246.770967992
YMin: 4061427.66298877
XMax: 635836.039181945
YMax: 4115977.66563461
Spatial Reference: 26916
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Justin,

  I would say that you have one bad sid in the bunch that the cache is getting that wacky value from. This has happened to me in the past.
0 Kudos