hajkmap / Hajk

A modern, full-featured OpenLayers based map viewer and editor
MIT License
119 stars 45 forks source link

Layer Switcher - Adding html support to textfield #1517

Open OlofSvahnVbg opened 2 months ago

OlofSvahnVbg commented 2 months ago

A quick fix that would allow for html code in LayerGroups information text field. As it is now this html code will not render properly in client:

image

We should add dangerouslySetInnerHTML={{ __html: infogrouptext }} to the Typography in LayerGroup component to be able to render html code like this:

image

Albinahmetaj commented 2 months ago

Good find and well observed! Something I completely forgot about from my recently merged PR. #1503