Merge pull request #196 from ZiFFeL1992/master
Add options while creating map
This commit is contained in:
commit
32f779f53d
@ -65,8 +65,12 @@ export class GoogleMap {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(elementId: string) {
|
constructor(elementId: string, options?: any) {
|
||||||
this._objectInstance = plugin.google.maps.Map.getMap(document.getElementById(elementId));
|
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> {
|
on(event: any): Observable<any> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user