add support for simple legends in Leaflet