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