mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
fixes
This commit is contained in:
@@ -229,10 +229,15 @@ export class GoogleMaps {
|
|||||||
})
|
})
|
||||||
setAllGesturesEnabled (enabled: boolean): void { }
|
setAllGesturesEnabled (enabled: boolean): void { }
|
||||||
|
|
||||||
@CordovaInstance({
|
addMarker (options: any): GoogleMapsMarker {
|
||||||
sync: true
|
if (!options) {
|
||||||
})
|
console.warn('Google Maps Plugin: No options provided.');
|
||||||
addMarker (options: any): void { }
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let objectInstance = this._objectInstance.addMarker(options);
|
||||||
|
return new GoogleMapsMarker(objectInstance);
|
||||||
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({
|
||||||
sync: true
|
sync: true
|
||||||
@@ -348,15 +353,6 @@ export interface VisibleRegion {
|
|||||||
southwest: any;
|
southwest: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @private
|
|
||||||
* Marker object
|
|
||||||
*/
|
|
||||||
@Plugin({
|
|
||||||
pluginRef: 'plugin.google.maps.Marker',
|
|
||||||
plugin: 'cordova-plugin-googlemaps',
|
|
||||||
repo: 'https://github.com/mapsplugin/cordova-plugin-googlemaps'
|
|
||||||
})
|
|
||||||
export class GoogleMapsMarker {
|
export class GoogleMapsMarker {
|
||||||
icon: any;
|
icon: any;
|
||||||
title: string;
|
title: string;
|
||||||
@@ -509,16 +505,6 @@ export interface GoogleMapsMarkerIcon {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @private
|
|
||||||
Google Maps LatLng
|
|
||||||
**/
|
|
||||||
@Plugin({
|
|
||||||
pluginRef: 'plugin.google.maps.LatLng',
|
|
||||||
plugin: 'cordova-plugin-googlemaps',
|
|
||||||
repo: 'https://github.com/mapsplugin/cordova-plugin-googlemaps'
|
|
||||||
})
|
|
||||||
export class GoogleMapsLatLng {
|
export class GoogleMapsLatLng {
|
||||||
constructor (public lat: string, public lng: string) {
|
constructor (public lat: string, public lng: string) {
|
||||||
return plugin.google.maps.LatLng(lat, lng);
|
return plugin.google.maps.LatLng(lat, lng);
|
||||||
|
|||||||
Reference in New Issue
Block a user