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.
This commit is contained in:
Heather Lemieux 2017-08-26 03:53:57 -04:00 committed by Ibby Hadeed
parent 39ec5158a0
commit 4942b88873

View File

@ -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();