mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
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;
|
||||
}
|
||||
|
||||
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> {
|
||||
|
Loading…
Reference in New Issue
Block a user