MMGIS icon indicating copy to clipboard operation
MMGIS copied to clipboard

[Bug]: HTML renders in the Info tool Feature at top

Open fcalef opened this issue 1 year ago • 0 comments

Checked for duplicates

Yes - I've already checked

Describe the bug

I specified a "useKeyAsName" variable set to a property that contained an HMTL tag () to an image. This allowed an image to be rendered in the mouseover of features, which was as expected. When I used the Info tool to select a feature to look at its properties, the image rendered again in the property list (which was fine), but also in the Feature list at the top, which caused it to awkwardly try to fit it in that space.

What did you expect?

I expected that html would not be rendered in the Feature area at the top of the Info feature list. Also, I expected that a different property would be use as a Feature ID.

Reproducible steps

1. Add IMG HTML tags referencing an image to an GeoJSON feature.
2. Set the "useKeyAsName" variable in the GeoJSON layer to the property with the IMG HTML tags.
2. Click on the feature in the Map.
3. Open the Info tool to see the image referenced in the HTML rendered.

Environment

- MMGIS version 2.11
- Chrome Browser
- Windows 11 OS

fcalef avatar Jun 18 '24 19:06 fcalef