Added leaflet functions.