fix(googlemaps): add missing properties

should fix #642
This commit is contained in:
Ibby 2016-10-05 20:43:57 -04:00
parent 1ab0d2f915
commit 72a694a5e1

View File

@ -1,4 +1,4 @@
import { Cordova, CordovaInstance, Plugin } from './plugin';
import {Cordova, CordovaInstance, Plugin, InstanceProperty} from './plugin';
import { Observable } from 'rxjs/Observable';
@ -851,7 +851,10 @@ export class GoogleMapsKmlOverlay {
export class GoogleMapsLatLngBounds {
private _objectInstance: any;
constructor(public southwestOrArrayOfLatLng: GoogleMapsLatLng | GoogleMapsLatLng[], public northeast?: GoogleMapsLatLng) {
@InstanceProperty get northeast(): GoogleMapsLatLng { return; }
@InstanceProperty get southwest(): GoogleMapsLatLng { return; }
constructor(southwestOrArrayOfLatLng: GoogleMapsLatLng | GoogleMapsLatLng[], northeast?: GoogleMapsLatLng) {
let args = !!northeast ? [southwestOrArrayOfLatLng, northeast] : southwestOrArrayOfLatLng;
this._objectInstance = new plugin.google.maps.LatLngBounds(args);
}
@ -878,7 +881,10 @@ export class GoogleMapsLatLngBounds {
export class GoogleMapsLatLng {
private _objectInstance: any;
constructor(public lat: number, public lng: number) {
@InstanceProperty get lat(): number { return; }
@InstanceProperty get lng(): number { return; }
constructor(lat: number, lng: number) {
this._objectInstance = new plugin.google.maps.LatLng(lat, lng);
}