mirror of https://gitee.com/antv-l7/antv-l7
docs: 更新文档
This commit is contained in:
parent
c4deba6356
commit
5d957b6e14
|
@ -92,7 +92,6 @@ scene.addLayer(pointLayer);
|
|||
- [L7 Boundary](https://github.com/antvis/L7-boundary)
|
||||
- [L7 draw](https://github.com/antvis/L7-draw)
|
||||
|
||||
|
||||
## ✅ License
|
||||
|
||||
[MIT license](./LICENSE).
|
||||
|
|
|
@ -19,7 +19,7 @@ module.exports = api => {
|
|||
[
|
||||
'@babel/plugin-proposal-decorators',
|
||||
{
|
||||
legacy: true
|
||||
legacy: true,
|
||||
}
|
||||
],
|
||||
[
|
||||
|
|
|
@ -542,6 +542,7 @@ layer.setSelect(id);
|
|||
|
||||
```javascript
|
||||
layer.on('click', (ev) => {}); // 鼠标左键点击图层事件
|
||||
layer.on('mouseenter', (ev) => {}); // 鼠标进入图层要素
|
||||
layer.on('mousemove', (ev) => {}); // 鼠标在图层上移动时触发
|
||||
layer.on('mouseout', (ev) => {}); // 鼠标移出图层要素时触发
|
||||
layer.on('mouseup', (ev) => {}); // 鼠标在图层上单击抬起时触发
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
title: LineLayer
|
||||
order: 0
|
||||
---
|
||||
`markdown:docs/api/layer/line_layer/linelayer.zh.md`
|
||||
`markdown:docs/api/layer/line_layer/linelayer.en.md`
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
title: 数据
|
||||
order: 2
|
||||
---
|
||||
`markdown:docs/tutorial/data.zh.md`
|
||||
`markdown:docs/tutorial/data.en.md`
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
title: 离线使用
|
||||
order: 0
|
||||
---
|
||||
`markdown:docs/tutorial/map/offline.zh.md`
|
||||
`markdown:docs/tutorial/map/offline.en.md`
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@antv/g2": "^3.5.9",
|
||||
"@antv/gatsby-theme-antv": "^1.1.1",
|
||||
"@antv/l7-district": "^2.2.46",
|
||||
"@antv/l7-draw": "^2.3.40",
|
||||
"@antv/l7-react": "^2.2.37",
|
||||
"@antv/gatsby-theme-antv": "^1.1.1",
|
||||
"@babel/cli": "^7.6.4",
|
||||
"@babel/core": "^7.6.4",
|
||||
"@babel/plugin-proposal-decorators": "^7.6.0",
|
||||
|
@ -23,6 +23,7 @@
|
|||
"@babel/preset-env": "^7.5.5",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"@babel/preset-typescript": "^7.3.3",
|
||||
"@babel/standalone": "^7.13.15",
|
||||
"@commitlint/cli": "^8.1.0",
|
||||
"@commitlint/config-conventional": "^8.1.0",
|
||||
"@rollup/plugin-alias": "2.2.0",
|
||||
|
@ -70,7 +71,7 @@
|
|||
"eslint": "^6.6.0",
|
||||
"eslint-config-egg": "^7.5.1",
|
||||
"eslint-plugin-html": "^6.0.0",
|
||||
"gatsby": "^2.19.15",
|
||||
"gatsby": "2.25.0",
|
||||
"gatsby-plugin-google-analytics": "^2.1.27",
|
||||
"gatsby-remark-prettier": "^1.0.0",
|
||||
"geotiff": "1.0.0-beta.10",
|
||||
|
@ -131,7 +132,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"start": "yarn run site:clean && yarn run site:develop",
|
||||
"site:develop": "cross-env BABEL_ENV=site gatsby develop --open -H 0.0.0.0",
|
||||
"site:develop": "cross-env BABEL_ENV=site GATSBY_LOGGER=ink gatsby develop --open --host 127.0.0.1",
|
||||
"site:build": "yarn run site:clean && cross-env BABEL_ENV=site gatsby build --prefix-paths",
|
||||
"site:clean": "gatsby clean",
|
||||
"site:deploy": "yarn run site:build && gh-pages -d public",
|
||||
|
|
Loading…
Reference in New Issue