-
Notifications
You must be signed in to change notification settings - Fork 634
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
Comments
hi @baiyang2292, welcome! |
Hi @baiyang2292, Please star this repo if you find it useful! Thanks ⭐! |
地图可以创建成功 center也生效 但是控制台报错 |
不清楚,盲猜是不是没有设置地图容器高度,有问题的话在 codesanbox 复现一下 |
Hello @baiyang2292. Please provide a online reproduction by forking codesandbox of @antv/l7 demo template Issues labeled by 你好 @baiyang2292, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 @antv/l7 demo 模板 3 天内未跟进此 issue 将会被自动关闭。 |
由于该 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. |
问题描述
初始创建地图的时候 报错
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
平台
屏幕截图或视频(可选)
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: