mapbox / mapbox/mapbox-gl-compare

User location over compare maps

Open
#10 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Would love to see the ability to request a user's location using `mapboxgl.GeolocateControl` to somehow overlay a user's location onto both comparison maps. Ideally a single location call to display the user's blue dot onto both maps, synchronized.

New to git & Mapbox so forgive me if I'm going about this all wrong.

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 by reading the mapboxgl.GeolocateControl documentation and the repository's comparison-map entry points. Determine how one location request could be shared by both maps, then verify that both maps display synchronized user-location indicators when geolocation is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.