chooseLocation(params: Object)
Requires:
MapKit≥1.0.6@ray-js/ray≥1.2.10
Platforms:
iOSAndroid
Description
Open the map to select a location
Parameters
| Property | Type | Required | Description | MapKit Since |
|---|---|---|---|---|
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 |
|---|---|---|---|
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