Select to view content in your preferred language

Bing layer in ArcGIS FlexViewer

2299
2
09-24-2010 07:57 AM
MarcusHarner
Regular Contributor
Per the online instructions about the Layer tag it seems that this

<layer label="Bing Roads"    type="bing" visible="false" alpha="1" style="road" culture="en-US"/>

would add a basemap layer (within the basemaps tag) that displays roads from bing.

I try it and no layer is returned, just white.  The default Streets and Aerial layers that came in the default ArcGIS Flex Viewer config file work fine.

Any ideas where I am missing something?
Thanks
-Marcus Harner
Tags (2)
0 Kudos
2 Replies
MehulChoksey
Esri Contributor
Marcus,
<layer> tag that you specified is correct. In addition to this, <bing> tag containing bing key should be specified in the main config file. This has changed a bit from beta.
see http://help.arcgis.com/en/webapps/flexviewer/help/migratingconfig.htm
More info to obtain Bing Key can be found here:http://help.arcgis.com/en/webapi/flex/help/content/ve_gettingstarted.htm

<?xml version="1.0" ?>
<configuration>
    <bing key="YOUR BING KEY"/>
    <map initialextent="-2757000 -5006000 18493000 12369000" top="40">
        <basemaps>
            <layer label="Streets" type="bing" visible="false" style="road" culture="en-US" />
            <layer label="Aerial" type="bing" visible="true" style="aerial" culture="en-US" />
            <layer label="Aerial with labels" type="bing" visible="false" style="aerialWithLabels" culture="en-US" />
        </basemaps>
    </map>
   
0 Kudos
MarcusHarner
Regular Contributor
Thanks Mehul thats just what I was hoping for.
0 Kudos