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

carto: Fix caching in ClusterTileLayer #9167

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

zbigg
Copy link
Collaborator

@zbigg zbigg commented Sep 20, 2024

Background

ClusterTileLayer was relying on Tile instances to be new or cleared or reset when new tile is loaded and used tile.userData as cache. It appears, that reloading tile doesn't instantiate new tile ... or retains userData and thus new tile would reuse aggregations from old version of self.

Fix creates separate cache in layer state to keep aggregations keyed by tile content.

Change List

  • carto: Fix caching in cluster tile layer

@zbigg zbigg force-pushed the zbigg/carto-cluster-tile-layer-caching-fix branch from 3d37d50 to 33a1f87 Compare September 20, 2024 12:12
@zbigg zbigg changed the title carto: Fix caching in cluster tile layer carto: Fix caching in ClusterTileLayer Sep 20, 2024
@coveralls
Copy link

Coverage Status

coverage: 91.776% (-0.01%) from 91.79%
when pulling 12ee0f8 on zbigg/carto-cluster-tile-layer-caching-fix
into 95ee077 on master.

@zbigg zbigg merged commit 4dd8148 into master Sep 20, 2024
4 checks passed
@zbigg zbigg deleted the zbigg/carto-cluster-tile-layer-caching-fix branch September 20, 2024 12:49
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.

3 participants