当前位置:网站首页>Secondary development of ArcGIS JS API -- loading national sky map
Secondary development of ArcGIS JS API -- loading national sky map
2022-07-24 03:07:00 【niuge No.1】
<template>
<div id="map-view"></div>
</template>
<script>
import SceneView from "@arcgis/core/views/SceneView";
import Map from "@arcgis/core/Map";
import WMTSLayer from "@arcgis/core/layers/WMTSLayer";
import Basemap from "@arcgis/core/Basemap";
export default {
mounted() {
this.init();
},
methods: {
init() {
const tk = ""; // You applied for key
const annaLayer = new WMTSLayer({
url: "http://t0.tianditu.gov.cn/cva_c/wmts",
customParameters: {
tk: tk,
},
});
const layer = new WMTSLayer({
url: "http://t0.tianditu.gov.cn/img_c/wmts",
customParameters: {
tk: tk,
},
});
let basemap = new Basemap({
baseLayers: [layer,annaLayer],
});
const map = new Map({
basemap: basemap
});
const view = new SceneView({
container: "map-view",
map: map,
});
console.log(view);
},
},
};
</script>
<style scoped>
#map-view {
width: 800px;
height: 800px;
}
</style>If you want two-dimensional , Direct will SceneView Change it to MapView. The renderings are as follows :

边栏推荐
- Symbol類型
- Tweenmax+svg Pikachu transformation ball
- Example of producer consumer code implemented by the destructor framework without lock
- The simple use of ADB command combined with monkey is super detailed
- Liveqing live broadcast on demand streaming media OBS streaming live broadcast how to obtain interface verification token video verification streamtoken and configure token validity
- Microsoft win11/10 package manager Winget will support the installation of applications from zip files
- 322. Change
- Openresty Lua resty balancer dynamic load balancing
- I developed an app similar to wechat runnable applet with fluent
- Nirvana rebirth! Byte Daniel recommends a large distributed manual, and the Phoenix architecture makes you become a God in fire
猜你喜欢

Acwing 4498. pointer (DFS)

OSPF comprehensive experimental configuration

The next stop of data visualization platform | gifts from domestic open source data visualization datart "super iron powder"

攻防世界WEB練習區(view_source、get_post、robots)

Attack and defense world web practice area (view_source, get_post, robots)

SSM的技术论坛含前后台

An introductory example of structure and combinatorial ideas in go language

String.split()最详细源码解读及注意事项

Ugui source code analysis - maskutilities

LCD1602 - binge 51
随机推荐
go log包
Interpretation of steam education with the deepening of educational reform
Basic use of Pinia
FTP服务与配置
OSPF comprehensive experimental configuration
Hcip --- BGP comprehensive experiment
The function of SIP account - tell you what is SIP line
SSM's technical forum includes front and back offices
rust allow dead_ code
Ugui source code analysis - stencilmaterial
PMP first-hand data and information acquisition
如何获取步态能量图gei
Openresty Lua resty balancer dynamic load balancing
Unity 消息推送
Skywalking distributed system application performance monitoring tool - upper
O3DE 的Lumberyard 游戏引擎
CMT 注册——Google Scholar Id,Semantic Scholar Id,和 DBLP Id
Attack and defense world web practice area (webshell, command_execution, simple_js)
Symbol类型
322. Change