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

@antv/l7-leaflet包,在当前版本的l7(2.22.0)中无法使用 #2582

Open
hehuasa opened this issue Aug 2, 2024 · 2 comments
Open
Assignees
Labels
help wanted issue 求助社区帮助解决

Comments

@hehuasa
Copy link

hehuasa commented Aug 2, 2024

问题描述

@antv/l7-leaflet包,在当前版本的l7(2.22.0)中无法使用。
初始化地图,报错:
TypeError
(0 xxxx.antv_l7.Viewport) is not a constructor.

重现链接

https://codesandbox.io/s/zgqzsj?file=/App.tsx

重现步骤

1.打开 L7-Leaflet 官网,use in L7 页面,
https://l7-leaflet.antv.vision/leafler-map;
2.将示例用 codesandbox 打开

1722581223881_ED8C5201-D887-4460-9038-8856795E01CE

3页面报错
TypeError
(0 xxxx.antv_l7.Viewport) is not a constructor.
1722581240849_321DCEA5-0A44-4b89-A801-FD3A6C533E5C

codesandbox 中,@antv/l7 的版本是 "^2.9.26", 会自动安装位最新的 2.22.0;

预期行为

No response

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@lvisei
Copy link
Member

lvisei commented Aug 2, 2024

需要给 @antv/l7-leaflet 升级,欢迎来提 PR

@lvisei lvisei added the help wanted issue 求助社区帮助解决 label Aug 2, 2024
Copy link
Contributor

github-actions bot commented Aug 2, 2024

Hello @hehuasa, We totally like your proposal/feedback. welcome to send us a Pull Request to solve this problem and contribute to the open source project. After submitting the code, please send a Pull Request to the master branch. We will review it and look forward to your contribution.

你好 @hehuasa,同意你的反馈,欢迎直接在此仓库 创建一个 Pull Request 来解决这个问题,为开源项目贡献一份力量。提交代码后,请将 Pull Request 发到 master 分支,我们会进行 Review,期待您的贡献。

giphy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted issue 求助社区帮助解决
Projects
None yet
Development

No branches or pull requests

2 participants