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?



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

| 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 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.