This commit is contained in:
Swrup 2022-04-12 13:46:37 +02:00
parent fbfb403734
commit a0dc553c7d
15 changed files with 56 additions and 25 deletions

View File

@ -1,8 +1,9 @@
The ISC License (ISC)
=====================
Copyright 2022 pukkamustard <pukkamustard@posteo.net>, swrup <swrup@protonmail.com>, zapashcanon
Copyright © 2022, TODO
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -1,6 +1,6 @@
# leaflet
[leaflet] is an [OCaml] executable/library to TODO.
`leaflet` is an [OCaml] bindings library for the [Leaflet] JavaScript library.
## Installation
@ -24,6 +24,8 @@ For more, have a look at the [example] folder, at the [documentation] or at the
## About
leaflet's original code was taken from a [NGI0 funded project]
- [LICENSE]
- [CHANGELOG]
@ -37,4 +39,5 @@ For more, have a look at the [example] folder, at the [documentation] or at the
[how to install opam]: https://opam.ocaml.org/doc/Install.html
[OCaml]: https://ocaml.org
[opam]: https://opam.ocaml.org/
[leaflet]: TODO/leaflet
[Leaflet]: https://leafletjs.com/
[NGI0 funded project]: https://nlnet.nl/project/openEngiadina/

View File

@ -4,18 +4,18 @@
(name leaflet)
(license ISC)
(license BSD-2-Clause)
(authors "TODO")
(authors "pukkamustard <pukkamustard@posteo.net>" "swrup <swrup@protonmail.com>" "Léo Andrès <contact@ndrs.fr>")
(maintainers "TODO")
(maintainers "swrup <swrup@protonmail.com>")
(source
(uri TODO/leaflet))
(uri git+https://git.zapashcanon.fr/swrup/leaflet.git))
(homepage TODO/leaflet)
(homepage https://git.zapashcanon.fr/swrup/leaflet)
(bug_reports TODO/leaflet)
(bug_reports https://git.zapashcanon.fr/swrup/leaflet/issues)
(documentation TODO/leaflet)
@ -23,11 +23,11 @@
(package
(name leaflet)
(synopsis "OCaml library/executable to TODO")
(synopsis "Bindings for the Leaflet JavaScript library")
(description
"leaflet is an OCaml library/executable to TODO.")
"leaflet is an OCaml bindings library for the Leaflet JavaScript library.")
(tags
(leaflet TODO TODO TODO TODO))
(leaflet javascript bindings interactive map openstreetmap))
(depends
(ocaml
(>= 4.08))))

View File

@ -1,14 +1,19 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "OCaml library/executable to TODO"
description: "leaflet is an OCaml library/executable to TODO."
maintainer: ["TODO"]
authors: ["TODO"]
license: "ISC"
tags: ["leaflet" "TODO" "TODO" "TODO" "TODO"]
homepage: "TODO/leaflet"
synopsis: "Bindings for the Leaflet JavaScript library"
description:
"leaflet is an OCaml bindings library for the Leaflet JavaScript library."
maintainer: ["swrup <swrup@protonmail.com>"]
authors: [
"pukkamustard <pukkamustard@posteo.net>"
"swrup <swrup@protonmail.com>"
"Léo Andrès <contact@ndrs.fr>"
]
license: "BSD-2-Clause"
tags: ["leaflet" "javascript" "bindings" "interactive" "map" "openstreetmap"]
homepage: "https://git.zapashcanon.fr/swrup/leaflet"
doc: "TODO/leaflet"
bug-reports: "TODO/leaflet"
bug-reports: "https://git.zapashcanon.fr/swrup/leaflet/issues"
depends: [
"dune" {>= "2.9"}
"ocaml" {>= "4.08"}
@ -30,4 +35,4 @@ build: [
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "TODO/leaflet"
dev-repo: "git+https://git.zapashcanon.fr/swrup/leaflet.git"

View File

@ -1,3 +1,5 @@
(* BSD-2-Clause License *)
type _ t =
| Keyboard : Jv.t -> [> `Keyboard ] t
| Mouse : Jv.t -> [> `Mouse ] t

View File

@ -1,3 +1,5 @@
(* BSD-2-Clause License *)
type _ t =
| Keyboard : Jv.t -> [> `Keyboard ] t
| Mouse : Jv.t -> [> `Mouse ] t

View File

@ -1,3 +1,5 @@
(* BSD-2-Clause License *)
let leaflet =
match Jv.(find global "L") with
| Some l -> l

View File

@ -1,3 +1,5 @@
(* BSD-2-Clause License *)
type t = Jv.t
let create lat lng =

View File

@ -1,3 +1,5 @@
(* BSD-2-Clause License *)
type t
val create : float -> float -> t

View File

@ -1,3 +1,5 @@
(* BSD-2-Clause License *)
type _ t =
| Basic : Jv.t -> [> `Basic ] t
| Geojson : Jv.t -> [> `Geojson ] t

View File

@ -1,3 +1,5 @@
(* BSD-2-Clause License *)
type _ t =
| Basic : Jv.t -> [> `Basic ] t
| Geojson : Jv.t -> [> `Geojson ] t

View File

@ -1,3 +1,5 @@
(* BSD-2-Clause License *)
type t = Jv.t
let of_jv = Fun.id

View File

@ -1,3 +1,5 @@
(* BSD-2-Clause License *)
type t
val create : ?options:Jv.t -> string -> t

View File

@ -1,3 +1,5 @@
(* BSD-2-Clause License *)
type t = Jv.t
let popup = Jv.call Global.leaflet "popup" [||]

View File

@ -1,3 +1,5 @@
(* BSD-2-Clause License *)
type t
val set_latlng : Latlng.t -> unit