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

Re-Implemented Geo Level for in memory, increased performance #28

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

juancki
Copy link

@juancki juancki commented Apr 19, 2021

I have reviewed this repo:

  • Found bug in [1], where an else condition is necessary to avoid defaulting to level = 5.
  • Allowed custom markers, this makes it possible to make onTap functions work, and BitmapDescriptors.
  • Implemented the Geo Level Clustering algorithm in a performant way by sorting the input based on geoHash.
    ===> this avoids the nested for loop in [2]. Nested because it is a for loop in a recursive function.
    ===> With the input sorted it is only necessary O(n) to generate all the markers in one go.
  • Removed unnecessary debug logs.
  • Updated packages

Let me know if this work for you and what not and I can rearrange the commits so you can add the PR.

[1]

[2]

juancki added 8 commits April 10, 2021 11:38
Because {} depends on clustering_google_maps from git which depends on path_provider ^1.1.0, path_provider ^1.1.0 is required.
So, because lists_polls depends on path_provider ^2.0.1, version solving failed.
pub get failed (1; So, because lists_polls depends on path_provider ^2.0.1, version solving failed.)
Because every version of clustering_google_maps from git depends on google_maps_flutter ^1.0.3 and {} depends on google_maps_flutter ^2.0.1, clustering_google_maps from git is forbidden.
So, because {} depends on clustering_google_maps from git, version solving failed.
pub get failed (1; So, because lists_polls depends on clustering_google_maps from git, version solving failed.)
Error: Method not found: 'BitmapDescriptor.fromAsset'.
              BitmapDescriptor.fromAsset(bitmapAssetPathForSingleMarker);
Removed prints in debug mode
… the array of markers at init time and caching previous results based on zoom level.
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.

1 participant