feat: 更新Control position 文档

This commit is contained in:
yanxiong 2021-09-26 10:42:21 +08:00
parent 69ab7b2233
commit a6d3cee71e
7 changed files with 27 additions and 11 deletions

View File

@ -21,8 +21,12 @@ position: `string` 控件位置支持是个方位
- bottomright
- topright
- bottomleft,
- topleft`
- bottomleft
- topleft
- topcenter
- bottomcenter
- leftcenter
- rightcenter
### 组件介绍

View File

@ -21,8 +21,12 @@ position: `string` 控件位置支持是个方位
- bottomright
- topright
- bottomleft,
- topleft`
- bottomleft
- topleft
- topcenter
- bottomcenter
- leftcenter
- rightcenter
### 组件介绍

View File

@ -45,7 +45,7 @@ control 配置项
| name | Type | Default | Description |
| -------- | --------------------------------------------- | ---------- | ------------------------------- |
| position | `bottomright、topright、 bottomleft topleft` | `topright` | 组件位置 |
| position | `bottomright、topright、 bottomleft topleft、 topcenter、bottomcenter、leftcenter、rightcenter` | `topright` | 组件位置 |
| layout | `horizontal、 vertical` | `vertical` | 组件布局 支持水平和垂直两种布局 |
| controls | `controlOptions` | | 设置 UI 组件添加哪些绘制工具 |
| style | | | 地图绘制样式 |

View File

@ -78,7 +78,7 @@ Mapbox Map 地图配置项 [配置项](https://docs.mapbox.com/mapbox-gl-js/api/
| option | Type | Default | Description |
| --------------------- | --------- | ------------ | --------------------------------------------------------- |
| logoPosition | string | `bottomleft` | logo 位置 `bottomright | topright | bottomleft | topleft` |
| logoPosition | string | `bottomleft` | logo 位置 `bottomright | topright | bottomleft | topleft | topcenter | bottomcenter | leftcenter | rightcenter` |
| logoVisible | `boolean` | `true` | 是否显示 logo |
| antialias | `boolean` | `true` | 是否开启抗锯齿 |
| preserveDrawingBuffer | `boolean` | `false` | 是否保留缓冲区数据 |

View File

@ -78,7 +78,7 @@ Mapbox Map 地图配置项 [配置项](https://docs.mapbox.com/mapbox-gl-js/api/
| option | Type | Default | Description |
| --------------------- | --------- | ------------ | --------------------------------------------------------- |
| logoPosition | string | `bottomleft` | logo 位置 `bottomright | topright | bottomleft | topleft` |
| logoPosition | string | `bottomleft` | logo 位置 `bottomright | topright | bottomleft | topleft | topcenter | bottomcenter | leftcenter | rightcenter` |
| logoVisible | `boolean` | `true` | 是否显示 logo |
| antialias | `boolean` | `true` | 是否开启抗锯齿 |
| preserveDrawingBuffer | `boolean` | `false` | 是否保留缓冲区数据 |

View File

@ -84,8 +84,12 @@ L7 Logo 的显示位置 默认左下角
- bottomright
- topright
- bottomleft,
- topleft`
- bottomleft
- topleft
- topcenter
- bottomcenter
- leftcenter
- rightcenter
### logoVisible

View File

@ -86,8 +86,12 @@ L7 Logo 的显示位置 默认左下角
- bottomright
- topright
- bottomleft,
- topleft`
- bottomleft
- topleft
- topcenter
- bottomcenter
- leftcenter
- rightcenter
### logoVisible logo 是否可见