当前位置:网站首页>Cesium--- figure loading
Cesium--- figure loading
2022-06-25 13:23:00 【Favorite truffle chocolate】
// A vector is a border graph , An image is a real picture effect , The topographic map is the one in the geography book of junior middle school
window.viewer = this.viewer = new Cesium.Viewer("cesium", {
// Offline or not WebMapTileServiceImageryProvider This kind of can be written here
imageryProvider: new Cesium.BingMapsImageryProvider({
url: "https://dev.virtualearth.net",
key: "ArsDXFxRSS-STYkRkWGuelvpPho5_XlV88oSN98XBViYJFbaFDeiJpCnjRqGg70q",
mapStyle: Cesium.BingMapsStyle.AERIAL,
}),
// Administrative area map
// imageryProvider: new Cesium.UrlTemplateImageryProvider({
// url: "http://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}",
// }),
shouldAnimate: true,
animation: false,
timeline: false,
navigationHelpButton: false,
selectionIndicator: true, // Remove target
sceneMode: 2,
sceneModePicker: false, // Toggle 2D
creditContainer: document.createElement("div"),
fullscreenButton: false,
geocoder: false,
homeButton: false,
baseLayerPicker: false, // Remove the base layer
infoBox: false,
// Solve the problem that the screenshot is completely black
contextOptions: {
webgl: {
alpha: true,
depth: true,
stencil: true,
antialias: true,
premultipliedAlpha: true,
// adopt canvas.toDataURL() To implement the screenshot, you need to set this item to true
preserveDrawingBuffer: true,
failIfMajorPerformanceCaveat: true,
},
},
});
// If it is WebMapTileServiceImageryProvider Must be written on the outside , Cannot be added directly to imageryProvider In the attribute , Otherwise it shows a blue ball ...
// viewer.imageryLayers.addImageryProvider(
// new Cesium.WebMapTileServiceImageryProvider({
// url: "http://t0.tianditu.com/img_c/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=vec&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default.jpg&tk=d6a72a78a43a2c17294b72ab26354cd6",
// layer: "tdtImgBasicLayer",
// style: "default",
// format: "image/jpeg",
// tileMatrixSetID: "GoogleMapsCompatible",
// // maximumLevel: 18
// })
// );
// Notes on Chinese place names
viewer.imageryLayers.addImageryProvider(
new Cesium.WebMapTileServiceImageryProvider({
url: "http://t0.tianditu.com/cia_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=cia&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default.jpg&tk=d6a72a78a43a2c17294b72ab26354cd6",
layer: "tdtAnnoLayer",
style: "default",
format: "tiles",
tileMatrixSetID: "GoogleMapsCompatible",
})
);
// Remove copyright information
viewer._cesiumWidget._creditContainer.style.display = "none";
// Anti-Aliasing
viewer.scene.postProcessStages.fxaa.enabled = false;
// Water mist effect
viewer.scene.globe.showGroundAtmosphere = true;
// Overlay border services
var iboMap = new Cesium.UrlTemplateImageryProvider({
url:"https://t{s}.tianditu.gov.cn/DataServer?T=ibo_w&x={x}&y={y}&l={z}&tk=" +token,
subdomains: subdomains,
tilingScheme: new Cesium.WebMercatorTilingScheme(),
maximumLevel: 10,
});
viewer.imageryLayers.addImageryProvider(iboMap);
边栏推荐
- Back test of quantitative trading - example of futures CTA strategy (tqzfuturerenkoscalpingstrategy)
- Three lines of code to simply modify the project code of the jar package
- 关于扫雷的简易实现
- Use of bind() in JS and handwritten bind()
- Regular match the phone number and replace the fourth to seventh digits of the phone number with****
- [turn] starting from the end, analyze in detail how to fill in the college entrance examination volunteer
- leetcode - 384. Scramble array
- Leetcode: Sword finger offer II 091 Painting house [2D DP]
- 指针,它那些不得不说的题目
- 关于数据在内存中存储的相关例题
猜你喜欢
Golang keyboard input statement scanln scanf code example
[pit avoidance refers to "difficult"] antd cascader implements new customized functions
Capabilities required by architects
Analyse de l'optimisation de la réécriture des requêtes lazyagg de l'entrepôt
It's an artifact to launch a website in a few minutes
Sword finger offer II 025 Adding two numbers in a linked list
[machine learning] model and cost function
leetcode:剑指 Offer II 091. 粉刷房子【二维dp】
Sword finger offer II 028 Flatten multi-level bidirectional linked list
Rust,程序员创业的最佳选择?
随机推荐
重磅直播|BizDevOps:数字化转型浪潮下的技术破局之路
Django框架——缓存、信号、跨站请求伪造、 跨域问题、cookie-session-token
Some knowledge of the initial C language
Capabilities required by architects
Unity 2D游戏中的抛物运动
leetcode:剑指 Offer II 091. 粉刷房子【二维dp】
KDD 2022 | GraphMAE:自监督掩码图自编码器
Explication d'un problème de manuel
How to configure aliases for typescript + vite projects
[flask tutorial] flask overview
关于猜数字游戏的实现
关于数据在内存中存储的相关例题
关于一道教材题的讲解
汇编标志位相关知识点(连)
初始c语言时的一些知识
时间过滤器(el-table)中使用
##脚本编写ssh免密功能
leetcode:918. 环形子数组的最大和【逆向思维 + 最大子数组和】
About data storage in memory
Back test of quantitative trading - tqzfuturerenkowavestrategy