antvis / antvis/LarkMap

🐛 [BUG]MapLibre 不显示地图

Open
#230 1 comment 0 reactions 1 assignee Claimed by @lvisei View on GitHub
Dominant language
TypeScript
Stars
87
Forks
34
PR merge metrics
No merged PRs in 30d

Description

代码如下
```
import { LarkMap, LayerPopup, PointLayer, ScaleControl, ZoomControl } from '@antv/larkmap';
import type { LarkMapProps, LayerPopupProps, PointLayerProps } from '@antv/larkmap';
import {MapLibre} from "@antv/l7";

const config: LarkMapProps = {
map: new MapLibre({
zoom: 10,
style: 'https://api.maptiler.com/maps/streets/style.json?key=YbCPLULzWdf1NplssEIc',
minZoom: 0,
maxZoom: 18,
}),
}
```
我这么设置MapLibre,结果地图显示不了,然后控制台报错
` Uncaught ReferenceError: _wrapNativeSuper is not defined`
只显示了背景,没地图
![企业微信截图_20240607174443](https://github.com/antvis/LarkMap/assets/11335550/722d5dd4-2136-4e27-892f-e869d792184f)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.