wellenvogel / avnav

using the raspberry pi as a nav computer
MIT License
83 stars 23 forks source link

Only one overlay marker shown when no default icon is set #341

Open ukoehler opened 1 month ago

ukoehler commented 1 month ago

Version: 20240520 Openplotter

I added to files to an updated version of AvNav on OpenPlotter (unzip WesternMed.zip)

OpenCPNMarkerIcons.zip WesternMed.zip

The GPX does containws waypoints with

Activity-Diving-Snorkel, anchor and Service-Grocery1

The icons zip does contain the following PNGs Activity-Diving-Snorkel.png, anchor.png and Service-Grocery1.png plus loads of SVGs

When I add the GPX to the default overlay with the icon file set, but no default icon, all I se are the Activity-Diving-Snorkel waypoints. When setting the default icon, I see all waypoints.

This is reproducible for me.

wellenvogel commented 1 month ago

I cannot reproduce this. Screenshot_2024-05-25_17-18-39

I get this result in any case - dedicated overlay, default overlay, with or without default icon. If you encounter such strange problems you could maybe test this again from a different browser connected to the same system. Additionally you could open the developer tools in your browser, go to the network tab and check the urls being used when showing the map. With some searching you should be able to see the Icon urls that the browser is using. And you can try eacho of them in a new browser tab/window. To avoid any issues with cached images you can use "disable cache" at this network tab.

ukoehler commented 1 month ago

OK, I had to reboot the computer with the browser connecting to AvNav and got the exact opposite behaviour. I am not sure how to go on testing/using this feature.

I will try your suggestion of using the debug tools. Maybe that will help.

ukoehler commented 1 month ago

OK, another reboot and now I get the expected behaviour???

I manged to get the network tab tamed to show only the data I need. That will help giving you more info.

ukoehler commented 1 month ago

I deleted the icons file and the icons are still shown.

Interesting, while before the used icons where loaded every time I opened a chart, now I do not see any requests for those icon PNGs. The file really has vanished from the avnav/data/overlays folder.

Re-uploaded the icons file. Icons still displayed, but never loaded. Switch to default icons and back, but they are still being cached in the browser. Caching is disabled in the debug tools. That might be too late, though

wellenvogel commented 1 month ago

so just delete the browser cache and reload avnav (with shift key pressed).

ukoehler commented 1 month ago

OK, I tried deleting the application cache using the applications tab in the development tools. That did not help.

Shift reload did force a download of the icon file. That was very helpful. I will investigate further now.