diff --git a/src/plugins/googlemap.ts b/src/plugins/googlemap.ts index 73ac7e113..47f840cab 100644 --- a/src/plugins/googlemap.ts +++ b/src/plugins/googlemap.ts @@ -71,10 +71,6 @@ export const GoogleMapsAnimation = { * * let map = new GoogleMap(element); * - * // listen to MAP_READY event - * map.one(GoogleMapsEvent.MAP_READY).then(() => { - console.log('Map is ready!'); - * * // create LatLng object * let ionic: GoogleMapsLatLng = new GoogleMapsLatLng(43.0741904,-89.3809802); * @@ -85,9 +81,13 @@ export const GoogleMapsAnimation = { * tilt: 30 * }; * - * // move the map's camera to position - * map.moveCamera(position); + * // listen to MAP_READY event + * map.one(GoogleMapsEvent.MAP_READY).then(() => { + * // move the map's camera to position + * map.moveCamera(position); // works on iOS and Android + * }); * + * * // create new marker * let markerOptions: GoogleMapsMarkerOptions = { * position: ionic,