Skip to content

feat: make tile loading indicator more explicit - #3305

Merged
igorDykhta merged 3 commits into
masterfrom
igr/tile-loading-indicator-changes
Feb 9, 2026
Merged

feat: make tile loading indicator more explicit#3305
igorDykhta merged 3 commits into
masterfrom
igr/tile-loading-indicator-changes

Conversation

@igorDykhta

@igorDykhta igorDykhta commented Feb 9, 2026

Copy link
Copy Markdown
Collaborator
  • make tile loading indicator more explicit
Screenshot 2026-02-09 at 5 14 57 PM

Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a more explicit map tile loading indicator by tracking vector tile loads (in addition to existing raster tracking) and enhancing the UI presentation in the components package.

Changes:

  • Introduce a global counter for “vector tiles being loaded” and export a getter via @kepler.gl/layers.
  • Increment/decrement the vector tile counter around getTileData in the custom MVTLayer.
  • Update the LoadingIndicator UI to show raster/vector counts and add a spinner + new styling.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
src/layers/src/vector-tile/vector-tile-layer.ts Adds global vector tile loading counter utilities and exports getter.
src/layers/src/vector-tile/mvt-layer.ts Wraps getTileData to track vector tile load progress.
src/layers/src/index.ts Re-exports getNumVectorTilesBeingLoaded from layers entrypoint.
src/components/src/loading-indicator.tsx Enhances loading indicator styling and displays raster/vector tile loading counts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/layers/src/vector-tile/vector-tile-layer.ts Outdated
Comment thread src/layers/src/vector-tile/mvt-layer.ts Outdated
Comment thread src/components/src/loading-indicator.tsx Outdated
Comment thread src/components/src/loading-indicator.tsx Outdated
Comment thread src/layers/src/vector-tile/mvt-layer.ts Outdated
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
@igorDykhta
igorDykhta merged commit 3762a2b into master Feb 9, 2026
4 of 9 checks passed
@igorDykhta
igorDykhta deleted the igr/tile-loading-indicator-changes branch February 9, 2026 19:21
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