From 49eb13ddeee7743fd59b352208ecd933c153371c Mon Sep 17 00:00:00 2001 From: Guille Date: Wed, 8 Jun 2016 16:55:43 +0200 Subject: [PATCH] Add options while creating map --- src/plugins/googlemaps.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 {