Leaflet upgrade and user input