|
@@ -283,7 +283,7 @@ const setCenterAndZoom = () => {
|
|
|
if (viewData.value.length > 0) {
|
|
if (viewData.value.length > 0) {
|
|
|
// 根据标记的位置设置中心点以及缩放级别
|
|
// 根据标记的位置设置中心点以及缩放级别
|
|
|
const bounds = L.latLngBounds(viewData.value)
|
|
const bounds = L.latLngBounds(viewData.value)
|
|
|
- map!.fitBounds(bounds, { paddingTopLeft: [20, 70], paddingBottomRight: [0, 0] })
|
|
|
|
|
|
|
+ map!.fitBounds(bounds, { paddingTopLeft: [20, 90], paddingBottomRight: [0, 30] })
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
if (isFirstRender) {
|
|
if (isFirstRender) {
|