liquid_feedback_frontend
view env/ui/map.lua @ 1585:020fd82c6cb4
Updated include_roles parameter type to boolean
| author | bsw | 
|---|---|
| date | Tue Jan 26 18:57:19 2021 +0100 (2021-01-26) | 
| parents | 32cc544d5a5b | 
| children | 
 line source
     1 function ui.map(geo_objects, input_element_id)
     2   local header = config.map.header
     3   if type(header) == "function" then
     4     header = header()
     5   end
     6   slot.put_into("html_head", header)
     7   ui.container{ attr = { id = "map" }, content = "" }
     8   config.map.func(
     9     "map", 
    10     config.map.default_viewport.lon, 
    11     config.map.default_viewport.lat, 
    12     config.map.default_viewport.zoom,
    13     geo_objects,
    14     input_element_id
    15   )
    16 end
