Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

天地图setCenter方法缺失,仅有centerAndZoom可设置 #2383

Closed
Mostrey opened this issue Apr 8, 2024 · 3 comments
Closed

天地图setCenter方法缺失,仅有centerAndZoom可设置 #2383

Mostrey opened this issue Apr 8, 2024 · 3 comments
Assignees
Labels

Comments

@Mostrey
Copy link

Mostrey commented Apr 8, 2024

问题描述

Uncaught (in promise) TypeError: this.map.setCenter is not a function
at r.value (l7-maps@2.21.0:1:464344)
at e.value (l7@2.21.0:1:1191809)
at a.setZoomAndCenter (l7-position-TMap.vue:404:1)
at o. (l7-position-TMap.vue:253:1)
at s.emit (l7@2.21.0:1:1362896)
at e.value (l7@2.21.0:1:141083)
at l7@2.21.0:1:134339
at d (l7@2.21.0:1:1634044)
at Generator. (l7@2.21.0:1:1635371)
at Generator.next (l7@2.21.0:1:1634454)

重现链接

No response

重现步骤

No response

预期行为

使用天地图centerAndZoom方法替代

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

Copy link
Contributor

github-actions bot commented Apr 8, 2024

hi @Mostrey, welcome!

@github-actions github-actions bot added the good first issue Good for newcomers label Apr 8, 2024
Copy link
Contributor

github-actions bot commented Apr 8, 2024

Hi @Mostrey, Please star this repo if you find it useful! Thanks ⭐!
你好 @Mostrey。如果该仓库对你有用,可以 star 一下,感谢你的 ⭐!

@lzxue
Copy link
Contributor

lzxue commented Apr 19, 2024

可以尝试 scene.map 取到原生map 设置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants