CloudMade/Leaflet — pull request #752 by sa3m (2012-06-25 09:11:03+00:00)
Title: Added getVisibleLayers method on Control.Layers

Hi, this is my first pull request on GitHub, I hope this is not to messy :)

I thought it would be nice to know what layers where visible via the Layers Control, so I added a method that returns the names of the visible layers.

I needed this for my website to save the current layer and to be able to reload the map with the same layer.