3

Related: Display label depending on timedate attribute used by Temporal Controller

Following the linked thread, I have managed to display labels according to what Temporal Controller prompts using the rule @map_start_time <= "time" and "time" <= @map_end_time

On this tutorial, point 11, you can see how the date is dynamically changing. Would it be possible to display the aforementioned labels but, instead of next to their respective points, dynamically inside the Title Bar from the Decorations section?

1 Answer 1

4

Using this formula in the Title Bar custom expression should work, "stop_name" being the layer attribute you want do display as a Label:

    aggregate(
         layer:='your_layer_name',aggregate:='concatenate_unique',
         expression:="stop_name",
         filter:=@map_start_time <= "time" and "time" <= @map_end_time,
         concatenator:=',')

enter image description here

This formula will list the Label name that match the current time window, separated by commas

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.