mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
feat(GoogleMaps): Allow specify enableHighAccuracy option that attempt to get your location with highest accuracy (#410)
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user