Appearance
地图搜索
TIP
仅mosowe-tdt
内置地图搜索页面。即uniapp原有的apiuni.chooseLocation
功能。
页面路径:/uni_modules/zo-tdt-render/tdt-location/tdt-location
如pages.json未配置需要自行添加,并且设置"navigationStyle": "custom"
,搜索仅会返回最多100条数据,有分页,手动输入搜索无分页。选择搜索的地址后,数据会存入缓存tdt-map-search-data
中,在需要的页面获取,之后移除缓存数据。
路径参数
名称 | 说明 |
---|---|
lng | 经度 |
lat | 维度 |
nextPath | 如传入,选择地址后,跳转至nextPath页面,否则回退 |