I am closing the popup for geoJson (layer.closePopup()) to make a modal to appear. The function works fine for regular geometry but fails for Multipolygon. I get the error - ClosePopup is not a defined function.


It's a known bug that can be solved by using group.invoke('closePopup') instead of group.closePopup(), see demo: http://jsfiddle.net/c24u2b5o/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.