mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
refractor(googlemaps): optimize
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user