create_geojson need a json object
This commit is contained in:
parent
8b7e585168
commit
05d561dac6
2 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ let geojson_opt_to_jv = function
|
||||||
| Filter f -> Jv.repr f
|
| Filter f -> Jv.repr f
|
||||||
| Coords_to_latlng f -> Jv.repr f
|
| Coords_to_latlng f -> Jv.repr f
|
||||||
|
|
||||||
let create_geojson : Jv.t -> geojson_opt array -> [ `Geojson ] t =
|
let create_geojson : Brr.Json.t -> geojson_opt array -> [ `Geojson ] t =
|
||||||
fun geojson options ->
|
fun geojson options ->
|
||||||
let l =
|
let l =
|
||||||
Array.map (fun o -> (geojson_opt_to_string o, geojson_opt_to_jv o)) options
|
Array.map (fun o -> (geojson_opt_to_string o, geojson_opt_to_jv o)) options
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ type geojson_opt =
|
||||||
| Markers_inherit_options of bool
|
| Markers_inherit_options of bool
|
||||||
|
|
||||||
(** [create_geojson geojson] is a new geojson layer *)
|
(** [create_geojson geojson] is a new geojson layer *)
|
||||||
val create_geojson : Jv.t -> geojson_opt array -> [ `Geojson ] t
|
val create_geojson : Brr.Json.t -> geojson_opt array -> [ `Geojson ] t
|
||||||
|
|
||||||
(** Tile layers *)
|
(** Tile layers *)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue