chooseLocation
Requires:
MapKit≥1.0.6@ray-js/ray≥1.2.10
Platforms:
iOSAndroid
Method signature
chooseLocation(params: )Minimum SDK versions
- iOS
ThingSmartMapKitBizBundle - ≥ 5.2.0
- Android
com.thingclips.smart:thingsmart-bizbundle-mapkit - ≥ 5.2.0
Description
Open the map to select a location
Parameters
| Property | Type | Required | Description | MapKit Since | Minimum SDK versions |
|---|---|---|---|---|---|
latitude | number | No | Target latitude | - | — |
longitude | number | No | Target longitude | - | — |
title | string | No | Title | v7.4.0 |
|
detailText | string | No | Detailed description text | v7.4.0 |
|
complete | () => void | No | Completion callback (executed on both success and failure) | - | — |
success | (params: Object) => void | No | Callback on successful API call | - | — |
fail | (params: Object) => void | No | Failure callback | - | — |
success callback parameters
| Property | Type | Description | MapKit Since | Minimum SDK versions |
|---|---|---|---|---|
name | string | Location name | v3.0.5 | — |
address | string | Detailed address | v3.0.5 | — |
latitude | number | Latitude, floating-point number, range -90~90; negative values indicate south latitude. Uses the gcj02 coordinate system. | v3.0.5 | — |
longitude | number | Longitude, floating-point number, range -180~180; negative values indicate west longitude. Uses the gcj02 coordinate system. | v3.0.5 | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None