Leaflet / Leaflet/Leaflet.VectorGrid

Soft redraw -- reapply styles without reloading tiles

Open
#159 8 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
676
Forks
202
PR merge metrics
No merged PRs in 30d

Description

See issue #43 and #50 for use cases, or replacing the options.vectorTileLayerStyles content in a VectorGrid layer, then calling redraw() to apply the styles. Ideally, there could be a "softer" redraw (a param to redraw() or a new refresh() function) which could reapply the styles, without re-downloading the tiles.

This would make for a significantly faster experience, as tile volume could be 1 MB or more, may be over a slow or metered network, and results in the layer becoming cleared and then reloaded one tile at a time.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the VectorGrid layer's redraw() behavior and how it handles vector tile loading. Compare the use cases in issues #43 and #50, then determine how a softer redraw or refresh could reapply vectorTileLayerStyles without downloading tiles again. Done means styles update while existing tile data remains loaded.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.