From 4942b88873d311ae7f5a57f2c596cf128164ec91 Mon Sep 17 00:00:00 2001 From: Heather Lemieux <heather.lemieux@libertyits.com> Date: Sat, 26 Aug 2017 03:53:57 -0400 Subject: [PATCH] docs(google-maps): update docs (#1833) Since the new googlemaps plugin uses the native code, you need to wait for the platform to be ready before loading the map. --- src/@ionic-native/plugins/google-maps/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/@ionic-native/plugins/google-maps/index.ts b/src/@ionic-native/plugins/google-maps/index.ts index ae0948517..5ecbff71a 100644 --- a/src/@ionic-native/plugins/google-maps/index.ts +++ b/src/@ionic-native/plugins/google-maps/index.ts @@ -524,6 +524,10 @@ export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = { * map: GoogleMap; * mapElement: HTMLElement; * constructor(private googleMaps: GoogleMaps) { } + * // Load the map when the platform is ready + * this.platform.ready().then(() => { + * this.loadMap(); + * }); * * ionViewDidLoad() { * this.loadMap();