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

VueLayers loads select-icon before onSelect function is called #106

Open
JoshuaMoelans opened this issue Jul 25, 2022 · 1 comment
Open
Labels
bug Something isn't working

Comments

@JoshuaMoelans
Copy link
Contributor

JoshuaMoelans commented Jul 25, 2022

When clicking on a marker, the previous icon is still being used for the first 0.5s after clicking. This is noticeable when changing between a smartphone and a regular tracker. Maybe there is a way to more rapidly change the image, but doing it in onSelect in VueLayerMap is not working.

Follows #101

@JoshuaMoelans JoshuaMoelans added the bug Something isn't working label Jul 25, 2022
@JoshuaMoelans
Copy link
Contributor Author

@BenJStoffels had an idea to fix this, by preloading both styles, and using a V-if to check if the selected icon is a phone or tracker.

Will test this out after the demo day 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant