Select to view content in your preferred language

API v2.6 breaks Bing maps backgrounds?

1569
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
derekswingley1
Deactivated User
Our sample to add a bing layer works:  http://help.arcgis.com/en/webapi/javascript/arcgis/demos/ve/ve_layer.html

Post more code to repro?
0 Kudos
StephenLead
Honored Contributor
Our sample to add a bing layer works:  http://help.arcgis.com/en/webapi/javascript/arcgis/demos/ve/ve_layer.html

Post more code to repro?


Yeah I saw that sample was working. My code is pretty convoluted so I'll do some internal debugging first.

When you updated the samples, did you simply find/replace 2.5 with 2.6 in the Bing sample?

Thanks,
Steve
0 Kudos
derekswingley1
Deactivated User

When you updated the samples, did you simply find/replace 2.5 with 2.6 in the Bing sample?


Essentially, yes. The samples are updated with a batch find/replace process.
0 Kudos
JeffMitzelfelt
Regular Contributor
I appear to have the same problem. I'm using the BasemapGallery Dijit in my application. All the services display except the Bing services. (All the services appear in the dijit but when one of the Bing services is click the basemap is blank.) I checked and the BasemapGallery samples (Default and Dropdown button use Bing) are working correctly.
0 Kudos
derekswingley1
Deactivated User
I appear to have the same problem. I'm using the BasemapGallery Dijit in my application. All the services display except the Bing services.


Can you post the code for your app? A simplified repro case would be preferred.
0 Kudos
JeffPace
MVP Alum
Can you post the code for your app? A simplified repro case would be preferred.


What kind of errors are you guys getting in firebug/fiddler? I am not seeing any

I use both the Basemap gallery Widget and the custom Basemap Control widget,

Bing maps display, but if i "clickwheel" or use the zoom slider to zoom, it looks like Basemaps never update.

The same layer chosen without the basemap gallery works fine.

The same layer chosen from BAsemap Control sample works fine.

Looks like a bug in the Basemap gallery that is not working with the new zoom style .
0 Kudos
KellyHutchins
Esri Frequent Contributor
Are you specifying a valid bing maps key for the BasemapGallery?

var basemapGallery = new esri.dijit.BasemapGallery({
  showArcGISBasemaps: true,
  bingMapsKey:'Enter Bing Maps Key Here',
  map: map
}, "basemapGallery");


I appear to have the same problem. I'm using the BasemapGallery Dijit in my application.
0 Kudos
JeffPace
MVP Alum
Are you specifying a valid bing maps key for the BasemapGallery?

var basemapGallery = new esri.dijit.BasemapGallery({
  showArcGISBasemaps: true,
  bingMapsKey:'Enter Bing Maps Key Here',
  map: map
}, "basemapGallery");


Yes I am.  To be more specific (or general)

1. Normal tiled services work fine
2. ANY basemap added via the basemap gallery (local, AGO, BING) all fail on mousewheel/zoom slider, its as if the "draw at new scale" is never received.  Operational layers on top of basemap draw fine.
3. If you switch layers the basemap will draw at the appropriate scale, so its only zoom events that are failing.
0 Kudos
KellyHutchins
Esri Frequent Contributor
Jeff,

I can't reproduce with this sample:

http://help.arcgis.com/en/webapi/javascript/arcgis/demos/widget/widget_basemap.html

Can you repro with that sample? If so can you provide me with a series of steps that will show the problem. I tested switching basemaps and using the scroll wheel to zoom and everything looked ok to me.
0 Kudos