better Layer.bind_popup and add Map.open/close_popup

This commit is contained in:
Swrup 2022-06-26 04:08:53 +02:00
parent 2affa8b5fa
commit 23ea827e40
6 changed files with 21 additions and 24 deletions

View file

@ -26,15 +26,12 @@ val set_latlng : Latlng.t -> unit
(** [set_content s] changes the popup content to [s]*)
val set_content : string -> unit
(** [open_on map] * Adds the popup to [map] and closes the previous one. *)
val open_on : Map.t -> unit
(** [close map] * closes the popup of [map]*)
val close : Map.t -> unit
(** [of_jv jv] is [jv] as {!t} *)
val of_jv : Jv.t -> t
(** [to_jv o] is [o] as {!Jv.t} *)
val to_jv : t -> Jv.t
(** [opt_to_string opt] is [opt] as {!string} *)
val opt_to_string : opt -> string