Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 475 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 475 Bytes

Elm-leaflet

This is an example showing how integrate Leaflet via Elm's ports.

Demo

https://pointbar.github.io/elm-leaflet/

Goal

  • 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

Transpile JS to Elm

$ elm-make App.elm --output build/elm-Leaflet.js

Explanation