Merge pull request #196 from ZiFFeL1992/master

Add options while creating map
This commit is contained in:
Ibrahim Hadeed 2016-06-08 21:55:50 -04:00
commit 32f779f53d

View File

@ -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<any> {