From d5d8746f57196582defbfeccd374a9dcf10b4169 Mon Sep 17 00:00:00 2001 From: thinkinggis Date: Wed, 28 Aug 2019 11:04:49 +0800 Subject: [PATCH] =?UTF-8?q?update=20readme=20=E4=BF=AE=E6=94=B9=E9=AB=98?= =?UTF-8?q?=E5=BE=B7API=E7=89=88=E6=9C=AC=20=E6=96=B0=E5=A2=9Ebadge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 ++++++----- package.json | 2 +- src/component/marker.js | 2 +- src/map/AMap.js | 3 --- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 69d18ac862..fbc5963ea2 100644 --- a/README.md +++ b/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 - + ``` @@ -21,7 +22,7 @@ L7 目前底图采用高德地图,因此使用之前你还需要使用开发 ```html - + ``` ### 通过 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 ``` diff --git a/package.json b/package.json index 388ea4dc0a..1b8770e333 100755 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/component/marker.js b/src/component/marker.js index 1e9385f5f1..753f09c702 100644 --- a/src/component/marker.js +++ b/src/component/marker.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; } diff --git a/src/map/AMap.js b/src/map/AMap.js index 0e6f4d7880..0762a442a1 100644 --- a/src/map/AMap.js +++ b/src/map/AMap.js @@ -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); };