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

vue3初始创建地图报错 #2489

Closed
baiyang2292 opened this issue May 21, 2024 · 6 comments
Closed

vue3初始创建地图报错 #2489

baiyang2292 opened this issue May 21, 2024 · 6 comments
Assignees
Labels
🤔 need reproduce issue 需要一个在线复现链接

Comments

@baiyang2292
Copy link

问题描述

初始创建地图的时候 报错 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'getCenter')
const scene = new Scene({ id: 'map', map: new GaodeMap({ style: 'light', center: [116.276227, 35.256776], // center: [116.276227, 35.256776], zoom: 4 }) })

重现链接

No response

重现步骤

No response

预期行为

No response

平台

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

屏幕截图或视频(可选)

image

补充说明(可选)

No response

Copy link
Contributor

hi @baiyang2292, welcome!

Copy link
Contributor

Hi @baiyang2292, Please star this repo if you find it useful! Thanks ⭐!
你好~ @baiyang2292 🌟 如果这个仓库对你有帮助,可以给我们点个star支持一下~你的支持对我们来说是最大的鼓励,感谢你的支持与点赞 🌟

@baiyang2292
Copy link
Author

地图可以创建成功 center也生效 但是控制台报错

@lvisei
Copy link
Member

lvisei commented May 21, 2024

不清楚,盲猜是不是没有设置地图容器高度,有问题的话在 codesanbox 复现一下

@lvisei lvisei added the 🤔 need reproduce issue 需要一个在线复现链接 label May 21, 2024
Copy link
Contributor

Hello @baiyang2292. Please provide a online reproduction by forking codesandbox of @antv/l7 demo template Issues labeled by Need Reproduce will be closed if no activities in 3 days.

你好 @baiyang2292, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 @antv/l7 demo 模板 3 天内未跟进此 issue 将会被自动关闭。

Copy link
Contributor

github-actions bot commented Jun 6, 2024

由于该 issue 被标记为需要复现,却 15 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

Since the issue was labeled as "🤔 need reproduce" but no response was received for 15 days. Now close the issue. If you have any questions, feel free to comment.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 need reproduce issue 需要一个在线复现链接
Projects
None yet
Development

No branches or pull requests

3 participants