mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-05-14 14:44:06 +08:00
Add options while creating map
This commit is contained in:
parent
66b7fa6312
commit
49eb13ddee
@ -65,9 +65,13 @@ export class GoogleMap {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(elementId: string) {
|
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));
|
this._objectInstance = plugin.google.maps.Map.getMap(document.getElementById(elementId));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
on(event: any): Observable<any> {
|
on(event: any): Observable<any> {
|
||||||
return new Observable(
|
return new Observable(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user