Bing Map Tile Issue - No Code Change

1. A concise explanation of the problem you're experiencing.

We are suddenly experiencing an issue where Bing Map tiles fail to load completely in Safari, and load partially in Chrome. Our bing map tile URLs look like this, and throw a warning when opened in a browser, NET::ERR_CERT_COMMON_NAME_INVALID

https://ak.dynamic.t3.tiles.virtualearth.net/comp/ch/311230132102303020?mkt=en-US&it=G%2CL&shading=hill&og=426&n=z

I checked a basic example in the sandcastle, and the tile URLs for the same style map look like


These do not have the same issue as above. I tested our access tokens in a sandcastle, and they work fine. This issue causes Chrome to throw a not secure warning on our application, due to active content with certificate errors.

4. The Cesium version you're using, your operating system and browser.

1.57

This sounds like https://github.com/AnalyticalGraphicsInc/cesium/pull/7861, which was fixed in Cesium v1.58. When we fixed it, the problem only affected Bing’s new “on demand” layers, but it’s likely something changed on the Bing side to make the problem more widespread.

We did just change the Bing API urls that Cesium ion serves, which I think is why it suddenly broke (https://cesium.com/ion/changelog#2019-07-10). Josh, are you able to update to the latest CesiumJS version and confirm that it fixes your issue?

Oh ok that makes sense. But it’s probably breaking everyone using a pre-1.58 version of Cesium. Probably worth coming up with a way to avoid that. Off the top of my head, maybe you can either serve the old layers to pre-1.58 version of Cesium (if you know the Cesium version), or you can tell the client to always ask for https?

Hi Omar, confirming that upgrading Cesium to 1.59 fixed the issue. I assume this will effect others and many won't be in a position to upgrade immediately like we were. Might be worth investigating an alternative solution for those effected?