首页默认飞到显示全临沂

dianlixunjian
Zhufu 2024-08-07 13:43:43 +08:00
parent 4702d39f08
commit c1fd842331
1 changed files with 8 additions and 0 deletions

View File

@ -587,6 +587,10 @@ onMounted(()=>{
handlerCheckUserOrgs();
handlerLoadMaskLayer();
handlerDealCountry();
map.flyTo({
center: [118.72504868812163, 35.180072027132915],
zoom: 7.848587811931849,
}),
map.on("click",(e)=>{
var center = map.getCenter(); //
var zoom = map.getZoom(); //
@ -594,6 +598,10 @@ onMounted(()=>{
console.log(center);
})
})
map && map.flyTo({
center: [118.72504868812163, 35.180072027132915],
zoom: 7.848587811931849,
})
})