Select to view content in your preferred language

Using new bing map key vs token with flex 1.3 API, is it possible ?

666
3
11-05-2010 01:03 AM
AndreaV
Regular Contributor
Hi guys,
I need to quickly and temporarly find a solution to use a legitimate license with the new Bing Maps Key for ArcGIS Server 10 onto FLEX API 1.3, while I perform a porting to FLEX API 2.1.

As I read in a recent thread in the forum it is possible to use the new
Masp Key instead the token in 1.3 but It seems function only with the
'staging' map.

Are there any workaround to use with Bing Maps Key in 1.3 API to get 'production' maps ?

Thanks a lot
Andrea
Tags (2)
0 Kudos
3 Replies
DasaPaddock
Esri Regular Contributor
The Bing Key can be substituted for the token, so you can create a static file that returns the key as shown below.

<esri:VETiledLayer
   environment="production"
   tokenURL="assets/bing-app-id.txt"/>

bing-app-id.txt:

{ "token": "your key here" }
0 Kudos
AndreaV
Regular Contributor
Thank you,
it works !

Andrea V
0 Kudos
SharadGarg
Emerging Contributor
i created a bingkey.txt file and passed the URLpath to it in the token url and i get an error message :

faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://blah.com/Bingkey.txt"]. URL: BingKey.txt'

if i type in the url to the text file it returns the token fine...Looks like it does not like the txt file in the URL - any suggestions/help would be greatly appreciated.
0 Kudos