osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.38k stars 988 forks source link

Changing appearance Waypoints - cannot be persisted #19892

Open GuentherGredy opened 1 month ago

GuentherGredy commented 1 month ago

Description

For my use cases I plan routes, tracks and POIs in Garmin's BaseCamp. Then I copy them to a folder on my mobile (Android 14) and import them from there to OsmAnd (4.7.10); folder "...\Interner Speicher\Android\data\net.osmand.plus\files\tracks\ActualTour". In former versions of OsmAnd I could change properties of POIs (color, icon) and persist the changes. In the newest version this is not possible any more.

Steps to reproduce

Menu: Meine Orte Tab: Tracks Selection: folder "ActualTour" Menu: Import Selection: POI on map Press "Aktionen" Press "GPX-Wegpunkt bearbeiten" Select icon and color Press "Speichern"

Actual result

POI remains unchanged

Expected result

POI gets the edited properties

Your Environment (required)

WARNING Crash-Logs MAY contain information you deem sensitive. Review this CAREFULLY before posting your issue!

OsmAnd Version: 4.7.10
Android/iOS version: 14
Device model: Samsung Galaxy A54
Crash-Logs: ?
yuriiurshuliak commented 1 month ago

@GuentherGredy Could you provide the tracks where you can't change the POI properties, so we can test it on our end?

yuriiurshuliak commented 1 month ago

The bug could not be reproduced. To reproduce the issue, import your waypoints into the tracks folder. Then, view them on the map, click on the icon, and try to edit the GPX. Change the icon and color, and observe if the changes are successfully saved and reflected on the map.

OsmAnd~ 4.8.0#2416m, released: 2024-05-30

https://github.com/osmandapp/OsmAnd/assets/127092082/3ecda9cd-bcf0-43fd-8eb7-020df668c9c7

sonora commented 1 month ago

@yuriiurshuliak Now restart the app and check.To my experience the appearance change is lost after the next app start.

Some things to fix:

vshcherb commented 1 month ago

To do:

sonora commented 3 weeks ago

@vshcherb Upon re-reading the todo's, I am a little unclear if/when we actually transfer appearance changes to the gpx files, vs. only note that in the gpx database? What's our strategy here, does e.g. "Reset should delete osmand:points_groups" mean we modify the file itself?

vshcherb commented 3 weeks ago

Yes, we don't store point appearance in DB cause it's too much to handle for now, so we will modify file but only a specific section for waypoint appearance