MerginMaps / MerginMaps/qgis-plugin

Expression for images in tooltip is broken in QGIS 3.36.0

Open
#576 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When adding an image preview to the tooltip as recommended in our [documentation](https://merginmaps.com/docs/gis/features/#image), the image does not appear in the tooltip in QGIS (see screenshot). However, the image still appears in the feature preview on the mobile app.

![Screenshot 2024-03-05 100832](https://github.com/MerginMaps/qgis-plugin/assets/26321345/35756421-ba11-4c24-8857-6e1f225b826a)

![Screenshot 2024-03-05 101227](https://github.com/MerginMaps/qgis-plugin/assets/26321345/740351b8-f3f2-4c2d-a7ce-c26283d48b2e)

In order to get the image to appear in the tooltip on QGIS, the following script must be used:
```

```
However, when the script above is used and feature is opened in the mobile app, the image will not be scaled so it isn't really visible due to the size of the image.

![Screenshot_20240305_104914](https://github.com/MerginMaps/qgis-plugin/assets/26321345/3ecd7ee8-8d81-4ff6-85fc-2e25bc7f9c33)

This currently only affects QGIS 3.36.0, we've tested it on 3.34LTS and everything still works as expected.

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 reproducing the documented image-tooltip expression in QGIS 3.36.0, then compare its behavior with QGIS 3.34 LTS and the mobile feature preview. Done means the image appears in the desktop tooltip without breaking its visibility or scaling in the mobile app.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.