Select to view content in your preferred language

Light Gray Canvas basemap not displaying properly in Flex Viewer!

1060
3
04-03-2012 12:12 PM
DonaldBiddle
Emerging Contributor
I am building a web app using the Flex Viewer, and would like to use the Light Gray Canvas (LGC) base map.  I add LGC in the App Builder, as well as my own map service (building polygons only). When I preview the map either in App Builder or any browser (tested IE, Chrome and Firefox), I see my map service but no features from the LGC base map.  What is really strange is that there are some labels from the LGC map visible (neighborhood/municipality names and Interstate highway names), but again no features (roads, parks, etc).  I have tried my map service with a number of other base maps with no problem, so I don't think it is an issue on that end.  I have tried building a map using only the LGC base map with no other services and it does not display properly either.  I have used LGC in ArcMap with no problems, so it seems this issue is isolated to using LGC in Flex Viewer only.  Really getting frustrated here.  Anybody have any suggestions or ideas as to what is going on?

Thanks,
DJ

Donald J Biddle
GIS Specialist
University of Louisville Center for GIS
Tags (2)
0 Kudos
3 Replies
DerekLaw
Esri Esteemed Contributor
Hi Donald,

I just tested and was able to successfully add and use the Light Gray Canvas (LGC) base map in the ArcGIS Viewer for Flex application builder. Note that when you add it under the Maps tab, it will appear as 2 items in the "selected basemaps" list (see figure 1), one for the features and one for the labels. And I can see the LGC basemap fine when I preview the app under the Preview tab.

Perhaps you accidentally deleted one of the LGC tiled service items in the "selected basemaps" list?

Hope this helps,
0 Kudos
BjornSvensson
Esri Regular Contributor
Here's an example of a config (created with the application builder like Derek suggested) that works:
<basemaps>
    <layer type="tiled" 
        label="Light Gray Canvas" 
        url="http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer" 
        visible="true"/>
    <layer type="tiled" 
        label="Light Gray Canvas" 
        url="http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer" 
        visible="true" 
        reference="true"/>
</basemaps>
0 Kudos
DonaldBiddle
Emerging Contributor
Derek, you are absolutely correct.  I had assumed that the apparent duplication of the map in the list was an error and deleted one.  Thanks a bunch for clearing it up for me! 

Bjorn, thanks for the code sample!

DJ
0 Kudos