maplibre-native-qt icon indicating copy to clipboard operation
maplibre-native-qt copied to clipboard

Property binding in "SourceParamter" is ignored

Open kebekus opened this issue 1 year ago • 1 comments

Describe the bug

I use MapLibre with QML. The map contains a source parameter of the following form.

        SourceParameter {
            id: approachChart

            styleId: "vac"
            type: "image"

            property string url: expressionA

            property var coordinates: expressionB

        }

Expected behavior

  • The image should change whenever the value of expressionA changes
  • The coordinates of the image in the map display should change whenever the value of expressionB changes

Actual behavior

  • The image changes whenever the value of expressionA changes
  • The coordinates of the image never change, regardless of the value of expressionB. The binding for the "coordinates" property is seemingly ignored.

Platform information (please complete the following information):

  • OS: macOS and Linux
  • Qt version 6.6.2

Additional context

At present, the only way to move the image on the map is to discard the map and construct a new one. This is time-consuming and leads to visible glitches in the display.

@ntadej Let me thank you again for maintaining this marvelous piece of software!

kebekus avatar Feb 17 '24 16:02 kebekus

Note that according to my memory not all source properties are mutable even in core MapLibre, but I'll investigate.

ntadej avatar Feb 17 '24 16:02 ntadej

@ntadej Please excuse my late reply. I tested the current version of maplibre-native-qt today, and I can confirm that things now work as expected. As always, thank you for the incredible work you do for the community. Many projects (including mine) rely on your work and would not be possible without it.

Best -- Stefan.

kebekus avatar Jul 04 '24 06:07 kebekus