How make a list in the Info Window of a Fusion Map from a comma separated list? -
can cell comma separated information turned list? i've got uneven amounts of data (companies) , have display basic list when flag clicked on in fusion map.
say have:
location: seminole county, fl companies: acme co, box inc, cogs llc ------ location: orange county, fl companies: acme co, dirt inc, shell co
on map should 2 flags, is. how can have companies displayed basic list?
i can go record , change contain html:
companies:<ul><li>acme co</li><li>box inc</li><li>shell co</li></ul
but that's pretty clunky. there way template custom info window automate this:
i looked online couldn't find , fusion user group says ask here.
edit:
based on first answer, rows:
resulting problem:
if format companies values json lists, can loop on them closure templates. latter described in help page, though looping constructs not documented.
first, go edit > change columns , set format of companies json text. format values as, say, ["acme co", "dirt inc", "shell co"]. in closure template can loop on it with
{template .contents} ...wrapper div , other columns if desired... companies: <ul> {foreach $company in $data.value.companies} <li>{$company} {/foreach} </ul> ...other stuff... {/template}
Comments
Post a Comment