add popup options
This commit is contained in:
parent
502614b9d4
commit
85e6ad34c6
6 changed files with 101 additions and 9 deletions
|
|
@ -45,5 +45,5 @@ let opt_to_jv = function
|
|||
|
||||
let create icon_url options =
|
||||
let l = List.map (fun o -> (to_string o, opt_to_jv o)) options in
|
||||
let tab = Array.of_list @@ (("iconUrl", Jv.of_string icon_url) :: l) in
|
||||
Jv.call Global.leaflet "icon" [| Jv.obj tab |]
|
||||
let l = Array.of_list @@ (("iconUrl", Jv.of_string icon_url) :: l) in
|
||||
Jv.call Global.leaflet "icon" [| Jv.obj l |]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue