This is an example showing how integrate Leaflet via Elm's ports.
https://pointbar.github.io/elm-leaflet/
-
Display an html town's list from Elm's data
-
Display an OSM map by town
-
Place some markers for each town
-
Change map by clicking on town's list
-
All data are stored in Elm's records
$ elm-make App.elm --output build/elm-Leaflet.js