Openlayers:Bing军械测量图

Openlayers:Bing军械测量图,openlayers,bing-maps,Openlayers,Bing Maps,我正在使用openlayers来显示地图。我可以显示Bing路线图图层,但当我添加军械测量图层时(通过将道路更改为或Nancesurvey),该图层会显示,但会出现以下错误: Error: TypeError: providers is null Source File: http://www.cabotscouts.org.uk/scripts/openlayers-2.12/OpenLayers.debug.js Line: 39605 演示: 有什么想法吗?Bing似乎没有为操作系统提供

我正在使用openlayers来显示地图。我可以显示Bing路线图图层,但当我添加军械测量图层时(通过将
道路
更改为
或Nancesurvey
),该图层会显示,但会出现以下错误:

Error: TypeError: providers is null
Source File: http://www.cabotscouts.org.uk/scripts/openlayers-2.12/OpenLayers.debug.js Line: 39605
演示:


有什么想法吗?

Bing似乎没有为操作系统提供imageryProviders(具有属性信息),这会在OL尝试访问时导致问题

我已经破解了我的Openlayers.debug.js文件,以返回提供者是否为空(第39606行附近)


在更改为任何贴图样式时,您似乎都会遇到此错误-它不是特定于OS样式的…但是如果我不添加OS层,错误就会消失:
if (!providers)
{
    return;
}