Dynamic lines, assign a name and with one click know the name

I have an archive of GPS tracks on Google Sheet. Through a script I extracted the GPS coordinates in a compatible format that I use to build LineStrings dynamically. I have to assign to each LineString the name of the file with which they were created, column 2 of the row. With a click on the Maps component I need to know the name of the file with which they were created, for other processing. When I click on a LineString I get the name assigned automatically during creation and not the one assigned

Use the anyLineString components to set the Properties

Thanks for the suggestion, I tried using anyLineString but apparently I didn't understand how to modify the blocks. Can you provide me with further help. I can't understand what changes I need to make

See here:

and here:

for examples

You can set/get Title and Description, there is no "name" property...

Solved! The block related to the Click event was wrong. Thanks for the help
Screenshot 2025-04-24 211929