Skip to content

Commit

Permalink
feat(google-map): add get and set methods to Marker class
Browse files Browse the repository at this point in the history
fixes #798
  • Loading branch information
ihadeed committed Nov 23, 2016
1 parent abd910d commit 51ab03d
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions src/plugins/googlemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const GoogleMapsAnimation = {
* @description This plugin uses the native Google Maps SDK
* @usage
* ```
* import {
* import {
* GoogleMap,
* GoogleMapsEvent,
* GoogleMapsLatLng,
Expand All @@ -57,16 +57,16 @@ export const GoogleMapsAnimation = {
* ngAfterViewInit() {
* this.loadMap();
* }
*
*
* loadMap() {
* // make sure to create following structure in your view.html file
* // <ion-content>
* // <div #map id="map"></div>
* // <div #map id="map"></div>
* // </ion-content>
*
* // create a new map by passing HTMLElement
* let element: HTMLElement = document.getElementById('map');
*
*
* let map = new GoogleMap(element);
*
* // listen to MAP_READY event
Expand Down Expand Up @@ -96,7 +96,7 @@ export const GoogleMapsAnimation = {
* marker.showInfoWindow();
* });
* }
*
*
* }
* ```
*/
Expand Down Expand Up @@ -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; }

Expand Down

0 comments on commit 51ab03d

Please sign in to comment.