明树Git Lab

Commit 8398bf5c authored by yangyajing's avatar yangyajing

2D

parent ef89a10c
Pipeline #104528 passed with stage
in 13 seconds
......@@ -48,8 +48,8 @@ let mapLoading = ref(true);
const handleInitMap = () => {
map = new AMap.Map("container", {
//设置地图容器id
mask: mask,
viewMode: "3D",
// mask: mask,
viewMode: "2D",
zoom: 4, //根据屏幕宽度设置初始化地图级别
zooms: [4, 8],
center: ["lixiang", "tuichu"].includes(props.tabKey) ? [100.808299, 35.791787] : [127.808299, 35.791787], //初始化地图中心点位置
......@@ -70,6 +70,7 @@ const handleInitMap = () => {
map.on("complete", function () {
setTimeout(() => {
mapLoading.value = false;
// map.setViewMode('3D');
}, 500);
});
handleDistrict();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment