0

I have included a field called photo in a point layer that I want to use in a web map to be published using qgis2web. The field widget type is attachment with the path stored relative to the project as the image attached. Once the web map has been created (using the Leaflet option), do I need to adjust the coding of the html file or is there something wrong in how I have set up the field in QGIS?enter image description here

2
  • The relative path is not supported, select Attachment without changing anything else, in the feature field you will have to write the complete path of your image Commented Jan 12 at 17:57
  • Where do I write the complete path? Commented Jan 12 at 18:11

1 Answer 1

0

Relative path does not allow qgis2web to work correctly. You must use an absolute path without changing the widget values. Therefore in your layer field you will have to indicate the absolute path like in this image that show attribute table and widget setting. enter image description here

2
  • Thanks that works Commented Jan 19 at 15:28
  • please set the answer as correct Commented Jan 20 at 19:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.