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

[Fix] basemap frozen when incrementally loading GeoArrow #2474

Merged

Conversation

lixun910
Copy link
Collaborator

Description: It seems the basemap refreshing could be frozen when testing incremental loading GeoArrow file using https://kepler.gl/demo, which is different than the rendering behavior when testing on local dev env (see screenshot in #2459):

incremental-issue

This PR is to fix this issue by slightly delaying the nextFileBatch action to avoid the racing condition between basemap rendering and deck.gl geojson layer rendering:

incremental-issue-fix

@@ -19,7 +19,7 @@
// THE SOFTWARE.

import * as arrow from 'apache-arrow';
import {BinaryFeatures} from '@loaders.gl/schema';
import {BinaryFeatureCollection} from '@loaders.gl/schema';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this module not upgraded to 4.0? If not, this looks confusing if loaders 4.0 is exporting two such similar types...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it’s because the "@loaders.gl/schema": "^4.1.0-alpha.2" was missing in package.json. Should be fixed in this PR.

@ibgreen
Copy link
Collaborator

ibgreen commented Dec 14, 2023

Ok let me try to get a alpha.4 out sooner rather than later.

Copy link
Collaborator

@ibgreen ibgreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You want 4.1.0-alpha.4

Signed-off-by: Xun Li <lixun910@gmail.com>
Signed-off-by: Xun Li <lixun910@gmail.com>
Signed-off-by: Xun Li <lixun910@gmail.com>
Signed-off-by: Xun Li <lixun910@gmail.com>
@lixun910 lixun910 force-pushed the xli/fix-incremental-load-geoarrow branch from 488f1e2 to 2705260 Compare December 18, 2023 16:55
Signed-off-by: Xun Li <lixun910@gmail.com>
Signed-off-by: Xun Li <lixun910@gmail.com>
@lixun910 lixun910 merged commit 1544e20 into keplergl:master Dec 18, 2023
5 checks passed
@lixun910 lixun910 deleted the xli/fix-incremental-load-geoarrow branch December 18, 2023 18:22
chrisgervang pushed a commit to chrisgervang/kepler.gl that referenced this pull request Dec 19, 2023
Signed-off-by: Chris Gervang <chris@gervang.com>
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