mapbox / mapbox/mapbox-gl-js

Implement format options for images in labels

Open
#9,403 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I dont find any documentation about the format expression for the text-field.
It is possible to change parameters for text. But is it also possible to edit image parameters like scale or color?
for example:
"text-field": ["format", ["image", "/station.png"], { "image-scale": 1.2 }]

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 no files, tests, or entry points. Start by locating the text-field format expression and image handling, then determine how image options such as scale and color are represented and tested. Done means the requested image parameters work in formatted labels and their supported usage is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.