mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
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>}
|
||||
*/
|
||||
@CordovaInstance()
|
||||
getMyLocation(): Promise<MyLocation> {
|
||||
getMyLocation(options?:MyLocationOptions): Promise<MyLocation> {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -361,6 +361,13 @@ export interface MyLocation {
|
||||
bearing?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export interface MyLocationOptions {
|
||||
enableHighAccuracy?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user