feat(GoogleMaps): Allow specify enableHighAccuracy option that attempt to get your location with highest accuracy (#410)

This commit is contained in:
Kessiler 2016-08-09 02:37:16 -03:00 committed by Ibrahim Hadeed
parent cf3f0f63c3
commit 43e8a6d3d2

View File

@ -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
*/