How to show base64 image in maptip
I have a field in a feature service that contains a string which is base64 data for an image. I can get the image to show properly in a simple html page using
<img style='display:block; max-width:105px; max-height:114px;' id='base64image' src='data:image/jpeg;base64, /9j/4AAQSkZJR…<base64 string>… ' />
However when I try to use this same code in the Feature Description I get nothing coming through. Any ideas?
0
-
Hi Stephanie,
I took a look in our bug tracker and found a corresponding issue. It doesn't look like it will be possible to show a base64 image from a map tip or feature description until we fix the underlying issue. At the moment, the text inside src="" gets stripped out when it starts with "data" instead of say "http" or "command". It sounds like this was something that was overlooked rather than intentional
I've added you as a stakeholder to GVH-10987.
Hope that helps,
Amanda0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar