Skip to content

Commit

Permalink
fix(googlemaps): add missing properties
Browse files Browse the repository at this point in the history
should fix #642
  • Loading branch information
ihadeed committed Oct 6, 2016
1 parent 1ab0d2f commit 72a694a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/plugins/googlemaps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Cordova, CordovaInstance, Plugin } from './plugin';
import {Cordova, CordovaInstance, Plugin, InstanceProperty} from './plugin';
import { Observable } from 'rxjs/Observable';


Expand Down Expand Up @@ -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);
}
Expand All @@ -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);
}

Expand Down

0 comments on commit 72a694a

Please sign in to comment.