Local modification of map does not work as expected #23401
wega789
started this conversation in
Maps Related
Replies: 1 comment
-
|
Some thoughts regarding your topic
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I try to change the appearance of some ways on OsmAnd maps. The reason is I want to highlight or downgrade them according to my own cycling experience. If a track is cyclable depends e.g. on gravel size and personal fitness and the assigned tags mostly do not reflect this. Furthermore cycleways along roads are not easily recognizable. I know that I might also have to write a custom render.xml. For testing purposes I also changed the path of ways.
So far I generated a difference obf file by using the MainUtilities class with generate-obf-diff argument. When I transfer the generated obf to my smartphone and deactivate the standard map, I see all modified ways in their new position and new appearance. So far so good. But when I then activate the standard map again the way is shown in its old and new position and its new appearance is hidden by the old one. What am I missing to hide superceded data of the standard map?
By using binary inspector I think the contents of the generated obf is plausibe. Ways with moved nodes are there twice: One with tag "osmand_change=deleted" and one with the new nodes and properties. Both have the same "original_id" (OSM Id) as the original way in the standard map (but different "way ids"). Ways with only changed tags are there only once with same "original_id" and their new properties. So all information is there to prevent OsmAnd from drawing the deprecated ways. After reading discussions on file sort order I tried all kind of name variations for the difference file, e.g. adding "1", "_1", "_2025_09_02" before the .obf. To be on the safe side I stopped OsmAnd before changing the maps. The maps are in the Android/data/net.osmand.plus/files folder. What am I doing wrong?
Thank you for help.
Beta Was this translation helpful? Give feedback.
All reactions