Skip to content

Commit

Permalink
feat(GoogleMaps): Allow specify enableHighAccuracy option that attemp…
Browse files Browse the repository at this point in the history
…t to get your location with highest accuracy (#410)
  • Loading branch information
kessiler authored and ihadeed committed Aug 9, 2016
1 parent cf3f0f6 commit 43e8a6d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/plugins/googlemaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class GoogleMap {
* @return {Promise<MyLocation>}
*/
@CordovaInstance()
getMyLocation(): Promise<MyLocation> {
getMyLocation(options?:MyLocationOptions): Promise<MyLocation> {
return;
}

Expand Down Expand Up @@ -361,6 +361,13 @@ export interface MyLocation {
bearing?: number;
}

/**
* @private
*/
export interface MyLocationOptions {
enableHighAccuracy?: boolean;
}

/**
* @private
*/
Expand Down

0 comments on commit 43e8a6d

Please sign in to comment.