better popups
This commit is contained in:
parent
23ea827e40
commit
7effdcc577
4 changed files with 57 additions and 16 deletions
|
|
@ -50,5 +50,9 @@ let wrap_latlng latlng map =
|
|||
let open_popup popup map =
|
||||
ignore @@ Jv.call map "openPopup" [| Popup.to_jv popup |]
|
||||
|
||||
let close_popup popup map =
|
||||
ignore @@ Jv.call map "closePopup" [| Popup.to_jv popup |]
|
||||
let close_popup ~popup map =
|
||||
ignore
|
||||
@@
|
||||
match popup with
|
||||
| None -> Jv.call map "closePopup" [||]
|
||||
| Some popup -> Jv.call map "closePopup" [| Popup.to_jv popup |]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue