mapbox / mapbox/mapbox-gl-js

PopupOptions missing attribute

Open
#8,441 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug :lady_beetle:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Hi,

I notice that the @types/mapbox-gl/index.d.ts doesn't have all options in the interface with makes me impossible to build.

I actually add "maxWidth?: string" to the interface "PopupOptions" can you add the options, https://docs.mapbox.com/mapbox-gl-js/api/#popup, in your interface.

I cant update the interface for everyone, its in node_module

**mapbox-gl-js version**: 0.51

**browser**:chrome

### Expected Behavior

I want the maxWidth options in the interface PopupOptions

### Actual Behavior

Doesn't have maxWidth options in PopupOptions

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

Inspect @types/mapbox-gl/index.d.ts and locate the PopupOptions interface. Compare it with the popup options listed in the linked Mapbox documentation, including maxWidth, then verify that the updated declarations compile and expose the documented options.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.