How to access Bing Maps

3827
13
10-01-2010 11:18 AM
ChrisMack
New Contributor
I am using ArcServer 10 and the ArcGIS Viewer for Flex 2.1.

What should I use as the REST endpoint URL for Bing Map data?

Thanks
Tags (2)
0 Kudos
13 Replies
xandermavrides
New Contributor II
1) You need your Bing key from arcserver 10

2) In your config.xml file place the following bing tag inside (below) the <configuration> tag

<bing key="YOUR LONG BING KEY GOES HERE"/>

3) In your config.xml add the following layer tags inside your <basemap> tag

<layer label="Bing" type="bing" visible="false" style="road" culture="en-US" />
<layer label="Bing Aerial" type="bing" visible="false" style="aerial" culture="en-US" />
<layer label="Bing Hybrid" type="bing" visible="false" style="aerialWithLabels" culture="en-US" />

that's it!
0 Kudos
ChrisMack
New Contributor
Thank you xander!

Your info is exactly what I needed.

Works great!
0 Kudos
NathanEnge
Esri Contributor
How do I implement Bing if I am using AGS10.1 to server the SFV1.3 using the 1.3 API?

Am I still going to have to use token?
0 Kudos
ToddLassen
New Contributor
I did all of the steps below and the Bing map shows up in the web application like it should be there but everything is blank. What am I missing?

1) You need your Bing key from arcserver 10

2) In your config.xml file place the following bing tag inside (below) the <configuration> tag

<bing key="YOUR LONG BING KEY GOES HERE"/>

3) In your config.xml add the following layer tags inside your <basemap> tag

<layer label="Bing" type="bing" visible="false" style="road" culture="en-US" />
<layer label="Bing Aerial" type="bing" visible="false" style="aerial" culture="en-US" />
<layer label="Bing Hybrid" type="bing" visible="false" style="aerialWithLabels" culture="en-US" />
0 Kudos
JohnGravois
Frequent Contributor
Jessica,
At least one of your basemaps needs to have its visible property set to "true".
0 Kudos
LonSharp
Occasional Contributor II
I followed the steps above and get the following error message:

---------------------
Bing layer failed to load: Fault code: 401

Fault info: Unauthorized

Fault details: Access was denied. You may have entered your credentials incorrectly, or you might not have access to the requested resource or operation.
-------------------------

I did a cut/paste of the key from manager (arcgisserver 10).   My confix.xml file has
<configuration>
<bing key="CUT/PASTE KEY"/>

as well as the layer tags under the basemaps tag.

Any idea what I'm doing wrong?   I'm assuming it's not recognizing the key, but why?   It came straight from arcgisserver as a cut/paste.

EDIT:

Never mind!   I missed:

  <!-- replace the following key with your own Bing key -->

in the config file initially.    Works find now.
0 Kudos
LonSharp
Occasional Contributor II
Never mind!   No mention was made of the tag:

  <!-- replace the following key with your own Bing key -->

and I missed it when I initially added the key.   

Works find now.
0 Kudos
BruceBurwell
New Contributor II
I am having the same problem. A bing layer appears but its not the aerial layer that I want. It looks like the hillshaded layer. I have tried all the different style tags but the layer doesn't change. Its always the same one.

Any ideas?

Bruce Burwell
0 Kudos