Select to view content in your preferred language

Raster Service Not appearing in Layer List

1342
8
09-10-2010 05:15 AM
JoshuaCoates
Deactivated User
I have created a service and an operational layer from that service that is an ortho image of the county I am working on. I am trying to find out why the raster image is not appearing as a layer in my layerlist widget to where it can be turned on or off? Any ideas?

Thanks,
Josh C.
Tags (2)
0 Kudos
8 Replies
DasaPaddock
Esri Regular Contributor
Did you set the type to "dynamic" and the url to the MapServer?
0 Kudos
JoshuaCoates
Deactivated User
I am in the process of caching the map...so wouldn't I need to have the type="tiled"? The url is set to the server though.
0 Kudos
DasaPaddock
Esri Regular Contributor
You can try "dynamic" as a test. You should get a map image, but it probably won't look good. Then switch it to "tiled". If it's not appearing in your layer list widget, it's probably not able to load. Try using a tool like HttpFox to see if it's making a request to the server and getting a good response.
0 Kudos
JoshuaCoates
Deactivated User
Ok, I will try that. I am going to wait until I have all the layers cached and then try seeing what happens. I am thinking that because I created all the map services and then added them as operational layers....before caching the map and having everything finalized...that this may be affecting some things such as this issue. I will let you know as I progress. Since I have your attention on this post, would you mind looking at my post about header controller to see if you have any input for me? I would greatly appreciate it, I am trying to get the application ready to make public next week and am in a serious time crunch! I just want to edit the "About" button and make the box appear larger.

Thanks,
Josh C.
0 Kudos
JoshuaCoates
Deactivated User
Ok, well I have made the raster layer its own service and added it as an operational layer set to both dynamic and tiled. Neither one has the layer appear in the layer list widget. And when I try zooming in the map, I am getting result 500 errors in HttpFox that says text/html (NS_ERROR_FAILURE) for several different layers. The strange thing is that I get no record of my aerial (raster) image trying to load?? I think this could have to do with the fact that the color to my map is jet black, like the rest of the UI in flex viewer. I have my config.xml file set as:
<configuration>
    <httpproxy enabled="false">proxy.php</httpproxy>
    <title>Bartow County</title>
    <subtitle>Floodplain Mapping Application</subtitle>
    <logo>assets/images/bartow_courthouse.png</logo>
    <stylesheet>blackgold.swf</stylesheet>

    <!-- UI elements -->
    <widget left="0"   top="0"   config="widgets/HeaderController/HeaderController.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>
    <widget right="1" bottom="1" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>

    <map initialextent="1989177 1488269 2190132 1605493">
        <basemaps>
            <mapservice label="Basemap" type="tiled" visible="true" alpha="1"
                url="http://publicgis/PublicGISserver/rest/services/Basemap/MapServer"/>
        </basemaps>
        <operationallayers>
            <layer label="2008 Aerial Photo" type="dynamic" visible="false"
                   url="http://publicgis/PublicGISserver/rest/services/2008_Aerial_Photo/MapServer"/>
            <layer label="Basemap" type="tiled" visible="false" 
                   url="http://publicgis/PublicGISserver/rest/services/Basemap/MapServer"/>
            <layer label="2007 Cross Sections" type="tiled" visible="false"
                   url="http://publicgis/PublicGISserver/rest/services/2007_CrossSections/MapServer"/>
            <layer label="2007 Bartow Floodplain" type="tiled" visible="false" visiblelayers=""
                   url="http://publicgis/PublicGISserver/rest/services/2007_BartowFloodplain/MapServer"/>
            <layer label="2010 Cross Sections" type="tiled" visible="false" 
                   url="http://publicgis/PublicGISserver/rest/services/2010_CrossSections/MapServer"/>
            <layer label="2010 Bartow Floodplain" type="tiled" visible="false" alpha="0.5" visiblelayers=""
                   url="http://publicgis/PublicGISserver/rest/services/2010_BartowFloodplain/MapServer"/>
        </operationallayers>
    </map>


Can anyone explain what is going on? And why for some layers I am getting the 500 errors? Its like many things do not show up. If i zoom to a particular area in the map, half of the area I zoom to has everything appear and the other half of the zoomed area is just black and I get 500 errors for certain tiles. I am going to try re-caching those layers to see if this is the issue. But I could really use an explanation as to why my map background is black when it used to be white?!
0 Kudos
StaceMaples
Frequent Contributor
I have the same problem.  A service with a Compact Tilecache, based on a map with a single raster image, I've got the crossdomain.xml file in the wwwroot folder on the ArcGIS Server machine, and I've tried both dynamic AND tiled.  Nothing.  I know the service works, because I can use it in an ArcGIS.com map.
0 Kudos
BjornSvensson
Esri Regular Contributor
Stacey, any chance that your service is publicly available so we could test it?

If you go to the service directory for the page and click "View in ArcGIS Javascript" does it work?

Are you working with the ready-to-deploy Flex Viewer, the source code, or a Flex API application?

What's the URL you are trying to use?
0 Kudos
JoshuaCoates
Deactivated User
I have the aerial imagery (raster) viewing in the flex viewer now. However it is still no in my layer list widget so that it can be turned off/on if the viewer needs to do so. Any reason why this operational layer is not showing up in the layer list widget?
0 Kudos