example using leaflet with core library