No description
Find a file
2025-02-06 02:39:52 +01:00
doc add documentation, remove Map.as_target 2022-06-15 17:17:35 +02:00
example basic example with tiny_httpd 2025-02-06 02:10:02 +01:00
src Map.on: make handler type be (.. -> unit) 2024-11-23 09:25:43 +01:00
.gitignore make geopub/leaflet a separate library 2022-04-06 18:52:52 +02:00
.ocamlformat ocamlformat 2025-02-06 02:10:02 +01:00
CHANGES.md version 0.2 2025-02-06 02:39:52 +01:00
dune-project don't generate opam file with dune 2025-02-06 02:39:52 +01:00
leaflet.opam don't generate opam file with dune 2025-02-06 02:39:52 +01:00
LICENSE.md license 2022-04-12 13:48:27 +02:00
README.md better readme; rm empty test/ 2025-02-06 02:29:02 +01:00

leaflet

leaflet is an OCaml bindings library for the Leaflet JavaScript library (v1.9.4).

Installation

leaflet can be installed with opam:

opam install leaflet

If you don't have opam, you can install it following the how to install opam guide.

If you can't or don't want to use opam, consult the opam file for build instructions.

Usage

The library use dune-site to install leaflet's files (CSS and images).

Have a look at the example folder. It use tiny_httpd to provide a simple web page with a map that use OpenStreetMap tiles:

dune build @install
dune exec example/server.exe

About

This library started off from the code of a NGI0 funded project