Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have polygon and multipolygon data in Geojson format and when I try to bind popup for polygon, it works perfectly, and when I try to bind it for multipolygon, it doesn't work.

Is that some Leaflet bug and how can I solve this?


share|improve this question
Can you post a live demo for us to examine? If not will you post the code? – Taylor H. Feb 18 '13 at 14:49
up vote 1 down vote accepted

It appears this is an open bug. See leaflet.js issue 1319.

share|improve this answer
This example seems to have multipolygons with popups. Maybe try reworking your code in this way. – Taylor H. Feb 18 '13 at 15:32
I tried, but when I have if functions there's no way to succeed for more than 9 polygons.. It's a bug, obviously. – againstflow Feb 18 '13 at 21:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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