mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-04 00:13:06 +08:00
add marker object (temporary)
This commit is contained in:
parent
3aefd5a46d
commit
346ca3e403
@ -344,13 +344,54 @@ 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 interface GoogleMapsMarker {
|
||||||
|
icon: any;
|
||||||
|
title: string;
|
||||||
|
snippet: string;
|
||||||
|
position: GoogleMapsLatLng;
|
||||||
|
infoWindowAnchor: number[];
|
||||||
|
draggable: boolean;
|
||||||
|
flat: boolean;
|
||||||
|
rotation: number;
|
||||||
|
visible: boolean;
|
||||||
|
styles: any;
|
||||||
|
animation: string;
|
||||||
|
zIndex: number;
|
||||||
|
|
||||||
|
getPosition()
|
||||||
|
showInfoWindow(): void;
|
||||||
|
hideInfoWindow(): void;
|
||||||
|
get(message: string): void;
|
||||||
|
setIcon(icon: GoogleMapsMarkerIcon): void;
|
||||||
|
remove(): void;
|
||||||
|
setDraggable(draggable: boolean): void;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GoogleMapsMarkerIcon {
|
||||||
|
url: string;
|
||||||
|
size: {
|
||||||
|
width: number;
|
||||||
|
height: number;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
Google Maps LatLng
|
Google Maps LatLng
|
||||||
**/
|
**/
|
||||||
@Plugin({
|
@Plugin({
|
||||||
pluginRef: 'plugin.google.maps.Map',
|
pluginRef: 'plugin.google.maps.LatLng',
|
||||||
plugin: 'cordova-plugin-googlemaps',
|
plugin: 'cordova-plugin-googlemaps',
|
||||||
repo: 'https://github.com/mapsplugin/cordova-plugin-googlemaps'
|
repo: 'https://github.com/mapsplugin/cordova-plugin-googlemaps'
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user