mirror of https://gitee.com/antv-l7/antv-l7
parent
6e80cf07a9
commit
0a9c6030e5
11
README.md
11
README.md
|
@ -1,7 +1,8 @@
|
|||
# L7 Large-scale WebGL-powered Geospatial Data Visualization
|
||||
|
||||
[L7官网](http://antv.alipay.com/zh-cn/l7/1.x/index.html)
|
||||
|
||||
[L7官网](http://antv.alipay.com/l7)
|
||||
![版本](https://badgen.net/npm/v/@antv/l7)
|
||||
![最近提交](https://badgen.net/github/last-commit/antvis/L7)
|
||||
|
||||
## 安装
|
||||
###
|
||||
|
@ -11,7 +12,7 @@ L7 目前底图采用高德地图,因此使用之前你还需要使用开发
|
|||
申请开发者 Key 是免费的。如果指定错误的版本号和开发者 Key,将无法加载 L7。目前最新版本请参考[这里](https://lbs.amap.com/api/loca-api/changelog),如果不指定版本号,则使用最新版本。
|
||||
在你的页面引入高德地图API
|
||||
```html
|
||||
<script src="https://webapi.amap.com/maps?v=1.4.8&key=您申请的key值"></script>
|
||||
<script src="https://webapi.amap.com/maps?v=1.4.15&key=您申请的key值"></script>
|
||||
```
|
||||
|
||||
|
||||
|
@ -21,7 +22,7 @@ L7 目前底图采用高德地图,因此使用之前你还需要使用开发
|
|||
|
||||
```html
|
||||
<!-- 引入在线资源 -->
|
||||
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.l7-1.2.2/dist/l7.min.js"></script>
|
||||
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.l7-1.3.1/dist/l7.min.js"></script>
|
||||
```
|
||||
|
||||
### 通过 npm 安装
|
||||
|
@ -35,7 +36,7 @@ npm i @antv/l7 --save
|
|||
成功安装完成之后,即可使用 `import` 或 `require` 进行引用。
|
||||
|
||||
```javascript
|
||||
import L7 from '@antv/l7';
|
||||
import * as L7 from '@antv/l7';
|
||||
// 新建Scene
|
||||
```
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@antv/l7",
|
||||
"version": "1.3.1",
|
||||
"version": "1.3.2",
|
||||
"description": "Large-scale WebGL-powered Geospatial Data Visualization",
|
||||
"main": "build/L7.js",
|
||||
"browser": "build/L7-min.js",
|
||||
|
|
|
@ -80,7 +80,7 @@ export default class Marker extends Base {
|
|||
if (this._popup) this._popup.setLnglat(this._lngLat);
|
||||
return this;
|
||||
}
|
||||
getLngLat() {
|
||||
getLnglat() {
|
||||
return this._lngLat;
|
||||
}
|
||||
|
||||
|
|
|
@ -137,9 +137,6 @@ export default class GaodeMap extends Base {
|
|||
scene.getScale = () => {
|
||||
return map.getScale();
|
||||
};
|
||||
scene.getZoom = () => {
|
||||
return map.getZoom();
|
||||
};
|
||||
scene.setZoom = zoom => {
|
||||
return map.setZoom(zoom);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue