feat(GoogleMaps): Allow specify enableHighAccuracy option that attempt to get your location with highest accuracy (#410)
This commit is contained in:
parent
cf3f0f63c3
commit
43e8a6d3d2
@ -129,7 +129,7 @@ export class GoogleMap {
|
|||||||
* @return {Promise<MyLocation>}
|
* @return {Promise<MyLocation>}
|
||||||
*/
|
*/
|
||||||
@CordovaInstance()
|
@CordovaInstance()
|
||||||
getMyLocation(): Promise<MyLocation> {
|
getMyLocation(options?:MyLocationOptions): Promise<MyLocation> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -361,6 +361,13 @@ export interface MyLocation {
|
|||||||
bearing?: number;
|
bearing?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
export interface MyLocationOptions {
|
||||||
|
enableHighAccuracy?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user