-
-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Favorite - default appearance issues #19971
Comments
Please verify if you have osmand definition at the end of the gpx file.
|
places20240528-186-aihxsw.gpx.txt try three |
Generally (in my opinion based on observation and practse) Problem with icon/color for group.
Of course, this is my proposition of icons and colors. You can change as you want. PS. Please notice that exported file from iO contains only the 1st note about a waypoint. Any added info are ommited during export by iO, so it means that you haven't newest info in osmand. You have to use iO still.
|
Thanks for the answer to my question. I've tried this before and wasn't happy with it. Now I will test it again with the additional code. I hope this gets better. Of course, this approach is no longer applicable for every user. I'll report back with my results. THANKS |
It looks bad. I am quite sure that the directory where the GPX files are located was accessed months ago. But access is no longer possible. I can't copy files there. I don't see it anymore either. Something must have changed. |
What Android version do you have? What phone (samsung, xiaomi ....)? Can you install Mixplorer from gplay or github or other app (This app is link to embeded andriod file menager that should show more than usually . You will see it in app list as second file manager) |
I've come a little further. |
first copied the gpx files to obb/net.osmand.plus/tracks/import. I could turn it on and off. However, everything is red and normal icon. |
Can you attach you gpx file? |
Here the file |
Cross-link to #19892 (comment), closely related. There seems currently a bug, probably a regression, to the effect that the point group appearacne extension at the end of GPX files is not properly handled (or perhaps ignored) when displaying the waypoint icons. |
Yes, I noticed that and try to prepare python script for you to solve it (workaround). The queation is if you can use python? (e.g. pytdroid on android or python on pc) |
@Chumva Perhaps your work on GPX appearance nid April may be related? We need to somehow have a logic where the gpx appearance extensions (tags color, icon, background) are honored in this priority order:
Code ref, as found for the Editor, already partially honoring this: OsmAnd/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/WptPtEditorFragment.java Line 368 in 928a076
But I cannot find such group color detection code outside the Editor function, and even there the identifcation of the groups seems buggy, as all wpts fall back to the favorite default color after exiting/canceling the edit dialog. |
I don't want an intermediate solution with Python. I hope the bug can be fixed in the next version. My next trip is scheduled to start at the end of July. It would be nice if it could work until then. Otherwise, I'll do the import as before, unfortunately with a lot of effort. |
@sonora GPX-specific settings only apply latest if all other are default. Also in application you can reset folder or specific track to "default view". Please note that we didn't implement yet Default Favorite appearance as we planned to make it similar to GPX Folder default settings. |
@suntri-star how to run when finnished, you find new gpx file in the directory how to modify open script in text editor you can modify icons, shape and colors as you need it is not optimalized but I'm on a trip and I have smartphon only with me and I tested one file only that I got from you. icons that you can use are in pdf https://github.com/mariush444/gmapIcons2osmand/blob/main/icons-gmap-osmand.pdf zip contains: python script, converted file of Botswana and this info |
Hello |
I adapted the small script according to my needs. Now I'm very happy with it. Thanks again. Great thing. |
The bug has been reproduced. When a custom appearance is set for a group of favorites and new favorites are imported into that group, the new favorites don't adopt the custom appearance. Currently, we haven't implemented the default appearance for favorites. As a workaround, after importing new favorites, you can change their appearance to the desired one by clicking "Apply to existing". Alternatively, if you prefer to add favorites manually, you can select "Apply only to new favorites," and all manually added favorites will inherit the custom appearance previously assigned. OsmAnd~ 4.8.0#2476m, released: 2024-06-10
|
Favorite issues related to iOverlander.
www.ioverlander.com
For example, I select a country and get a GPX file. I can open that and OSMand imports it beautifully.
A separate directory is created for each type. I can then assign each “group” its own color and/or icon if desired.
So far everything is good.
1.) If I now import another country, the same “groups” in favorites are filled with additional data. That's still ok too. But the new points then have the standard colors and icon and not those assigned with the “group”. Does anyone have a solution for this?
2.) Unfortunately now things are getting even worse. After some time, I've been traveling for a while, I reload the same country. Then the identical points appear twice and unfortunately with the default settings. Unfortunately it is not recognized that a point already exists.
Unfortunately, my approach is very laborious:
I first completely delete all iOverlander groups, as unfortunately I cannot delete them individually for each country, and then import everything again. Then assign my icon and colors and 2 weeks later I'm annoyed about the same effort. Does anyone have a better way to do this?
THANKS for every hint
The text was updated successfully, but these errors were encountered: