mapbox / mapbox/mapbox-gl-js

Allow right clicking on a marker to view browser context menu

Open
#12,935 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged feature :green_apple:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

## Motivation

It's currently not possible to right click on a map marker that is an Anchor tag, to open the link in a new window/tab.
Links in maps are common and the browser already has support for a context menu that should be used by default.

## Design Alternatives

The alternative is to build a custom context menu to open the link in a new tab.

## Design

Allow right clicking on markers to open browsers default context menu.

### Mock-Up

### Concepts

### Implementation

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

No files or tests are named in the issue. Start by locating the marker interaction entry point and how Anchor markers handle browser events. Done means an Anchor marker allows the browser's default context menu to appear when right-clicked, including options to open its link in a new tab or window.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.