Showing images

I am trying to show pictures in a tooltip - or/and attribute view.
Just for testing I created a geojson file with the following structure:

I have all the images in a subfolder media:

and my html code looks like this:

However, the tooltip does not show the pictures:

I was trying to follow this: Media

find attached my testfile .geojson
baeume_bern.geojson (3.5 KB)

the “broken image” symbol shows, that LWC somehow can not access your file. Are access rights set correctly?
What happens when you click on the symbol? A new tab should open with thetargeted picture. this might help you to determine where LWC is aiming at and helps you spotting any path mismatchs!

well I made some progress…

but I have no clue why the pic does not appear in the tooltip

I found out that when I enter the following simple html code the tooltip when hovering over an object works so that the pic is displayed:

Foto:<br>
<img src="http://localhost:8090/index.php/view/media/getMedia?repository=baumkataster&amp;project=baumkataster&amp;path=media%2Ffoto6.jpg" width="120">

how can I change this “code” to something like:

Foto:<br>
<img src="<serverurl>/"Foto">

(“Foto” is the name of the column that includes the media directory. As an example, a possible value is: “media/foto6.jpg”)