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:

custom info window layout - google fusion

i looked online couldn't find , fusion user group says ask here.

edit:

based on first answer, rows:

fusion rows

resulting problem:

fusion map

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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -