This commit is contained in:
Swrup 2022-06-20 07:57:38 +02:00
parent d1acabfdcd
commit db88d3f670
5 changed files with 75 additions and 1 deletions

View file

@ -9,3 +9,6 @@ let of_jv point =
let x = Jv.get point "x" |> Jv.to_int in
let y = Jv.get point "y" |> Jv.to_int in
{ x; y }
let to_jv point =
Jv.call Global.leaflet "point" [| Jv.of_int point.x; Jv.of_int point.y |]