diff --git a/src/plugins/googlemaps.ts b/src/plugins/googlemaps.ts index 987dcb93e..5d0b8ed28 100644 --- a/src/plugins/googlemaps.ts +++ b/src/plugins/googlemaps.ts @@ -65,8 +65,12 @@ export class GoogleMap { return; } - constructor(elementId: string) { - this._objectInstance = plugin.google.maps.Map.getMap(document.getElementById(elementId)); + constructor(elementId: string, options?: any) { + if (options) { + this._objectInstance = plugin.google.maps.Map.getMap(document.getElementById(elementId), options); + } else { + this._objectInstance = plugin.google.maps.Map.getMap(document.getElementById(elementId)); + } } on(event: any): Observable {