Cesium Box - Baidu map loaded (with source code download)

Cesium is designed for three-dimensional map of the Earth and world-class open source JavaScript. It provides a development kit based on the JavaScript language, user-friendly Web applications to quickly build a zero Virtual Earth plug-in, and in performance, precision, and multi-platform rendering quality, ease of use have quality assurance.

Cesium can easily load high moral map, world map maps, Google maps, but Baidu does not support the load map, the author modeled on the definition specification UrlTemplateImageryProvider and related information, write a simple Baidu map loading method.

Renderings:

Consistent with UrlTemplateImageryProvider loading methods such as loading method.

  • var viewer = new Cesium.Viewer('cesiumContainer', {
  • imageryProvider: new BaiduImageryProvider({
  • url: "http://online{s}.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles=pl&scaler=1&p=1"
  • })
  • });

Complete BaiduImageryProvider code for the annex.

For more details, see the following article in the link :

Article link

Article provides source code, are interested in this column, you can focus on a wave

Guess you like

Origin www.cnblogs.com/giserhome/p/11784095.html
Recommended