mapbox / mapbox/mapbox-gl-compare
Integrate compare map with mapbox-gl-draw
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)

Thank you.
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
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