Closed baiyang2292 closed 1 month ago
hi @baiyang2292, welcome!
Hi @baiyang2292, Please star this repo if you find it useful! Thanks :star:! 你好~ @baiyang2292 🌟 如果这个仓库对你有帮助,可以给我们点个star支持一下~你的支持对我们来说是最大的鼓励,感谢你的支持与点赞 🌟
地图可以创建成功 center也生效 但是控制台报错
不清楚,盲猜是不是没有设置地图容器高度,有问题的话在 codesanbox 复现一下
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 将会被自动关闭。
由于该 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