mapbox / mapbox/mapbox-gl-js

Allow composition of maps onto one canvas

Open
#9,011 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature :green_apple:
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/

![image](https://user-images.githubusercontent.com/164625/69425458-2c86ad80-0d2b-11ea-9762-a3b0f5f47814.png)

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

Open the contributing guide

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.