Hi Carina,
There is a demo application inside the component. I think that should answer your question. I'm also working on a new version of the Leaflet component and am trying to get myself into this components team. So far no luck.
I will release mine in a few week as a separate component should my attempts fails. This version has less mandatory requirements for initialization (only height is a requirement) and has a lot of server actions to add data to the map.