Cesium: Use your own bingMap Key and hide the Cesium icon

Cesium is an open source map, a map engine based on javascript, which supports 3D, 2D, 2.5D map display. 
Since cesium is a javascript-based map engine, the code is basically front-end code, and many people use cesium for web pages, but few people do it on mobile. To use cesium to display the map on the mobile terminal, you also need to see whether your mobile phone browser supports the display of 3D and some effects. This blog briefly records some of the problems I encountered during the development process. 
1. Check whether your mobile phone supports webgl, open your mobile browser, enter the address: http://webglreport.com 
2. Apply for BingMapKey: https://www.bingmapsportal.com/ 
to Cesium.js under the Cesium folder Make modifications, search for "This application" through ctrl+f, and then change the defaultKey to your own key value, and change the return value of the following getkey function to your own key value 
write picture description here 
write picture description here 
3. Some applications will prompt "You must host this app on a web server. See contributor's guide for more info" 
If this text appears, open the Sandcastle-header.js file under the SandCastle file you imported, and comment out the last code and it will not appear. 
write picture description here 
4. Hide copyright text

 viewer._cesiumWidget._creditContainer.style.display="none";

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325229459&siteId=291194637