明树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); ...@@ -48,8 +48,8 @@ let mapLoading = ref(true);
const handleInitMap = () => { const handleInitMap = () => {
map = new AMap.Map("container", { map = new AMap.Map("container", {
//设置地图容器id //设置地图容器id
mask: mask, // mask: mask,
viewMode: "3D", viewMode: "2D",
zoom: 4, //根据屏幕宽度设置初始化地图级别 zoom: 4, //根据屏幕宽度设置初始化地图级别
zooms: [4, 8], zooms: [4, 8],
center: ["lixiang", "tuichu"].includes(props.tabKey) ? [100.808299, 35.791787] : [127.808299, 35.791787], //初始化地图中心点位置 center: ["lixiang", "tuichu"].includes(props.tabKey) ? [100.808299, 35.791787] : [127.808299, 35.791787], //初始化地图中心点位置
...@@ -70,6 +70,7 @@ const handleInitMap = () => { ...@@ -70,6 +70,7 @@ const handleInitMap = () => {
map.on("complete", function () { map.on("complete", function () {
setTimeout(() => { setTimeout(() => {
mapLoading.value = false; mapLoading.value = false;
// map.setViewMode('3D');
}, 500); }, 500);
}); });
handleDistrict(); 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