[Feat] Ability to change tiles of raster <Source>
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 8.5k
- Forks
- 1.4k
- Avg merge
- 5d 17h
- Merged PRs (30d)
- 3
Description
Target Use Case
I have a <Source> of type raster in which I would like to change the tiles dynamically.
My use case is that my source is a WMS satellite pictures API of an area in which I can select the date (when it's not too cloudy), or the visualisation type (natural colours, temperature, reflection…).
Updating tiles of raster source is unsupported as it throws an exception Unable to update <Source> prop: tiles in source.ts.
I tried to create many sources at first and switch them using the source attribute of <Layer> but it doesn't seem to be updated.
Proposal
Source of type raster could support updating their tiles.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in source.ts, where updating the raster tiles property currently throws the reported exception. Trace how handles a changed source and review the existing source update behavior. Done means raster tile URLs can change dynamically without the exception, including the WMS date or visualization use case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100