Skip to content

Commit

Permalink
style: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
yue1123 committed Dec 5, 2022
1 parent a21afac commit a76abdb
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/zh-CN/components/overlay/marker.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Marker } from 'vue3-baidu-map-gl'
```

## 组件示例

在地图上添加标记点,通过 icon 指定显示图标
:::demo 拖动图片试试
overlay/marker
Expand Down
1 change: 0 additions & 1 deletion docs/zh-CN/components/overlay/prism.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { Prism } from 'vue3-baidu-map-gl'
overlay/prism
:::


## 静态组件 Props

| 属性 | 说明 | 类型 | 默认值 |
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-CN/expand/mapvgl.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ expand/mapvgl/heatGridLayer
:::demo
expand/mapvgl/flyLineLayer
:::
:::
2 changes: 1 addition & 1 deletion docs/zh-CN/guide/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ lang: zh-CN

本章节将为你讲述如何配置 ak 与插件以及更换资源链接,并实现一个自定义插件

::: tip
::: tip
`ak``plugins``pluginsSourceLink`都支持两种来源(全局注册配置和组件 `props` 提供),当同时指定的时候,会优先就近原则,从组件 `props` 中获取。如果全局注册配置和组件 `props` 都提供了,则会尝试合并两个配置
:::

Expand Down
5 changes: 3 additions & 2 deletions docs/zh-CN/guide/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
## 环境支持

### 组件库

Vue3 BaiduMap GL 可以在支持 [ES2018](https://caniuse.com/?feats=mdn-javascript_builtins_regexp_dotall,mdn-javascript_builtins_regexp_lookbehind_assertion,mdn-javascript_builtins_regexp_named_capture_groups,mdn-javascript_builtins_regexp_property_escapes,mdn-javascript_builtins_symbol_asynciterator,mdn-javascript_functions_method_definitions_async_generator_methods,mdn-javascript_grammar_template_literals_template_literal_revision,mdn-javascript_operators_destructuring_rest_in_objects,mdn-javascript_operators_spread_spread_in_destructuring,promise-finally) 的浏览器上运行。 如果您确实需要支持旧版本的浏览器,请自行添加 [Babel](https://babeljs.io/) 和相应的 Polyfill 。

由于 Vue 3 不再支持 IE11,Vue3 BaiduMap GL 也不再支持 IE 浏览器。
| ![IE](https://cdn.jsdelivr.net/npm/@browser-logos/edge/edge_32x32.png) | ![Firefox](https://cdn.jsdelivr.net/npm/@browser-logos/firefox/firefox_32x32.png) | ![Chrome](https://cdn.jsdelivr.net/npm/@browser-logos/chrome/chrome_32x32.png) | ![Safari](https://cdn.jsdelivr.net/npm/@browser-logos/safari/safari_32x32.png) |
| ---------------------------------------------------------------------- | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
| Edge ≥ 79 | Firefox ≥ 78 | Chrome ≥ 64 | Safari ≥ 12 |

### Baidu Map GL Api 兼容性

JavaScript API GL v1.0 基于 WebGL 开发,对于用户的浏览器环境有兼容性要求。需要完整支持 WebGL 的现代浏览器来支持渲染。对于 WebGL 支持欠佳的浏览器会降级为 Canvas 绘制,若仍然存在兼容性问题,则会降级到瓦片图渲染,确保不同浏览器环境的用户都可以完成地图的基本渲染。


## 版本

Vue3 BaiduMap GL 目前还处于快速开发迭代中。
Expand Down Expand Up @@ -72,4 +73,4 @@ pnpm add vue3-baidu-map-gl
[在线演示](https://codepen.io/yue1123/pen/oNyQWeP)

<iframe allow="accelerometer; camera; encrypted-media; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write;" allowfullscreen="true" allowpaymentrequest="true" height="500" style="width: 100%;" scrolling="no" title="Vue3 BaiduMap GL" src="https://codepen.io/yue1123/embed/oNyQWeP?default-tab=html%2Cresult&theme-id=light" frameborder="no" loading="lazy">
</iframe>
</iframe>
2 changes: 1 addition & 1 deletion docs/zh-CN/guide/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

## License

[MIT licenses](https://opensource.org/licenses/MIT)
[MIT licenses](https://opensource.org/licenses/MIT)
2 changes: 1 addition & 1 deletion docs/zh-CN/hooks/useBrowserLocation.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const { get, location, isLoading, isError, status } = useBrowserLocation(options
| 属性 | 描述 | 类型 | 默认值 |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | --------- |
| enableSDKLocation | 是否启用安卓定位 SDK 辅助定位,适用于安卓 WebView 页面,[详见](https://lbsyun.baidu.com/index.php?title=android-locsdk/guide/addition-func/assistant-h5) | `boolean` | `false` |
| enableHighAccuracy | 是否要求浏览器获取最佳效果,同[浏览器定位](https://developer.mozilla.org/zh-CN-CN/docs/Web/API/Geolocation/getCurrentPosition)接口参数 | `boolean` | `false` |
| enableHighAccuracy | 是否要求浏览器获取最佳效果,同[浏览器定位](https://developer.mozilla.org/zh-CN-CN/docs/Web/API/Geolocation/getCurrentPosition)接口参数 | `boolean` | `false` |
| timeout | 超时时间 | `number` | `10000` |
| maximumAge | 允许返回指定事件内的缓存结果,单位为毫秒。如果为`0`,则每次请求都获取最新的定位结果。默认为`10`分钟 | `number` | `600,000` |

Expand Down
3 changes: 3 additions & 0 deletions docs/zh-CN/hooks/usePointGeocoder.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ import { usePointGeocoder } from 'vue3-baidu-map-gl'
```

## 示例

使用坐标点对象作为 `get` 方法参数解析单个坐标点
:::demo 鼠标点击地图选择坐标点解析
hooks/usePointGeocoder/index
:::

## 批量解析坐标点

使用坐标点对象数组作为 `get` 方法参数批量解析坐标点
:::demo
hooks/usePointGeocoder/batch
:::

## 用法

```ts
Expand Down
1 change: 1 addition & 0 deletions docs/zh-CN/hooks/useTrackAnimation.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { useTrackAnimation } from 'vue3-baidu-map-gl'
:::demo class="p-bottom"
hooks/useTrackAnimation
:::

## 用法

```ts
Expand Down
1 change: 1 addition & 0 deletions docs/zh-CN/hooks/useViewAnimation.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { useViewAnimation } from 'vue3-baidu-map-gl'
:::demo class="p-bottom"
hooks/useViewAnimation
:::

## 用法

```ts
Expand Down

0 comments on commit a76abdb

Please sign in to comment.