docs(GoogleMaps): GoogleMaps.prototype.create is deprecated, so updating docs to use static method.

This commit is contained in:
Mike Roberts 2017-12-13 19:27:52 -05:00
parent 995fd56894
commit 2da568616d
No known key found for this signature in database
GPG Key ID: 0A8CD82A077DA308

View File

@ -801,7 +801,7 @@ export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = {
* }) * })
* export class HomePage { * export class HomePage {
* map: GoogleMap; * map: GoogleMap;
* constructor(private googleMaps: GoogleMaps) { } * constructor() { }
* *
* ionViewDidLoad() { * ionViewDidLoad() {
* this.loadMap(); * this.loadMap();
@ -820,7 +820,7 @@ export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = {
* } * }
* }; * };
* *
* this.map = this.googleMaps.create('map_canvas', mapOptions); * this.map = GoogleMaps.create('map_canvas', mapOptions);
* *
* // Wait the MAP_READY before using any methods. * // Wait the MAP_READY before using any methods.
* this.map.one(GoogleMapsEvent.MAP_READY) * this.map.one(GoogleMapsEvent.MAP_READY)