A layer and legend control for the Leaflet web mapping API