From fd1b295b9509a0dd97f5c9a715995e2c63f383c0 Mon Sep 17 00:00:00 2001 From: vingiarrusso Date: Wed, 27 May 2015 16:34:06 -0700 Subject: [PATCH] add isPopupOpen method to layer --- src/layer/Layer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/layer/Layer.js b/src/layer/Layer.js index 579d30b5..55843063 100644 --- a/src/layer/Layer.js +++ b/src/layer/Layer.js @@ -35,6 +35,10 @@ L.Layer = L.Evented.extend({ return this; }, + isPopupOpen: function() { + return !!(this._map._popup && this._map._popup.isOpen); + }, + _layerAdd: function (e) { var map = e.target;