How would you normally distinguish between polygons with Leaflet? Or is Leaflet not really designed to be used like that?
–
Mr_ChimpMar 20 '12 at 15:04

@Mr_Chimp Well, when you create a polygon, you get a reference to it. From my understanding of the doc, Leaflet does not manage features beyond the “view” part. I must say I totally agree with the idea: I prefer my mapping library to stay there, and handle my business logic on my own. It could be that the undocumented ILayer or IFeature bring something someday but for the moment, as said in my answer, the needed elements (iteration, contained features…) are private.
–
MattiSGMar 20 '12 at 16:41