问题描述
@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 打开

3页面报错
TypeError
(0 xxxx.antv_l7.Viewport) is not a constructor.

codesandbox 中,@antv/l7 的版本是 "^2.9.26", 会自动安装位最新的 2.22.0;
预期行为
No response
平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
问题描述
@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 打开
3页面报错

TypeError
(0 xxxx.antv_l7.Viewport) is not a constructor.
codesandbox 中,@antv/l7 的版本是 "^2.9.26", 会自动安装位最新的 2.22.0;
预期行为
No response
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response