mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
docs(GoogleMaps): GoogleMaps.prototype.create is deprecated, so updating docs to use static method.
This commit is contained in:
parent
995fd56894
commit
2da568616d
@ -801,7 +801,7 @@ export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = {
|
||||
* })
|
||||
* export class HomePage {
|
||||
* map: GoogleMap;
|
||||
* constructor(private googleMaps: GoogleMaps) { }
|
||||
* constructor() { }
|
||||
*
|
||||
* ionViewDidLoad() {
|
||||
* 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.
|
||||
* this.map.one(GoogleMapsEvent.MAP_READY)
|
||||
|
Loading…
Reference in New Issue
Block a user