Select to view content in your preferred language

Basemaps will not display

2709
2
11-05-2010 07:51 AM
MarcusBrothwell
Deactivated User
Hi All,

I have wrestled this for literally days. I have a flex viewer which works great with a single dynamic mapservice. I host this on my own server. Now I would like the option of switching to a different basemap, e.g. from arcgisonline. I add the new mapservice tag to the basemaps section in config.xml, the menu option appears, but when I click on it, no map is rendered.

I know it is connecting to the service because it provides me with LODS. But nothing shows up. My dynamic service is SR 4326, like the dynamic basemap I'm trying to use.

I've tried everything seemingly relevant from other threads (eg crossdomain.xml) but no good. Following is the excerpt of my config.

I would greatly appreciate any help because my customer is going ballistic and I'm at my wits end with this.

Thanks, Marcus



    <map initialExtent="-179.999993284715 -226.229499756746 179.999993284715 226.229499756746" fullExtent="-179.99999 -89.99999 179.99999 89.99999">
        <basemaps menu="menuBackground">

            <mapservice label="ESRItileService1" type="tiled" visible="true" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/UN/menulayer_01satellite.png">http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer</mapservice>
            <mapservice label="ESRItileService2" type="tiled" visible="true" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/UN/menulayer_02map.png">http://server.arcgisonline.com/ArcGIS/rest/services/NGS_Topo_US_2D/MapServer</mapservice>
            <mapservice label="ESRItileService3" type="tiled" visible="true" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/UN/menulayer_03density.png">http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer</mapservice>
            <!--mapservice label="AGSMapService" type="dynamic" visible="true" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/UN/menulayer_04resources.png">http://fft-mbrothwell/ArcGIS/rest/services/maps/UNsample/MapServer</mapservice-->
    
        </basemaps>
</map>
Tags (2)
0 Kudos
2 Replies
DasaPaddock
Esri Regular Contributor
What version of the Viewer are you using?

Have you tried using a tool like HttpFox to see what requests are being made and what the responses are?
0 Kudos
MarcusBrothwell
Deactivated User
Hi, I'm using viewer version 1.2.

I can see the initial MapServer request going out the arcgisonline urls on startup, and returning.

But when I subsequently toggle the basemap menu, to one of those layers, nothing happens - no http action as far as i can tell by using the dev analyzer tool in chrome.

In mapmanager.xml, I can see that the "lyr.visible = true;" is being executed, and for the correct layer.

But nothing happens.
0 Kudos