3
0
mirror of https://github.com/danielsogl/awesome-cordova-plugins.git synced 2025-06-02 03:55:47 +08:00

Add options while creating map

This commit is contained in:
Guille 2016-06-08 16:55:43 +02:00
parent 66b7fa6312
commit 49eb13ddee

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