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

Filters markers slow #89

Open
lecappa opened this issue Jan 11, 2024 · 1 comment
Open

Filters markers slow #89

lecappa opened this issue Jan 11, 2024 · 1 comment

Comments

@lecappa
Copy link

lecappa commented Jan 11, 2024

Hello !
I need to filters marker into GMapCluster but it's very very slow (1400 markers).

const moviesFilter = computed(() => { return movies.value.filter((movie) => { return platforms.value.includes(movie.type) }).filter((movie) => { if (departments_selected.value.length > 0) { return departments_selected.value.filter((department) => { return movie.departments.indexOf(department) !== -1; }).length > 0; } return true; }) })

Maybe with setVisible ?

Thx for you help

PS : Sorry for my english ;-)

@IBakeCookies
Copy link

I noticed that the cluster makes many pins x10 slower. I know this is not a solution but try to remove the whole cluster thingy and use pins only. If you need a cluster, I suggest rewriting the map with the native google map API, because the slowness comes from the overhead of Vue.

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