From 51ab03d097500c3c62e37af5425a1419d72a5ca6 Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Wed, 23 Nov 2016 08:44:43 -0500 Subject: [PATCH] feat(google-map): add get and set methods to Marker class fixes #798 --- src/plugins/googlemap.ts | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/src/plugins/googlemap.ts b/src/plugins/googlemap.ts index 3be68e87d3..06169b8873 100644 --- a/src/plugins/googlemap.ts +++ b/src/plugins/googlemap.ts @@ -41,7 +41,7 @@ export const GoogleMapsAnimation = { * @description This plugin uses the native Google Maps SDK * @usage * ``` - * import { + * import { * GoogleMap, * GoogleMapsEvent, * GoogleMapsLatLng, @@ -57,16 +57,16 @@ export const GoogleMapsAnimation = { * ngAfterViewInit() { * this.loadMap(); * } - * + * * loadMap() { * // make sure to create following structure in your view.html file * // - * //
+ * //
* //
* * // create a new map by passing HTMLElement * let element: HTMLElement = document.getElementById('map'); - * + * * let map = new GoogleMap(element); * * // listen to MAP_READY event @@ -96,7 +96,7 @@ export const GoogleMapsAnimation = { * marker.showInfoWindow(); * }); * } - * + * * } * ``` */ @@ -486,6 +486,21 @@ export class GoogleMapsMarker { ); } + /** + * Gets a value + * @param key + */ + @CordovaInstance({sync: true}) + get(key: string): any { return; } + + /** + * Sets a value + * @param key + * @param value + */ + @CordovaInstance({sync: true}) + set(key: string, value: any): void { } + @CordovaInstance({ sync: true }) isVisible(): boolean { return; }