在此有一个超图地图加载三维场景的示例;
http://support.supermap.com.cn:8090/webgl/examples/webgl/editor.html#KeyboardControlCamera
其中使用了Cesium的BingMapsImageryProvider类;
viewer.imageryLayers.addImageryProvider(new Cesium.BingMapsImageryProvider({
url: 'https://dev.virtualearth.net',
mapStyle: Cesium.BingMapsStyle.AERIAL,
key: URL_CONFIG.BING_MAP_KEY
}));
下面来学习此类;
BingMapsImageryProvider类
语法
new Cesium.BingMapsImageryProvider(options)
功能
使用Bing Maps Imagery REST API 提供瓦片图像;
选项
url:托管图像的Bing Maps服务器的URL;
key: Bing Maps键,可在 https://www.bingmapsportal.com/创建,未提供则使用BingMapsApi.defaultKey;
tileProtocol:加载瓦片时使用的协议, http或https;
mapStyle: 要加载的Bing地图图像的类型;
culture:文化;
类参考链接在此;
http://cesium.xin/wordpress/archives/bingmapsimageryprovider.html
Bing Maps是,
Bing Maps是微软公司推出的Bing服务中线上地图服务;
使用它,可以在网络浏览器中观察到世界上的每一个角落。它的原名叫做"MSN Virtual Earth",在微软推出了 Windows Live 后它被改进后更名为Live Search Maps并整合到了 Windows Live 产品系列中。现在,它作为Bing搜索引擎的一部分提供,并于2009年12月3日发布了一个新的测试版本。
Bing Maps Imagery REST API,还没用过;
其文档链接在,
https://docs.microsoft.com/en-us/bingmaps/rest-services/imagery/