From 15d77361d4e6c4c347159a5eb36c7f42091b0087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E5=BC=80=E5=8D=8A=E4=BA=A9=E5=9C=B0?= <2572468699@qq.com> Date: Sat, 22 Oct 2022 01:00:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E8=B7=AF=E5=86=B5?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zh/base/index.md | 237 ++++---- packages/components/map/index.vue | 894 +++++++++++++++--------------- 2 files changed, 587 insertions(+), 544 deletions(-) diff --git a/docs/zh/base/index.md b/docs/zh/base/index.md index 464e436e..a67dd2c9 100644 --- a/docs/zh/base/index.md +++ b/docs/zh/base/index.md @@ -20,7 +20,8 @@ import { Map } from 'vue3-baidu-map-gl' enableDoubleClickZoom: false, enableKeyboard: true, enablePinchToZoom: true, - enableAutoResize: true + enableAutoResize: true, + enableTraffic: true }) @@ -53,6 +54,10 @@ import { Map } from 'vue3-baidu-map-gl' 双击平滑缩放效果
+ +

地图类型:鼠标缩放 -
- -
- -
- -
- -
- -
- -
-
- 地图类型: -
-
- + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ 地图类型: + +
+
+ ``` @@ -171,6 +199,7 @@ import { Map } from 'vue3-baidu-map-gl' | zoom | 地图缩放级别 | `number` | `14` | | mapStyleId | 个性化地图样式 ID [详见](./custom) | `string` | | | mapStyleJson | 个性化地图样式 Json [详见](./custom) | `{featureType: string...}[]` | | +| enableTraffic | 是否启用路况图层 | `boolean` | `false` | | enableDragging | 启用地图拖拽 | `boolean` | `true` | | enableInertialDragging | 启用地图惯性拖拽 | `boolean` | `true` | | enableScrollWheelZoom | 允许地图可被鼠标滚轮缩放 | `boolean` | `false` | @@ -237,63 +266,63 @@ import { Map } from 'vue3-baidu-map-gl' ```html - + ``` diff --git a/packages/components/map/index.vue b/packages/components/map/index.vue index 417f7a67..a48c0603 100644 --- a/packages/components/map/index.vue +++ b/packages/components/map/index.vue @@ -1,452 +1,466 @@