mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-20 01:22:52 +08:00
Merge branch 'master' of https://github.com/driftyco/ionic-native
This commit is contained in:
commit
4ce3b7a946
@ -38,12 +38,12 @@ export const GoogleMapsAnimation = {
|
||||
* @description This plugin uses the native Google Maps SDK
|
||||
* @usage
|
||||
* ```
|
||||
* import {GoogleMaps, GoogleMapsEvent} from 'ionic-native';
|
||||
* import {GoogleMap, GoogleMapsEvent} from 'ionic-native';
|
||||
*
|
||||
* ...
|
||||
*
|
||||
* // somewhere in your component
|
||||
* let map = new GoogleMaps('elementID');
|
||||
* let map = new GoogleMap('elementID');
|
||||
*
|
||||
* map.on(GoogleMapsEvent.MAP_READY).subscribe(() => console.log("Map is ready!"));
|
||||
* ```
|
||||
@ -166,7 +166,7 @@ export class GoogleMap {
|
||||
@CordovaInstance({
|
||||
sync: true
|
||||
})
|
||||
animateCamera(cameraPosition: CameraPosition): void {
|
||||
animateCamera(animateCameraOptions: AnimateCameraOptions): void {
|
||||
}
|
||||
|
||||
@CordovaInstance({
|
||||
@ -353,26 +353,20 @@ export class GoogleMap {
|
||||
|
||||
}
|
||||
export interface AnimateCameraOptions {
|
||||
target?: string;
|
||||
target?: GoogleMapsLatLng;
|
||||
tilt?: number;
|
||||
zoom?: number;
|
||||
bearing?: number;
|
||||
duration?: number;
|
||||
}
|
||||
export interface CameraPosition {
|
||||
target?: {
|
||||
lat?: string;
|
||||
lng?: string;
|
||||
};
|
||||
target?: GoogleMapsLatLng;
|
||||
zoom?: number;
|
||||
tilt?: number;
|
||||
bearing?: number;
|
||||
}
|
||||
export interface MyLocation {
|
||||
latLng?: {
|
||||
lat?: string;
|
||||
lng?: string;
|
||||
};
|
||||
latLng?: GoogleMapsLatLng;
|
||||
speed?: number;
|
||||
time?: string;
|
||||
bearing?: number;
|
||||
@ -993,7 +987,7 @@ export class GoogleMapsKmlOverlay {
|
||||
export class GoogleMapsLatLng {
|
||||
private _objectInstance: any;
|
||||
|
||||
constructor(public lat: string, public lng: string) {
|
||||
constructor(public lat: number, public lng: number) {
|
||||
this._objectInstance = new plugin.google.maps.LatLng(lat, lng);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user