mapbox / mapbox/mapbox-gl-compare

Integrate compare map with mapbox-gl-draw

Open
#51 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
152
Forks
43
PR merge metrics
No merged PRs in 30d

Description

It would be nice if we could have the ability to (easily) draw a polygon across the slider (on both maps at the same time). Is this possible?

My current workaround is to move the slider out of the way when drawing on either side of the map which isnt the greatest UX and creates complicated syncing code to maintain.

The gif shows a Leaflet app with functionality as desired. One can see the live app [here](https://eos.com/landviewer)

![Screen Recording 2023-08-15 at 6 09 25 PM](https://github.com/mapbox/mapbox-gl-compare/assets/1740152/75970eb9-3d1e-4ce0-90b7-13446298f262)

Thank you.

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

The issue names mapbox-gl-compare and mapbox-gl-draw but no files or tests. Start by locating the compare map's synchronization entry point and reviewing the linked recording or live example. Done means a polygon can be drawn across the slider on both maps at once without moving the slider or adding fragile manual syncing.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.