From 92468c9b84f948e85869a559fd274509a8dbe086 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Wed, 3 May 2017 22:40:09 +0200 Subject: [PATCH] docs(google-maps): example fix #1444 (#1461) It should be clearer now that the marker etc. should be added inside the .then() block Related to: - https://github.com/driftyco/ionic-native/issues/1444 - https://forum.ionicframework.com/t/ionic-build-android-failed/88742/9 --- src/@ionic-native/plugins/google-maps/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/google-maps/index.ts b/src/@ionic-native/plugins/google-maps/index.ts index c7baa143b..6b5558f83 100644 --- a/src/@ionic-native/plugins/google-maps/index.ts +++ b/src/@ionic-native/plugins/google-maps/index.ts @@ -403,7 +403,12 @@ export class GoogleMap { * * // listen to MAP_READY event * // You must wait for this event to fire before adding something to the map or modifying it in anyway - * map.one(GoogleMapsEvent.MAP_READY).then(() => console.log('Map is ready!')); + * map.one(GoogleMapsEvent.MAP_READY).then( + * () => { + * console.log('Map is ready!'); + * // Now you can add elements to the map like the marker + * } + * ); * * // create LatLng object * let ionic: LatLng = new LatLng(43.0741904,-89.3809802);