I have a point shapefile layer, that I added into it a hyperlinks row. Each hyperlink is for a image, all in me dropbox.
When I identify a point, I see the selected image.
However, when I export it to web map with QGIS2WEB plugin, I see only the hyperlink not the image. When I click on the hyperlink the image is open in a different window.
I like to see the image directly, can it be done?
Here are the steps I made:
In the layer properties I selected "Attachment" in the "Widget Type", I click on the "Use a hyperlink for document path (read-only)" and set the "Integrated Document Viewer" on Image type.
At this point I was able to create a hyperlink from the attribute table.
On QGIS the image is visible, using identify feature
As I wrote, when I use the QGIS2WEB plugin, I see only the link and not the image.
How can see these image directly?
Best Answer
If you export your map with qgis2web as Leaflet map, you can easily adapt the popup content in the index.html as you want to.
Open the exported index.html and look for
var popupContent =
At this point, the popup content is defined as HTML table.
Just add another row at the bottom of the table in your popup-content definition and insert an
<img>
-Tag:"URL-attribute" would correspond to your attribute with the imagepath inside.