update readme 修改高德API版本

新增badge
This commit is contained in:
thinkinggis 2019-08-28 11:04:49 +08:00
parent 6e80cf07a9
commit 0a9c6030e5
4 changed files with 8 additions and 10 deletions

View File

@ -1,7 +1,8 @@
# L7 Large-scale WebGL-powered Geospatial Data Visualization # 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),如果不指定版本号,则使用最新版本。 申请开发者 Key 是免费的。如果指定错误的版本号和开发者 Key将无法加载 L7。目前最新版本请参考[这里](https://lbs.amap.com/api/loca-api/changelog),如果不指定版本号,则使用最新版本。
在你的页面引入高德地图API 在你的页面引入高德地图API
```html ```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 ```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 安装 ### 通过 npm 安装
@ -35,7 +36,7 @@ npm i @antv/l7 --save
成功安装完成之后,即可使用 `import` 或 `require` 进行引用。 成功安装完成之后,即可使用 `import` 或 `require` 进行引用。
```javascript ```javascript
import L7 from '@antv/l7'; import * as L7 from '@antv/l7';
// 新建Scene // 新建Scene
``` ```

View File

@ -1,6 +1,6 @@
{ {
"name": "@antv/l7", "name": "@antv/l7",
"version": "1.3.1", "version": "1.3.2",
"description": "Large-scale WebGL-powered Geospatial Data Visualization", "description": "Large-scale WebGL-powered Geospatial Data Visualization",
"main": "build/L7.js", "main": "build/L7.js",
"browser": "build/L7-min.js", "browser": "build/L7-min.js",

View File

@ -80,7 +80,7 @@ export default class Marker extends Base {
if (this._popup) this._popup.setLnglat(this._lngLat); if (this._popup) this._popup.setLnglat(this._lngLat);
return this; return this;
} }
getLngLat() { getLnglat() {
return this._lngLat; return this._lngLat;
} }

View File

@ -137,9 +137,6 @@ export default class GaodeMap extends Base {
scene.getScale = () => { scene.getScale = () => {
return map.getScale(); return map.getScale();
}; };
scene.getZoom = () => {
return map.getZoom();
};
scene.setZoom = zoom => { scene.setZoom = zoom => {
return map.setZoom(zoom); return map.setZoom(zoom);
}; };