Skip to content

Commit

Permalink
Added iron-selector to enable singleInfoWindow property
Browse files Browse the repository at this point in the history
Implemented the singleInfoWindow property by using iron-selector and
two new events: google-map-marker-open and google-map-marker-close.
  • Loading branch information
davidwittenbrink committed Oct 5, 2015
1 parent 191caf2 commit 221bd5f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion google-map-marker.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,17 @@
* @event google-map-marker-rightclick
* @param {google.maps.MouseEvent} event The mouse event.
*/

/**
* Fired when an infowindow is opened.
* @event google-map-marker-open
*/

/**
* Fired when the close button of the infowindow is pressed.
* @event google-map-marker-close
*/
*/

properties: {
/**
* A Google Maps marker object.
Expand Down Expand Up @@ -238,6 +241,8 @@
if (this.marker) {
this.marker.setMap(this.map);
}
if (this.open)
this.fire('google-map-marker-open');
},

_updatePosition: function() {
Expand Down

0 comments on commit 221bd5f

Please sign in to comment.