vue-baidu-map-api-v3 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +95 -0
- package/README.zh.md +97 -0
- package/components/base/bindEvent.js +11 -0
- package/components/base/events.js +120 -0
- package/components/base/factory.js +63 -0
- package/components/base/mixins/abstract.js +13 -0
- package/components/base/mixins/common.js +81 -0
- package/components/base/util.js +6 -0
- package/components/context-menu/Item.vue +62 -0
- package/components/context-menu/Menu.vue +52 -0
- package/components/controls/CityList.vue +43 -0
- package/components/controls/Control.vue +37 -0
- package/components/controls/Copyright.vue +52 -0
- package/components/controls/Geolocation.vue +59 -0
- package/components/controls/MapType.vue +39 -0
- package/components/controls/Navigation.vue +55 -0
- package/components/controls/OverviewMap.vue +56 -0
- package/components/controls/Panorama.vue +29 -0
- package/components/controls/Scale.vue +36 -0
- package/components/extra/CurveLine.vue +101 -0
- package/components/extra/Heatmap.vue +78 -0
- package/components/extra/Lushu.vue +125 -0
- package/components/extra/MarkerClusterer.vue +93 -0
- package/components/index.js +98 -0
- package/components/layers/Tile.vue +53 -0
- package/components/layers/Traffic.vue +34 -0
- package/components/map/Map.vue +302 -0
- package/components/map/MapView.vue +9 -0
- package/components/others/AutoComplete.vue +70 -0
- package/components/others/Boundary.vue +60 -0
- package/components/overlays/Circle.vue +170 -0
- package/components/overlays/Ground.vue +65 -0
- package/components/overlays/Icon.vue +0 -0
- package/components/overlays/InfoWindow.vue +137 -0
- package/components/overlays/Label.vue +99 -0
- package/components/overlays/Marker.vue +163 -0
- package/components/overlays/Overlay.vue +55 -0
- package/components/overlays/PointCollection.vue +76 -0
- package/components/overlays/Polygon.vue +105 -0
- package/components/overlays/Polyline.vue +107 -0
- package/components/overlays/Symblo.vue +0 -0
- package/components/search/Bus.vue +102 -0
- package/components/search/Driving.vue +177 -0
- package/components/search/LocalSearch.vue +152 -0
- package/components/search/Transit.vue +126 -0
- package/components/search/Walking.vue +115 -0
- package/index.js +1 -0
- package/package.json +104 -0
- package/types/auto-complete.d.ts +22 -0
- package/types/base/base-control.d.ts +14 -0
- package/types/base/common.d.ts +171 -0
- package/types/base/component.d.ts +5 -0
- package/types/boundary.d.ts +41 -0
- package/types/bus.d.ts +28 -0
- package/types/circle.d.ts +47 -0
- package/types/city-list.d.ts +3 -0
- package/types/control.d.ts +3 -0
- package/types/copyright.d.ts +7 -0
- package/types/curve-line.d.ts +37 -0
- package/types/driving.d.ts +48 -0
- package/types/geolocation.d.ts +18 -0
- package/types/ground.d.ts +25 -0
- package/types/heatmap.d.ts +29 -0
- package/types/index.d.ts +93 -0
- package/types/info-window.d.ts +52 -0
- package/types/item.d.ts +26 -0
- package/types/label.d.ts +36 -0
- package/types/local-search.d.ts +63 -0
- package/types/lushu.d.ts +54 -0
- package/types/map-type.d.ts +13 -0
- package/types/map-view.d.ts +4 -0
- package/types/map.d.ts +88 -0
- package/types/marker-clusterer.d.ts +26 -0
- package/types/marker.d.ts +79 -0
- package/types/menu.d.ts +8 -0
- package/types/navigation.d.ts +18 -0
- package/types/overlay.d.ts +17 -0
- package/types/overview-map.d.ts +14 -0
- package/types/panorama.d.ts +3 -0
- package/types/point-collection.d.ts +27 -0
- package/types/polygon.d.ts +47 -0
- package/types/polyline.d.ts +43 -0
- package/types/scale.d.ts +3 -0
- package/types/tile.d.ts +22 -0
- package/types/traffic.d.ts +9 -0
- package/types/transit.d.ts +40 -0
- package/types/tsconfig.json +17 -0
- package/types/walking.d.ts +36 -0
package/types/map.d.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { BaiduMapComponent } from './base/component'
|
|
2
|
+
import { MapType, Point, MapStyle } from './base/common'
|
|
3
|
+
|
|
4
|
+
export declare class Map extends BaiduMapComponent {
|
|
5
|
+
/**
|
|
6
|
+
* 百度地图开发者平台申请的密钥,仅在局部注册组件时声明。
|
|
7
|
+
*/
|
|
8
|
+
ak: string
|
|
9
|
+
/**
|
|
10
|
+
* 定位, 可使用如“广州市海珠区”的地区字符串,也可以使用对象如 {lng: 116.404, lat: 39.915} 表示经纬度
|
|
11
|
+
*/
|
|
12
|
+
center: Point | string
|
|
13
|
+
/**
|
|
14
|
+
* 缩放等级
|
|
15
|
+
*/
|
|
16
|
+
zoom: number
|
|
17
|
+
/**
|
|
18
|
+
* 最大缩放级别
|
|
19
|
+
*/
|
|
20
|
+
maxZoom: number
|
|
21
|
+
/**
|
|
22
|
+
* 最小缩放级别
|
|
23
|
+
*/
|
|
24
|
+
minZoom: number
|
|
25
|
+
/**
|
|
26
|
+
* 高分屏模式 该项仅在地图组件挂载时加载一次
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
29
|
+
highResolution: boolean
|
|
30
|
+
/**
|
|
31
|
+
* 允许点击 该项仅在地图组件挂载时加载一次
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
mapClick: boolean
|
|
35
|
+
/**
|
|
36
|
+
* 地图类型
|
|
37
|
+
* @default 'BMAP_NORMAL_MAP'
|
|
38
|
+
*/
|
|
39
|
+
mapType: MapType
|
|
40
|
+
/**
|
|
41
|
+
* 允许拖拽
|
|
42
|
+
* @default true
|
|
43
|
+
*/
|
|
44
|
+
dragging: boolean
|
|
45
|
+
/**
|
|
46
|
+
* 允许鼠标滚轮缩放
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
scrollWheelZoom: boolean
|
|
50
|
+
/**
|
|
51
|
+
* 允许双击缩放
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
54
|
+
doubleClickZoom: boolean
|
|
55
|
+
/**
|
|
56
|
+
* 允许键盘操作
|
|
57
|
+
* @default true
|
|
58
|
+
*/
|
|
59
|
+
keyboard: boolean
|
|
60
|
+
/**
|
|
61
|
+
* 允许惯性拖拽
|
|
62
|
+
* @default true
|
|
63
|
+
*/
|
|
64
|
+
inertialDragging: boolean
|
|
65
|
+
/**
|
|
66
|
+
* 允许无级缩放
|
|
67
|
+
* @default true
|
|
68
|
+
*/
|
|
69
|
+
continuousZoom: boolean
|
|
70
|
+
/**
|
|
71
|
+
* 允许双指缩放
|
|
72
|
+
* @default true
|
|
73
|
+
*/
|
|
74
|
+
pinchToZoom: boolean
|
|
75
|
+
/**
|
|
76
|
+
* 允许自适应容器尺寸
|
|
77
|
+
* @default true
|
|
78
|
+
*/
|
|
79
|
+
autoResize: boolean
|
|
80
|
+
/**
|
|
81
|
+
* 自定义主题
|
|
82
|
+
*/
|
|
83
|
+
mapStyle: MapStyle
|
|
84
|
+
/**
|
|
85
|
+
* 自定义主题的 StyleJSON alias
|
|
86
|
+
*/
|
|
87
|
+
theme: any[]
|
|
88
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaiduMapComponent } from './base/component'
|
|
2
|
+
import { Point, Size, Icon, Animation } from './base/common'
|
|
3
|
+
|
|
4
|
+
export declare class MarkerClusterer extends BaiduMapComponent {
|
|
5
|
+
/**
|
|
6
|
+
* 网格大小
|
|
7
|
+
*/
|
|
8
|
+
gridSize: Size
|
|
9
|
+
/**
|
|
10
|
+
* 聚合的最大缩放级别
|
|
11
|
+
*/
|
|
12
|
+
maxZoom: number
|
|
13
|
+
/**
|
|
14
|
+
* 单个聚合的最小数量
|
|
15
|
+
*/
|
|
16
|
+
minClusterSize: Size
|
|
17
|
+
/**
|
|
18
|
+
* 聚合的样式风格集合
|
|
19
|
+
*/
|
|
20
|
+
styles: any[]
|
|
21
|
+
/**
|
|
22
|
+
* 单个聚合的落脚点是否是聚合内所有标记的平均中心
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
averageCenter: boolean
|
|
26
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { BaiduMapComponent } from './base/component'
|
|
2
|
+
import { Point, Size, Icon, Animation } from './base/common'
|
|
3
|
+
|
|
4
|
+
interface Label {
|
|
5
|
+
content: string
|
|
6
|
+
opts: {
|
|
7
|
+
offset: Size
|
|
8
|
+
position: Point
|
|
9
|
+
enableMassClear: boolean
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export declare class Marker extends BaiduMapComponent {
|
|
14
|
+
/**
|
|
15
|
+
* 标注的位置
|
|
16
|
+
*/
|
|
17
|
+
position: Point
|
|
18
|
+
/**
|
|
19
|
+
* 标注的位置偏移值
|
|
20
|
+
*/
|
|
21
|
+
offset: Size
|
|
22
|
+
/**
|
|
23
|
+
* 标注所用的图标对象
|
|
24
|
+
*/
|
|
25
|
+
icon: Icon
|
|
26
|
+
/**
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
29
|
+
massClear: boolean
|
|
30
|
+
/**
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
dragging: boolean
|
|
34
|
+
/**
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
clicking: boolean
|
|
38
|
+
/**
|
|
39
|
+
* 拖拽标注时,标注是否开启离开地图表面效果
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
raiseOnDrag: boolean
|
|
43
|
+
/**
|
|
44
|
+
* 拖拽标注时的鼠标指针样式。此属性值需遵循CSS的cursor属性规范
|
|
45
|
+
*/
|
|
46
|
+
draggingCursor: string
|
|
47
|
+
/**
|
|
48
|
+
* 旋转角度
|
|
49
|
+
*/
|
|
50
|
+
rotation: number
|
|
51
|
+
/**
|
|
52
|
+
* 阴影图标
|
|
53
|
+
*/
|
|
54
|
+
shadow: Icon
|
|
55
|
+
/**
|
|
56
|
+
* 鼠标移到marker上的显示内容
|
|
57
|
+
*/
|
|
58
|
+
title: string
|
|
59
|
+
/**
|
|
60
|
+
* 为标注添加文本标注
|
|
61
|
+
*/
|
|
62
|
+
label: Label
|
|
63
|
+
/**
|
|
64
|
+
* 动画效果
|
|
65
|
+
*/
|
|
66
|
+
animation: Animation
|
|
67
|
+
/**
|
|
68
|
+
* 将标注置于其他标注之上。默认情况下,纬度较低的标注会覆盖在纬度较高的标注之上,从而形成一种立体效果。
|
|
69
|
+
* 通过此方法可使某个标注覆盖在其他所有标注之上。
|
|
70
|
+
* 注意:如果在多个标注对象上调用此方法,则这些标注依旧按照纬度产生默认的覆盖效果。
|
|
71
|
+
* @default false
|
|
72
|
+
*/
|
|
73
|
+
top: boolean
|
|
74
|
+
/**
|
|
75
|
+
* 设置覆盖物的zIndex
|
|
76
|
+
* @default 0
|
|
77
|
+
*/
|
|
78
|
+
zIndex: number
|
|
79
|
+
}
|
package/types/menu.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NavigationControlType } from './base/common'
|
|
2
|
+
import { BaseControl } from './base/base-control'
|
|
3
|
+
|
|
4
|
+
export declare class Navigation extends BaseControl {
|
|
5
|
+
/**
|
|
6
|
+
* 平移缩放控件的类型
|
|
7
|
+
*/
|
|
8
|
+
type: NavigationControlType
|
|
9
|
+
/**
|
|
10
|
+
* 是否显示级别提示信息
|
|
11
|
+
*/
|
|
12
|
+
showZoomInfo: boolean
|
|
13
|
+
/**
|
|
14
|
+
* 控件是否集成定位功能
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
enableGeolocation: boolean
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaiduMapComponent } from './base/component'
|
|
2
|
+
|
|
3
|
+
type MapPanes =
|
|
4
|
+
'floatPane' // 信息窗口所在的容器
|
|
5
|
+
| 'markerMouseTarget' // 标注点击区域所在的容器
|
|
6
|
+
| 'floatShadow' // 信息窗口阴影所在的容器
|
|
7
|
+
| 'labelPane' // 文本标注所在的容器
|
|
8
|
+
| 'markerPane' // 标注图标所在的容器
|
|
9
|
+
| 'markerShadow' // 标注阴影所在的容器
|
|
10
|
+
| 'mapPane' // 折线、多边形等矢量图形所在的容器
|
|
11
|
+
|
|
12
|
+
export declare class Overlay extends BaiduMapComponent {
|
|
13
|
+
/**
|
|
14
|
+
* 自定义覆盖物所在容器。
|
|
15
|
+
*/
|
|
16
|
+
pane: MapPanes
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseControl } from './base/base-control'
|
|
2
|
+
import { Size } from './base/common'
|
|
3
|
+
|
|
4
|
+
export declare class OverviewMap extends BaseControl {
|
|
5
|
+
/**
|
|
6
|
+
* 缩略地图控件的大小
|
|
7
|
+
*/
|
|
8
|
+
size: Size
|
|
9
|
+
/**
|
|
10
|
+
* 缩略地图添加到地图后的开合状态
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
isOpen: boolean
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaiduMapComponent } from './base/component'
|
|
2
|
+
import { Point, ShapeType, SizeType } from './base/common'
|
|
3
|
+
|
|
4
|
+
export declare class PointCollection extends BaiduMapComponent {
|
|
5
|
+
/**
|
|
6
|
+
* 设置要在地图上展示的点坐标集合
|
|
7
|
+
* @default []
|
|
8
|
+
*/
|
|
9
|
+
points: Point[]
|
|
10
|
+
/**
|
|
11
|
+
* 海量点的预设形状
|
|
12
|
+
* @default 'BMAP_POINT_SHAPE_CIRCLE'
|
|
13
|
+
*/
|
|
14
|
+
shape: ShapeType
|
|
15
|
+
/**
|
|
16
|
+
* 海量点的颜色,默认为'#fa937e',同时支持颜色字符串,如'red';
|
|
17
|
+
* 哈希字符串'#000000';rgb字符串,如'rgb(0,0,0)’;
|
|
18
|
+
* rgba字符串,如'rgb(255,0,0,0.1)';hsl字符串,如'hsl(0,100%,50%)';
|
|
19
|
+
* hsla字符串,如'hsla(0,100%,50%,0.4)'
|
|
20
|
+
*/
|
|
21
|
+
color: string
|
|
22
|
+
/**
|
|
23
|
+
* 海量点的预设尺寸
|
|
24
|
+
* @default 'BMAP_POINT_SIZE_NORMAL'
|
|
25
|
+
*/
|
|
26
|
+
size: SizeType
|
|
27
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BaiduMapComponent } from './base/component'
|
|
2
|
+
import { Point } from './base/common'
|
|
3
|
+
|
|
4
|
+
export declare class Polygon extends BaiduMapComponent {
|
|
5
|
+
/**
|
|
6
|
+
* 设置多边型的点数组
|
|
7
|
+
* @default []
|
|
8
|
+
*/
|
|
9
|
+
path: Point[]
|
|
10
|
+
/**
|
|
11
|
+
* 设置多边型的边线颜色,参数为合法的CSS颜色值
|
|
12
|
+
*/
|
|
13
|
+
strokeColor: string
|
|
14
|
+
/**
|
|
15
|
+
* 设置多边形边线的宽度,取值为大于等于1的整数
|
|
16
|
+
*/
|
|
17
|
+
strokeWeight: number
|
|
18
|
+
/**
|
|
19
|
+
* 设置多边形的边线透明度,取值范围0 - 1
|
|
20
|
+
*/
|
|
21
|
+
strokeOpacity: number
|
|
22
|
+
/**
|
|
23
|
+
* @default 'solid'
|
|
24
|
+
*/
|
|
25
|
+
strokeStyle: 'solid' | 'dashed'
|
|
26
|
+
/**
|
|
27
|
+
* 设置多边形的填充颜色,参数为合法的CSS颜色值。
|
|
28
|
+
* 当参数为空字符串时,折线覆盖物将没有填充效果
|
|
29
|
+
*/
|
|
30
|
+
fillColor: string
|
|
31
|
+
/**
|
|
32
|
+
* 设置多边形的填充透明度,取值范围0 - 1
|
|
33
|
+
*/
|
|
34
|
+
fillOpacity: number
|
|
35
|
+
/**
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
massClear: boolean
|
|
39
|
+
/**
|
|
40
|
+
* @default true
|
|
41
|
+
*/
|
|
42
|
+
clicking: boolean
|
|
43
|
+
/**
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
editing: boolean
|
|
47
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { BaiduMapComponent } from './base/component'
|
|
2
|
+
import { IconSequence, Point } from './base/common'
|
|
3
|
+
|
|
4
|
+
export declare class Polyline extends BaiduMapComponent {
|
|
5
|
+
/**
|
|
6
|
+
* 设置折线的点数组
|
|
7
|
+
* @default []
|
|
8
|
+
*/
|
|
9
|
+
path: Point[]
|
|
10
|
+
/**
|
|
11
|
+
* 设置线颜色,参数为合法的CSS颜色值
|
|
12
|
+
*/
|
|
13
|
+
strokeColor: string
|
|
14
|
+
/**
|
|
15
|
+
* 设置线的宽度,取值为大于等于1的整数
|
|
16
|
+
*/
|
|
17
|
+
strokeWeight: number
|
|
18
|
+
/**
|
|
19
|
+
* 设置线透明度,取值范围0 - 1
|
|
20
|
+
*/
|
|
21
|
+
strokeOpacity: number
|
|
22
|
+
/**
|
|
23
|
+
* @default 'solid'
|
|
24
|
+
*/
|
|
25
|
+
strokeStyle: 'solid' | 'dashed'
|
|
26
|
+
/**
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
29
|
+
massClear: boolean
|
|
30
|
+
/**
|
|
31
|
+
* @default true
|
|
32
|
+
*/
|
|
33
|
+
clicking: boolean
|
|
34
|
+
/**
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
editing: boolean
|
|
38
|
+
/**
|
|
39
|
+
* 设置折线的点数组
|
|
40
|
+
* @default []
|
|
41
|
+
*/
|
|
42
|
+
icons: IconSequence[]
|
|
43
|
+
}
|
package/types/scale.d.ts
ADDED
package/types/tile.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaiduMapComponent } from './base/component'
|
|
2
|
+
import { Copyright } from './base/common'
|
|
3
|
+
|
|
4
|
+
export declare class Tile extends BaiduMapComponent {
|
|
5
|
+
/**
|
|
6
|
+
* 是否使用了带有透明信息的PNG。
|
|
7
|
+
* 由于IE6不支持PNG透明,因此需要特殊处理
|
|
8
|
+
*/
|
|
9
|
+
transparentPng: boolean
|
|
10
|
+
/**
|
|
11
|
+
* 指定图块网址模板,该模板可以针对每个图块请求而展开,
|
|
12
|
+
* 以根据现有的图块坐标系引用唯一的图块。模板的格式应该为:http://yourhost/tile?x={X}&y={Y}&z={Z}.png
|
|
13
|
+
* 其中X和Y分别指纬度和经度图块坐标,Z指缩放级别,比如: http://yourhost/tile?x=3&y=27&z=5.png 如果您没有提供图块网址模板,
|
|
14
|
+
* 您需要实现TileLayer.getTileUrl()抽象方法
|
|
15
|
+
*/
|
|
16
|
+
tileUrlTemplate: string
|
|
17
|
+
/**
|
|
18
|
+
* 地图图层的版权信息
|
|
19
|
+
*/
|
|
20
|
+
copyright: Copyright
|
|
21
|
+
zIndex: number
|
|
22
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BaiduMapComponent } from './base/component'
|
|
2
|
+
import { Point, LocalResultPoi, TransitPolicy } from './base/common'
|
|
3
|
+
|
|
4
|
+
export declare class Transit extends BaiduMapComponent {
|
|
5
|
+
/**
|
|
6
|
+
* location表示检索区域,其类型可为空、坐标点或城市名称的字符串。当参数为空时,
|
|
7
|
+
* 检索位置由当前地图中心点确定,且搜索结果的标注将自动加载到地图上,并支持调整地图视野层级;
|
|
8
|
+
* 当参数为坐标时,检索位置由该点所在位置确定;当参数为城市名称时,检索会在该城市内进行。
|
|
9
|
+
*/
|
|
10
|
+
location: string | Point
|
|
11
|
+
/**
|
|
12
|
+
* 起点,参数可以是关键字、坐标点(自1.1版本支持)或者LocalSearchPoi实例。
|
|
13
|
+
*/
|
|
14
|
+
start: string | Point | LocalResultPoi
|
|
15
|
+
/**
|
|
16
|
+
* 终点,参数可以是关键字、坐标点(自1.1版本支持)或者LocalSearchPoi实例。
|
|
17
|
+
*/
|
|
18
|
+
end: string | Point | LocalResultPoi
|
|
19
|
+
/**
|
|
20
|
+
* 公交导航的策略参数
|
|
21
|
+
*/
|
|
22
|
+
policy: TransitPolicy
|
|
23
|
+
/**
|
|
24
|
+
* 是否选展现检索结果面板。
|
|
25
|
+
* @default true
|
|
26
|
+
*/
|
|
27
|
+
panel: boolean
|
|
28
|
+
/**
|
|
29
|
+
* 设置每页容量,取值范围:1 - 100,对于多关键字检索,每页容量表示每个关键字返回结果的数量(例如当用2个关键字检索时,实际结果数量范围为:2 - 200)。此值只对下一次检索有效
|
|
30
|
+
*/
|
|
31
|
+
pageCapacity: number
|
|
32
|
+
/**
|
|
33
|
+
* 检索结束后是否自动调整地图视野。
|
|
34
|
+
*/
|
|
35
|
+
autoViewport: boolean
|
|
36
|
+
/**
|
|
37
|
+
* 是否选择第一个检索结果。
|
|
38
|
+
*/
|
|
39
|
+
selectFirstResult: boolean
|
|
40
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { BaiduMapComponent } from './base/component'
|
|
2
|
+
import { Point, LocalResultPoi, TransitPolicy } from './base/common'
|
|
3
|
+
|
|
4
|
+
export declare class Walking extends BaiduMapComponent {
|
|
5
|
+
/**
|
|
6
|
+
* location表示检索区域,其类型可为空、坐标点或城市名称的字符串。当参数为空时,
|
|
7
|
+
* 检索位置由当前地图中心点确定,且搜索结果的标注将自动加载到地图上,并支持调整地图视野层级;
|
|
8
|
+
* 当参数为坐标时,检索位置由该点所在位置确定;当参数为城市名称时,检索会在该城市内进行。
|
|
9
|
+
*/
|
|
10
|
+
location: string | Point
|
|
11
|
+
/**
|
|
12
|
+
* 起点,参数可以是关键字、坐标点(自1.1版本支持)或者LocalSearchPoi实例。
|
|
13
|
+
*/
|
|
14
|
+
start: string | Point | LocalResultPoi
|
|
15
|
+
/**
|
|
16
|
+
* 终点,参数可以是关键字、坐标点(自1.1版本支持)或者LocalSearchPoi实例。
|
|
17
|
+
*/
|
|
18
|
+
end: string | Point | LocalResultPoi
|
|
19
|
+
/**
|
|
20
|
+
* 是否选展现检索结果面板。
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
panel: boolean
|
|
24
|
+
/**
|
|
25
|
+
* 设置每页容量,取值范围:1 - 100,对于多关键字检索,每页容量表示每个关键字返回结果的数量(例如当用2个关键字检索时,实际结果数量范围为:2 - 200)。此值只对下一次检索有效
|
|
26
|
+
*/
|
|
27
|
+
pageCapacity: number
|
|
28
|
+
/**
|
|
29
|
+
* 检索结束后是否自动调整地图视野。
|
|
30
|
+
*/
|
|
31
|
+
autoViewport: boolean
|
|
32
|
+
/**
|
|
33
|
+
* 是否选择第一个检索结果。
|
|
34
|
+
*/
|
|
35
|
+
selectFirstResult: boolean
|
|
36
|
+
}
|