feat(google-map): add get and set methods to Marker class

fixes #798
This commit is contained in:
Ibby Hadeed 2016-11-23 08:44:43 -05:00
parent abd910de67
commit 51ab03d097

View File

@ -41,7 +41,7 @@ export const GoogleMapsAnimation = {
* @description This plugin uses the native Google Maps SDK * @description This plugin uses the native Google Maps SDK
* @usage * @usage
* ``` * ```
* import { * import {
* GoogleMap, * GoogleMap,
* GoogleMapsEvent, * GoogleMapsEvent,
* GoogleMapsLatLng, * GoogleMapsLatLng,
@ -57,16 +57,16 @@ export const GoogleMapsAnimation = {
* ngAfterViewInit() { * ngAfterViewInit() {
* this.loadMap(); * this.loadMap();
* } * }
* *
* loadMap() { * loadMap() {
* // make sure to create following structure in your view.html file * // make sure to create following structure in your view.html file
* // <ion-content> * // <ion-content>
* // <div #map id="map"></div> * // <div #map id="map"></div>
* // </ion-content> * // </ion-content>
* *
* // create a new map by passing HTMLElement * // create a new map by passing HTMLElement
* let element: HTMLElement = document.getElementById('map'); * let element: HTMLElement = document.getElementById('map');
* *
* let map = new GoogleMap(element); * let map = new GoogleMap(element);
* *
* // listen to MAP_READY event * // listen to MAP_READY event
@ -96,7 +96,7 @@ export const GoogleMapsAnimation = {
* marker.showInfoWindow(); * 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 }) @CordovaInstance({ sync: true })
isVisible(): boolean { return; } isVisible(): boolean { return; }