small popup change
This commit is contained in:
parent
1e581ef172
commit
b9c6864ef1
3 changed files with 6 additions and 6 deletions
|
|
@ -68,7 +68,7 @@ let opt_to_jv = function
|
|||
Jv.of_bool b
|
||||
| Pane s | Class_name s -> Jv.of_string s
|
||||
|
||||
let create content_opt ~latlng options =
|
||||
let create ~content ~latlng options =
|
||||
let l =
|
||||
Array.of_list @@ List.map (fun o -> (opt_to_string o, opt_to_jv o)) options
|
||||
in
|
||||
|
|
@ -80,7 +80,7 @@ let create content_opt ~latlng options =
|
|||
set_latlng latlng popup;
|
||||
popup
|
||||
in
|
||||
match content_opt with
|
||||
match content with
|
||||
| None -> popup
|
||||
| Some content ->
|
||||
set_content content popup;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue