working sample with leaflet