Skip to content
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

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

Open
ukoehler opened this issue May 24, 2024 · 6 comments
Open

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

ukoehler opened this issue May 24, 2024 · 6 comments

Comments

@ukoehler
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

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

@ukoehler
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants