add popup options
This commit is contained in:
parent
a438e54f42
commit
ede9b2076d
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