Add options while creating map

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

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