list -> array

This commit is contained in:
Swrup 2024-01-30 16:55:19 +01:00
parent 3d91ee4ae6
commit bbd19599cd
9 changed files with 30 additions and 39 deletions

View file

@ -62,7 +62,7 @@ type geojson_opt =
| Markers_inherit_options of bool
(** [create_geojson geojson] is a new geojson layer *)
val create_geojson : Jv.t -> geojson_opt list -> [ `Geojson ] t
val create_geojson : Jv.t -> geojson_opt array -> [ `Geojson ] t
(** Tile layers *)
@ -93,12 +93,12 @@ type tile_layer_opt =
(** [create_tile url attribution opts] create a new tile layer *)
val create_tile :
string -> attribution:string -> tile_layer_opt list -> [ `Tile ] t
string -> attribution:string -> tile_layer_opt array -> [ `Tile ] t
(** [create_tile_osm opts] create a new tile layer with tile server and
attribution set to [openstreetmap.org]. See
{:https://wiki.openstreetmap.org/wiki/Tile_servers} *)
val create_tile_osm : tile_layer_opt list -> [ `Tile ] t
val create_tile_osm : tile_layer_opt array -> [ `Tile ] t
(** [create_polyline l] create a polyline layer from [l] *)
val create_polyline : Latlng.t list -> [ `Vector ] t
val create_polyline : Latlng.t array -> [ `Vector ] t