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

feat: A new way to deal with the POIs #2033

Merged
merged 1 commit into from
Mar 18, 2023
Merged

Conversation

Ebubeker
Copy link
Contributor

We structured the POIs in a better way. We avoided adding them to the layer, so we just saved them in the vuex state. The application is much faster now.

I also implemented a formula to calculate the right max zoom level where the POIs start to show up:

log2(P / (W / 2000))

P: The count of the POIs and AOIs
W: The width of the map in pixels

Note!!! : please check the data upload. I removed the dispatch because it was freezing my browser and because it would repeat the step of storing the POIs. Maybe we just make a process where we add them and not request them over again.

@Ebubeker Ebubeker requested a review from EPajares March 18, 2023 17:42
@EPajares EPajares merged commit a916838 into goat-community:dev Mar 18, 2023
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

Successfully merging this pull request may close these issues.

2 participants