Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

Thanks

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
    
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.