地图控件

<Amap>
<ControlBar />
</Amap>

Source Code

通用 Props

属性名类型备注
visibleboolean

通用 Events

事件名备注
show
hide

ControlBar Props

属性名类型备注
...继承的属性
positionControlPosition*1
offsetnumber[2]
showControlButtonboolean

HawkEye Props

属性名类型备注
...继承的属性
autoMoveboolean
showRectangleboolean
showButtonboolean
isOpenboolean
mapStylestring
layersAMap.Layer[]
widthstring
heightstring
offsetnumber[2]
borderStylestring
borderColorstring
borderRadiusstring
borderWidthstring
buttonSizestring

MapType Props

属性名类型备注
...继承的属性
defaultTypenumber
showTrafficboolean
showRoadboolean

Scale Props

属性名类型备注
...继承的属性
positionControlPosition*1
offsetnumber[2]

Toolbar Props

属性名类型备注
...继承的属性
positionControlPosition*1
offsetnumber[2]

其他

ControlPosition

type ControlPosition =
| 'LT'
| 'RT'
| 'LB'
| 'RB'
| {
left?: number | string;
top?: number | string;
right?: number | string;
bottom?: number | string;
};

Example

查看源代码: