当前位置:网站首页>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);
边栏推荐
- [flask tutorial] flask overview
- 揭秘GaussDB(for Redis):全面对比Codis
- Implementation of a small book system
- 关于一道教材题的讲解
- Fedora 35 deploys DNS master-slave and separation resolution -- the way to build a dream
- Django框架——缓存、信号、跨站请求伪造、 跨域问题、cookie-session-token
- Summer Ending
- Back test of quantitative trading - tqzfuturerenkowavestrategy
- leetcode:456. 132 mode [monotone stack]
- OpenStack学习笔记(二)
猜你喜欢

Sword finger offer II 025 Adding two numbers in a linked list

Simple realization of mine sweeping

Some knowledge of the initial C language

Knowledge of initial C language 2.0

关于结构体,枚举,联合的一些知识

药物设计新福音:腾讯联合中科大、浙大开发自适应图学习方法,预测分子相互作用及分子性质

Storage related contents of data in memory

Analyse de l'optimisation de la réécriture des requêtes lazyagg de l'entrepôt

[pit avoidance means "difficult"] to realize editable drag and drop sorting of protable

On the realization of guessing numbers game
随机推荐
Pointer, it has to say that the subject
德国举行全球粮食安全团结会议
Sword finger offer II 032 Effective anagrams
Introduction to string 18 lectures Collection 4
關於數據在內存中的存儲下
Using swiper to realize seamless rotation of multiple slides
指针,它那些不得不说的题目
Download File blob transcoding
Conway's law can not be flexibly applied as an architect?
Fedora 35 deploys DNS master-slave and separation resolution -- the way to build a dream
Unity 2D游戏中的抛物运动
Scope of ES6 variable
J2EE from entry to earth 01 MySQL installation
Sword finger offer day 1 stack and queue (simple)
Accidentally modify or delete the system variable path to restore
leetcode - 384. Scramble array
How to determine if a web worker has been created or closed
Where is it safe to open an account for buying funds? Please give me your advice
An article clearly explains MySQL's clustering / Federation / coverage index, back to table, and index push down
揭秘GaussDB(for Redis):全面对比Codis