change map creation

This commit is contained in:
Swrup 2022-06-18 07:53:26 +02:00
parent 0a5f5519da
commit bf66ab75fb
3 changed files with 16 additions and 14 deletions

View file

@ -2,9 +2,14 @@
type t
(** [create container] creates a map on [container]. * To have a functional map
you will need to add a tile layer to it. *)
val create : ?options:Jv.t -> Brr.El.t -> t
(** [create id] creates a map on the <div> with DOM id [id]. To have a
functional map you will need to add a tile layer to it. *)
val create_on : ?options:Jv.t -> string -> t
(** [create_from_div container] creates a map given [container], an instance of
a <div> HTML element. To have a functional map you will need to add a tile
layer to it. *)
val create_from_div : ?options:Jv.t -> Brr.El.t -> t
(** [invalidate_size map] checks if the map container size changed and updates
the map if so *)