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

Notes query does not occur on all pan/zoom changes #232

Open
KvotheBloodless opened this issue Jan 22, 2025 · 2 comments
Open

Notes query does not occur on all pan/zoom changes #232

KvotheBloodless opened this issue Jan 22, 2025 · 2 comments

Comments

@KvotheBloodless
Copy link

Thanks to changes discussed and implemented in #207, plugins providing notes now have access to use the zoom parameter to filter out results that are not relevant at the current zoom level. Unfortunately, it seems there is some sort of caching mechanism built-in to Freeboard that causes resources to only be reloaded on zooming out and therefore revealing more map. On zoom in, Freeboard seems to use cached resources from the request made at a lower zoom level and therefore rendering the zoom parameter unusable in the context of zoom based filtering.

@panaaj
Copy link
Member

panaaj commented Jan 23, 2025

Notes get reloaded on map pan / zoom when the map centre has moved a certain distance.
You can see this behaviour in the network tab of the browser console.

@KvotheBloodless
Copy link
Author

KvotheBloodless commented Jan 23, 2025

Notes get reloaded on map pan / zoom when the map centre has moved a certain distance. You can see this behaviour in the network tab of the browser console.

Agreed the notes seem to load when the map centre moves, but never occurs when zooming in or out without panning. The desired filtering effect would be to reveal more detailed markers as the user zooms in, then remove those again as the user zooms back out. This can't work unless the notes are reloaded on zoom changes.

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