当前位置:网站首页>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);
边栏推荐
- OpenStack-----Nova源码分析之创建虚拟机
- leetcode:456. 132 模式【单调栈】
- 三行代码简单修改jar包的项目代码
- Back test of quantitative trading - example of futures CTA strategy (tqzfuturerenkoscalpingstrategy)
- Heavyweight live | bizdevops: the way to break the technology situation under the tide of digital transformation
- It's an artifact to launch a website in a few minutes
- Nova中的api
- leetcode:剑指 Offer II 091. 粉刷房子【二维dp】
- Uncover gaussdb (for redis): comprehensive comparison of CODIS
- Used in time filter (EL table)
猜你喜欢

Explication d'un problème de manuel

.NET in China - What's New in .NET

Sword finger offer day 3 string (simple)

Summer Ending

中国虚拟人哪家强?沙利文、IDC:小冰百度商汤位列第一梯队

Serenvlt first met
![[turn] starting from the end, analyze in detail how to fill in the college entrance examination volunteer](/img/77/715454c8203d722e246ed70e1fe0d8.png)
[turn] starting from the end, analyze in detail how to fill in the college entrance examination volunteer

J2EE from entry to earth 01 MySQL installation
![[flask tutorial] flask overview](/img/e8/d85ac54f3a9eb3b1ab31852761154c.jpg)
[flask tutorial] flask overview

New Gospel of drug design: Tencent, together with China University of science and technology and Zhejiang University, developed an adaptive graph learning method to predict molecular interactions and
随机推荐
关于三子棋游戏的简易实现与N子棋胜利判断方法
OpenStack学习笔记-Glance组件深入了解
Openstack learning notes -nova component insight
重磅直播|BizDevOps:数字化转型浪潮下的技术破局之路
Solve the problem that yarn cannot load files in vs Code
15 basic SEO skills to improve ranking
Assemble relevant knowledge points of flag bit (connected)
[flask tutorial] flask development foundation and introduction
Cesium model Daquan glb/glft format
Regular match the phone number and replace the fourth to seventh digits of the phone number with****
Solution to Nacos' failure to modify the configuration file mysql8.0
Three lines of code to simply modify the project code of the jar package
When the input tag type is number, the input of E, e, -, + is blocked
QT display ffmpeg decoded pictures
Custom vertical table
汇编标志位相关知识点(连)
Cold migration and resize of Nova component source code analysis
OpenStack学习笔记(一)
始终保持疫情防控不放松 营造安全稳定的社会环境
[pit avoidance refers to "difficult"] antd cascader implements new customized functions