add leaflet function