1.0.0 • Published 1 year ago

xverse-components-house-layout-map v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

API

参数名类型说明默认值是否必填备注
styleCSSProperties-true-
mapUrlstring大地图背景图-true-
pointerUrlstring指针图片https://console-appasset-1258211750.file.myqcloud.com/editor/file/8ffc5bd5a2454b238155f429e1201145/48fd7ec0.pngfalse-
pointerWidthnumber指针 UI 宽度-true单位 px
pointerHeightnumber指针 UI 高度-true单位 px
vertexIPosition[]地图四个顶点坐标-false依次是左上、右上、右下、左下,长度必须为 4
virtualMapWidthnumber虚拟大地图的 UI 宽度-true单位 px
virtualMapHeightnumber虚拟大地图的 UI 高度-true单位 px
onExit() => void退出回调-false-
locationsIRealtimeMapLocationProps[]点位列表-false-
childrenReactNode-false-
backBtnStyleCSSProperties返回按钮样式-false-
currentLocationStyleCSSProperties当前位置样式-false-
currentLocationIconUrlstring当前位置 icon 图片https://console-appasset-1258211750.file.myqcloud.com/editor/file/8ffc5bd5a2454b238155f429e1201145/48fd7ec0.pngfalse-
commonLocationsStyleCSSProperties点位未选中时的通用样式-false优先级:子组件自定义配置 > 父组件通用配置,为简化配置,进行浅合并
commonActiveLocationStyleCSSProperties点位选中时的通用样式-false优先级:子组件自定义配置 > 父组件通用配置,为简化配置,进行浅合并
forwardBtnIButtonProps点击立即前往按钮-false如果需要自定义逻辑,无需配置
classNamestringcss 类名-false-
onClick() => void点击地图时的回调-false-
offsetDegreenumber旋转的角度-false单位度, 可选值:0 90 180 270 360
showCurrentLocationboolean是否展示当前位置
很没有必要呀 小绿点在哪里不是很明显么-false-
isScaledboolean是否等比缩放-false默认等比缩放,如果需要自定义缩放,请设置为 false; 设置成 false 的时候对美术提供的坐标顶点精确度要求高
isUseWidthScaleboolean是否使用宽度等比缩放比例 美术提供实际的地图的宽-false开启等比缩放时设置才有用
1.0.0

1 year ago