Skip to content

Commit

Permalink
fix(googlemaps): use correct methods for addGroundOverlay and addKmlO…
Browse files Browse the repository at this point in the history
…verlay (#268)
  • Loading branch information
kat3su authored and ihadeed committed Jul 7, 2016
1 parent 592feb4 commit b8be1de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/googlemaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export class GoogleMap {
addGroundOverlay(options: GoogleMapsGroundOverlayOptions): Promise<GoogleMapsGroundOverlay> {
return new Promise<GoogleMapsGroundOverlay>(
(resolve, reject) => {
this._objectInstance.addTileOverlay(options, (groundOverlay: any) => {
this._objectInstance.addGroundOverlay(options, (groundOverlay: any) => {
if (groundOverlay) resolve(new GoogleMapsGroundOverlay(groundOverlay));
else reject();
});
Expand All @@ -249,7 +249,7 @@ export class GoogleMap {
addKmlOverlay(options: GoogleMapsKmlOverlayOptions): Promise<GoogleMapsKmlOverlay> {
return new Promise<GoogleMapsKmlOverlay>(
(resolve, reject) => {
this._objectInstance.addTileOverlay(options, (kmlOverlay: any) => {
this._objectInstance.addKmlOverlay(options, (kmlOverlay: any) => {
if (kmlOverlay) resolve(new GoogleMapsKmlOverlay(kmlOverlay));
else reject();
});
Expand Down

0 comments on commit b8be1de

Please sign in to comment.