修改现场返回问题

This commit is contained in:
guanj
2025-10-30 10:08:30 +08:00
parent 0ffc0cd01e
commit 980d5a22b3
5 changed files with 44 additions and 42 deletions

View File

@@ -129,7 +129,7 @@ const handler = async ({ BMap, map }: any) => {
const markerClick = (e: any) => {
zoom.value = 15;
infoWindowPoint.value = e;
infoWindowPoint.value.show = true;
// infoWindowPoint.value.show = true;
center.value.lng = 120.124367;
center.value.lat = 31.555421;
@@ -167,11 +167,11 @@ const init = () => {
lineCount: 1,
eventCount: 1,
lineEventDetails: [
{
gdName: "检修分公司",
pictureId: "5debb8bd0ce26527675eedffd74a3198",
pictureName: "无锡线上",
},
// {
// gdName: "检修分公司",
// pictureId: "5debb8bd0ce26527675eedffd74a3198",
// pictureName: "无锡线上",
// },
{
gdName: "检修分公司",
pictureId: "35b1301833e3fdfc872b1a27a17c7245",
@@ -267,12 +267,12 @@ const checkMapData = () => {
if (!hasOfflineTiles) {
console.warn("当前区域无离线地图数据,将返回默认位置");
// 使用正确的BMap.Point创建方式
const point = new BMapInstance.value.Point(116.404367, 39.915421);
// 使用正确的BMap.Point创建方式
const point = new BMapInstance.value.Point(120.124367,31.555421);
// 平滑移动并设置合适缩放级别
mapInstance.value.panTo(point);
mapInstance.value.setZoom(12);
mapInstance.value.setZoom(11);
// zoom.value = 12;
}
} catch (error) {