Select to view content in your preferred language

API v2.6 breaks Bing maps backgrounds?

2094
22
12-14-2011 12:38 PM
StephenLead
Honored Contributor
I have a page which works correctly using v2.5 of the API. If I replace the API version with "2.6" in the lines:

<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.6/js/dojo/dijit/themes/claro/claro.css">
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.6"></script>


the map loads correctly, and my FeatureLayers and DynamicLayers are displayed - but the Bing maps backdrop is missing.

If I revert to 2.5 in these two lines, Bing maps appears.

Any clues?

Thanks,
Steve
0 Kudos
22 Replies
StephenLead
Honored Contributor
Hi Ed,

I'm not sure if we're talking about the same thing here?

I mean that if my HTML page, JS scripts (etc) are stored on my laptop, Bing won't show when I open the map. If I copy the whole set of code (otherwise untouched) onto a web server, Bing suddenly shows.

This isn't reproducible with the simple samples, so there's evidently something more complicated going on.

Anyway, it's not a show-stopper for me. As a workaround I can test locally using v2.5, then make the change to 2.6 when uploading to the web server.

Cheers,
Steve
0 Kudos
EdSaunders
Regular Contributor
Steve, yeah I'm currently holding the wrong end of the stick.  I thought you meant you had downloaded a copy of the API.
0 Kudos
StephenLead
Honored Contributor
This seems to be fixed using v2.7
0 Kudos