[Feat] TileLayer adapter prop for Tileset2D adapters
Maintainers usually reply within 1 day
Nobody has claimed this yet.
- #11341 by @athomct — closed without merging
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 40/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- computer-graphics
Research direction
Start from how TileLayer creates its Tileset2D through the TilesetClass prop, and from the adapter option that Tileset2D already accepts. Add an adapter prop on TileLayer with a default of null, and pass it to the tileset, creating a new tileset when the adapter changes. Keep an adapter that a custom TilesetClass sets whenever the prop is null. Linked PR #11341 was closed without merging, so check why before starting. Done means the AdapterTileset2D subclass example is no longer needed.
Written by the indexing model from the issue text.
Description
Target Use case
Tileset2D takes an adapter option, but TileLayer has no prop for it. To use an adapter, for example the loaders.gl createTileMatrixTileset2DAdapter for a COG in its own CRS, an app must write a Tileset2D subclass only to pass the adapter:
class AdapterTileset2D extends Tileset2D {
constructor(opts) {
super({...opts, adapter});
}
}
new TileLayer({TilesetClass: AdapterTileset2D, ...});
Proposal
An adapter prop on TileLayer, default null, passed to the tileset. A new adapter object creates a new tileset, because it can change tile ids and bounds. When the prop is null, an adapter that a custom TilesetClass sets stays, so existing subclasses do not change.
- Dominant language
- TypeScript
- Stars
- 14.8k
- Forks
- 2.3k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 230
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from visgl/deck.gl
-
[Bug] Tile3DLayer selects no tiles until the camera moves when tileset.json loads right after a layer updatePossibly taken @lee3Q claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
[Bug] SplitterWidget calls onDragStart on drag end; Deck._getViews writes into the app's views arrayPossibly taken @04jennet-coder claimed this 20 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
[Bug] WMSLayer positions EPSG:4326 images as CARTESIANPossibly taken @athomct claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
[Bug] MapLibreOverlay under React StrictMode: 'WebGL context already attached to device' because the attach path omits _reuseDevicesPossibly taken @jsve claimed this 84 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
visgl/deck.gl#10681 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
accessibility area:ci ci-test level:low priority:high type:test
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
skytuhua-org/Gen-V1#3132 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
drmrd/vernacular#1238 ·
Maintainers usually reply within 1 day
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
enhancement migration-prioritized
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Hudson-Pufferfish/local-party-console#136 ·
Maintainers usually reply within 1 day
-
priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day