Allow composition of maps onto one canvas
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice to be able to display 2 maps on top of each other. One in the background and a smaller one on top of it in one of the corners.
Basically what is demonstrated here https://labs.mapbox.com/bites/00359/

In the demonstration both maps are rendered into their own canvas though.
I wonder if there is a way to composite both maps into one canvas using WebGL viewports?
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 with the linked Mapbox demo and the provided screenshot, then investigate the feasibility of rendering two maps into one canvas using WebGL viewports. Done means establishing whether this composition is supported and, if so, defining a workable implementation for a background map and a smaller corner map.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- computer-graphics, frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100