Skip to content

Commit

Permalink
document popupOpen. closes #690
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcobain committed Apr 11, 2024
1 parent 2587b5f commit b79dfca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions addon/components/popup-layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ export default class PopupLayer extends DivOverlayLayer {
'closeOnClick'
];

/**
* Changing this argument will open or close the popup.
* This is only required if you need a way to externally control the popup.
*
* @argument popupOpen
* @type {Boolean}
*/

isOpen() {
// leaflet 1 added an `isOpen` method
return this._layer.isOpen ? this._layer.isOpen() : this._layer._isOpen;
Expand Down

0 comments on commit b79dfca

Please sign in to comment.