Skip to content

MapPopup 地图弹窗 ​

点击 HxMapMarkers 中的标记点时,弹出信息展示卡片。需要作为 HxMapMarkers 的子组件使用。

基本用法 ​

HxMapPopup 作为 HxMapMarkers 的子组件,点击标记点会自动弹出信息卡片。

基础弹窗


HxMapPopup 属性 ​

属性说明类型默认值
render自定义弹窗内容渲染函数(item: MapMarkerItem) => VNode | string-
offset弹窗偏移量[number, number][0, -10]
showClose是否显示关闭按钮booleantrue
multiple是否支持多弹窗同时显示booleanfalse

HxMapPopup 方法 ​

方法说明参数
show手动显示弹窗(item: MapMarkerItem, coord: [number, number])
hide手动隐藏弹窗-
destroy销毁所有弹窗-

Released under the MIT License.