MerginMaps / MerginMaps/qgis-plugin

Do not consider a field that is not of type "attachment > image" as one to be used to capture photos

Open
#659 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
44
Forks
20
Avg merge
3d 12h
Merged PRs (30d)
5

Description

I noticed that in QGIS project properties > Mergin Maps all fields set as "attachment" are shown as they are to be used for photos, even the ones that are not of type "image" (i.e. also the fields set as "No content"), and for those fields in Mergin Maps App the widget to take/choose photos is shown (so I guess this report is also about the mobile App).

This seems to me at least very inconvenient as there is a clear use for attachment fields that are not photos, like the ones that for example store a PDF file relative path that must be opened within the Mergin Maps app with the methods described in docs:

seems right now is not possible to use the same project (under Mergin Maps control) on Desktop to edit/add features and associate them a PDF file (because if the used field uses the attachment widget it will always renders with the photo capture widget on mobile), and then with an HTML widget allow to open it on mobile. I can't only think about some workaround, but maybe I'm wrong(?).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the QGIS plugin identifies attachment fields and how the mobile app selects the photo widget. Verify the behavior for attachment fields of type image versus fields with No content, and confirm that non-image attachments can still be opened through the documented HTML widget flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.