Skip to content

属性(props)

属性名说明类型默认值
v-model="poi"地址信息{
id:number | string ;
name:string;
iconPath:string;
position:array;
[key: string]:any;
}
width组件宽度string40vw
height组件高度string60vh
showLabel地图上的一些标注(如地名、道路名称等)的显示booleantrue
direction文本相对于图标的方向stringtop
textStyle文本样式的配置对象{
fontSize:number | string ;<br / > fillColor:string;
strokeColor:string;
strokeWidth:string;
backgroundColor:string;
padding:array;
borderRadius:number;
borderWidth:string;
borderColor:string;
}
{
fontSize:12
fillColor:window.theme.colors.white
backgroundColor: window.theme.colors.ccc
borderRadius:2
}
iconSize图标宽高[number, number][19, 32]
iconPath图标路径string//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png
mapCenter地图中心位置[number, number][102.832891, 24.880095]

方法(defineExpose)

方法名描述参数
pointClick用于点击图标位置获取相关的信息-