Skip to main content

Hi,

I just yeasterday started to play with htmlreportgenerator and html as format is new to me also.

After playing one day with it, I managed to make with small effort make point in map and make some charts out. Now was thinking if there is some "easy" way to make those together?

I have about 300 points in map what show their label when they are clicked. How much html_content I would need to modify to make charts pop out instead of label? All of these points have their own charts. To make it simple.. 300 points and 300 charts. How to make them together? :)

Aki

I've dabbled a bit with this myself and I think you'll gain a lot of flexibility by generating HTML yourself and use Leaflet for the mapping part. There's some examples here.

I use the XMLTemplater for this but since Leaflet requires javascript too (and that messes up the XML validation in the XMLTemplater) I do some string replacement afterwards and drop in the relevant bits of HTML/javascript.

It does require more than just basic HTML knowledge...

You may also want to look into Carto, which is supported as a writer in FME. This way you would need a lot less HTML knowledge.


I've dabbled a bit with this myself and I think you'll gain a lot of flexibility by generating HTML yourself and use Leaflet for the mapping part. There's some examples here.

I use the XMLTemplater for this but since Leaflet requires javascript too (and that messes up the XML validation in the XMLTemplater) I do some string replacement afterwards and drop in the relevant bits of HTML/javascript.

It does require more than just basic HTML knowledge...

You may also want to look into Carto, which is supported as a writer in FME. This way you would need a lot less HTML knowledge.

Thank you redgeographics!

 

Will try out with XMLTemplater. Maybe someday we could use reportgenerator to make tooltips and have more out from it that way!

 

 


Reply