added attribute support to the leaflet directive