From 346ca3e403fc65034ff78174972391ebccd11d86 Mon Sep 17 00:00:00 2001 From: Ibrahim Hadeed Date: Wed, 25 May 2016 03:52:00 -0400 Subject: [PATCH] add marker object (temporary) --- src/plugins/googlemaps.ts | 43 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/src/plugins/googlemaps.ts b/src/plugins/googlemaps.ts index 1e0bf0c6d..ff0cb8323 100644 --- a/src/plugins/googlemaps.ts +++ b/src/plugins/googlemaps.ts @@ -344,13 +344,54 @@ export interface VisibleRegion { 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 Google Maps LatLng **/ @Plugin({ - pluginRef: 'plugin.google.maps.Map', + pluginRef: 'plugin.google.maps.LatLng', plugin: 'cordova-plugin-googlemaps', repo: 'https://github.com/mapsplugin/cordova-plugin-googlemaps' })