antvis / antvis/L7

当使用GaodeMap时,scene.fitBounds(bounds, {animate: true})无动画效果

Open
#2,704 4 comments 1 reaction 1 assignee Claimed by @lvisei View on GitHub
question
Dominant language
TypeScript
Stars
4.1k
Forks
656
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

按官网文档调用scene.fitBounds(bounds, {animate: true})时,使用高德地图的场合下,没有过渡动画。是我少传了什么配置吗?
官网文档截图:

![Image](https://github.com/user-attachments/assets/b58774c1-5b4a-453f-b805-a80cd8df3c6f)

### 重现链接

https://stackblitz.com/edit/vitejs-vite-9sr7upnx?file=index.html,src%2FApp.tsx,src%2Fmain.tsx,package.json&terminal=dev

### 重现步骤

1. 进入上面stackblitz的链接。
2. 查看app.tsx的代码,初始使用的是百度地图,在预览页面点击“点击动画fitBounds到山西省”按钮,发现会动画方式定位到山西省。
3. 更改app.tsx的代码,将百度地图注释掉,放开高德地图的注释,再次点击按钮,发现会直接闪移到山西省,没有过渡动画。

### 预期行为

使用高德地图时也应该有过渡动画。

### 平台

- 操作系统: [macOS]
- 网页浏览器: [Google Chrome]

### 屏幕截图或视频(可选)

_No response_

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.