openMapAppLocation(params: Object)
Requires:
MapKit≥2.1.0@ray-js/ray≥1.2.10
Platforms:
iOSAndroid
Description
View location in a third-party map
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
latitude | number | Yes | Latitude, range -90 to 90; negative values indicate south |
longitude | number | Yes | Longitude, range -180 to 180; negative values indicate west |
name | string | Yes | Location name |
address | string | Yes | Detailed address |
mapType | string | Yes | Map type. Currently supported: BMK: Baidu Maps, MA: Amap, TENCENT: Tencent Maps, Google: Google Maps |
complete | () => void | No | Completion callback (executed on both success and failure) |
success | () => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None