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