mirror of https://gitee.com/antv-l7/antv-l7
docs: 修复文档中的错误
This commit is contained in:
parent
fdd9fd9a23
commit
e378665e44
|
@ -30,7 +30,7 @@ scene.addLayer(layer);
|
|||
|
||||
设置图层名称,可根据 name 获取 layer;
|
||||
|
||||
### visable
|
||||
### visible
|
||||
|
||||
图层是否可见 {bool } default true
|
||||
|
||||
|
@ -102,7 +102,7 @@ layer.source(data, {
|
|||
|
||||
### scale
|
||||
|
||||
cscle('field', scaleConfig)
|
||||
scale('field', scaleConfig)
|
||||
|
||||
(field: string, scaleConfig: object)
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ scene.addLayer(layer);
|
|||
|
||||
设置图层名称,可根据 name 获取 layer;
|
||||
|
||||
### visable
|
||||
### visible
|
||||
|
||||
图层是否可见 {bool } default true
|
||||
|
||||
|
@ -102,7 +102,7 @@ layer.source(data, {
|
|||
|
||||
### scale
|
||||
|
||||
cscle('field', scaleConfig)
|
||||
scale('field', scaleConfig)
|
||||
|
||||
(field: string, scaleConfig: object)
|
||||
|
||||
|
|
|
@ -17,8 +17,16 @@ order: 0
|
|||
|
||||
2.0版本在L7内部动态引入了高德地图JS API,因此不再需要单独引入高德JS API,只需设置 type 为 ```amap``` 并且传入token
|
||||
|
||||
|
||||
```html
|
||||
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.l7-2.0.8/dist/l7.js"></script>
|
||||
<head>
|
||||
<! --引入最新版的L7-->
|
||||
<script src = 'https://unpkg.com/@antv/l7'></script>
|
||||
|
||||
<! --指定版本号引入L7-->
|
||||
<script src = 'https://unpkg.com/@antv/l7@2.0.11'></script>
|
||||
|
||||
</head>
|
||||
```
|
||||
|
||||
### 添加div 标签指定地图容器
|
||||
|
@ -106,7 +114,7 @@ fetch('https://gw.alipayobjects.com/os/rmsportal/oVTMqfzuuRFKiDwhPSFL.json')
|
|||
</head>
|
||||
<body>
|
||||
<div id="map"></div>
|
||||
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.l7-2.0.8/dist/l7.js"></script>
|
||||
<script src="https://unpkg.com/@antv/l7"></script>
|
||||
<script>
|
||||
|
||||
const scene = new L7.Scene({
|
||||
|
|
|
@ -18,7 +18,7 @@ order: 0
|
|||
2.0版本在L7内部动态引入了高德地图JS API,因此不再需要单独引入高德JS API,只需设置 type 为 ```amap``` 并且传入token
|
||||
|
||||
```html
|
||||
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.l7-2.0.8/dist/l7.js"></script>
|
||||
<script src="https://unpkg.com/@antv/l7"></script>
|
||||
```
|
||||
|
||||
### 添加div 标签指定地图容器
|
||||
|
@ -106,7 +106,7 @@ fetch('https://gw.alipayobjects.com/os/rmsportal/oVTMqfzuuRFKiDwhPSFL.json')
|
|||
</head>
|
||||
<body>
|
||||
<div id="map"></div>
|
||||
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.l7-2.0.8/dist/l7.js"></script>
|
||||
<script src="https://unpkg.com/@antv/l7"></script>
|
||||
<script>
|
||||
|
||||
const scene = new L7.Scene({
|
||||
|
|
|
@ -24,7 +24,7 @@ order: 0
|
|||
|
||||
|
||||
```html
|
||||
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.l7-2.0.8/dist/l7.js"></script>
|
||||
<script src="https://unpkg.com/@antv/l7"></script>
|
||||
```
|
||||
|
||||
|
||||
|
@ -118,7 +118,7 @@ fetch('https://gw.alipayobjects.com/os/rmsportal/oVTMqfzuuRFKiDwhPSFL.json')
|
|||
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v1.5.0/mapbox-gl.css' rel='stylesheet' />
|
||||
|
||||
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v1.5.0/mapbox-gl.js'></script>
|
||||
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.l7-2.0.8/dist/l7.js"></script>
|
||||
<script src="https://unpkg.com/@antv/l7"></script>
|
||||
<script>
|
||||
const scene = new L7.Scene({
|
||||
id: 'map',
|
||||
|
|
|
@ -24,7 +24,7 @@ order: 0
|
|||
|
||||
|
||||
```html
|
||||
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.l7-2.0.8/dist/l7.js"></script>
|
||||
<script src="https://unpkg.com/@antv/l7"></script>
|
||||
```
|
||||
|
||||
|
||||
|
@ -116,7 +116,7 @@ fetch('https://gw.alipayobjects.com/os/rmsportal/oVTMqfzuuRFKiDwhPSFL.json')
|
|||
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v1.5.0/mapbox-gl.css' rel='stylesheet' />
|
||||
|
||||
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v1.5.0/mapbox-gl.js'></script>
|
||||
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.l7-2.0.8/dist/l7.js"></script>
|
||||
<script src="https://unpkg.com/@antv/l7"></script>
|
||||
<script>
|
||||
const scene = new L7.Scene({
|
||||
id: 'map',
|
||||
|
|
|
@ -18,7 +18,7 @@ Include the L7 JS JavaScript <head> of your HTML file.
|
|||
|
||||
```html
|
||||
<head>
|
||||
<script src='https://gw.alipayobjects.com/os/antv/pkg/_antv.l7-2.0.8/dist/l7.js'>
|
||||
<script src='https://unpkg.com/@antv/l7'>
|
||||
</script>
|
||||
</head>
|
||||
```
|
||||
|
|
|
@ -19,9 +19,12 @@ Include the L7 JS JavaScript <head> of your HTML file.
|
|||
|
||||
```html
|
||||
<head>
|
||||
<! --引入第三方地图JSAPI-->
|
||||
<script src='https://gw.alipayobjects.com/os/antv/pkg/_antv.l7-2.0.8/dist/l7.js'>
|
||||
</script>
|
||||
<! --引入最新版的L7-->
|
||||
<script src = 'https://unpkg.com/@antv/l7'></script>
|
||||
|
||||
<! --指定版本号引入L7-->
|
||||
<script src = 'https://unpkg.com/@antv/l7@2.0.11'></script>
|
||||
|
||||
</head>
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue