mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-05-11 21:37:40 +08:00
refractor(googlemaps): optimize
This commit is contained in:
parent
32f779f53d
commit
3e42bed84e
@ -66,11 +66,7 @@ export class GoogleMap {
|
|||||||
}
|
}
|
||||||
|
|
||||||
constructor(elementId: string, options?: any) {
|
constructor(elementId: string, options?: any) {
|
||||||
if (options) {
|
this._objectInstance = plugin.google.maps.Map.getMap(document.getElementById(elementId), 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