Select to view content in your preferred language

custom map not working

829
3
05-19-2011 07:52 AM
BenjaminBranch
Emerging Contributor
ok, my first custom map, it's not showing.. any ideas, I see it connected in ArcCatalog...
The path is correct, but it does not show up when I click it on?

testing in IIS...
Tags (2)
0 Kudos
3 Replies
JustinRobinson
Deactivated User
Please describe the situation up to this point:

�?� Assuming your using the latest ArcServer and it is properly configured
�?� Assuming your map service is correctly setup
[INDENT]�?� Is it accessible from the rest endpoint? http://<server>/ArcGIS/rest/services
�?� Can you connect to it at the http://<server>/ArcGIS/rest/services/<service>/MapServer using the ArcMap link to open the .lyr file?
[/INDENT]

If this is the ESRI Flex Viewer:
What is contained in your config.xml file regarding these? Is it a <basemaps> your loading or a <operationallayers>? What does your <layer> tag look like? Could your type="" be set incorrectly?
0 Kudos
BenjaminBranch
Emerging Contributor
My server connects with WMS, my paths are set like I see some working sites... I've tried all various type settings with not luck... I did my .msd and correctly with no errors. My paths appear to the same as other working custom maps on the server.

Here is my code... Here I'm working to add a climate change map in operational layer.


<?xml version="1.0" ?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010-2011 ESRI
//
// All rights reserved under the copyright laws of the United States.
// You may freely redistribute and use this software, with or
// without modification, provided you include the original copyright
// and use restrictions.  See use restrictions in the file:
// <install location>/License.txt
//
// Read more about ArcGIS Viewer for Flex 2.3 - http://links.esri.com/flexviewer
//
////////////////////////////////////////////////////////////////////////////////
-->
<configuration>
    <title>Cybercommons</title>
    <subtitle>Powered by ESRI and Managed by OU-CSA</subtitle>
    <logo>assets/images/logo.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" />
    <!-- replace the following key with your own Bing key -->
    <bing key="Ahw1due6dkmZg98wUJJYLrVmYlDik4oleCg6hoNqx6l2jFYRToImQH1HfH-asjjH"/>

    <!-- 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 wraparound180="true" initialextent="-14083000 3139000 -10879000 5458000" 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"/>
        </basemaps>
        <operationallayers>
   <layer label="Climate Change" type="tiled" visible="true" alpha="1"
    url="http://geoinfo.csa.edu/arcgis/rest/services/Branch/MRO18701890/Mapserver">
    </layer>
            <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_Bing.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="Table of Contents" left="250" top="500"
    icon="assets/images/i_layers.png"
    config="widgets/LayerList/LayerListWidget.xml"
    url="widgets/LayerList/LayerListWidget.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
JustinRobinson
Deactivated User
Okay, well... I take it that http://geoinfo.csa.edu/ is a local access only server as it appears to be externally inaccessible. I can't verify the settings there, but are you sure it's a tiled service? Try using type="dynamic" in the layer tag, even if it's a tiled server this would still function.

As for:
My server connects with WMS


I'm not exactly sure what your meaning by this. That you've enabled WMS as a capability, in this case your not going to access this service with that method. If you were set on connecting to a WMS service your "type" would be type="wms"

Does the .lyr file open from the Rest endpoint and display? [ http://geoinfo.csa.edu/arcgis/rest/services/Branch/MRO18701890/Mapserver?f=lyr&v=9.3 ]

P.S. Next time, not to be a nag, but this probably should have been in the ArcGIS Viewer for Flex forum, not the api forum.
0 Kudos