mapbox / mapbox/mapbox-gl-js

How to remove a poi label from the standard style mapbox (Restaurant for example)

Open
#13,210 1 comment 0 reactions 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

Hello,
I'm trying to hide or show some poi (point of interest) labels and icons depending on they type: example Restaurant, education, museum ect..). I have seen that as shown in this [issue](https://github.com/mapbox/mapbox-gl-js/issues/8323), it's possible for the basic style. But for the standard style mapbox://styles/mapbox/standard-beta I don't have any solution and :
`map.setConfigProperty('basemap', 'showPointOfInterestLabels', false);` hide all the pois

**mapbox-gl-js 3.3.0**

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 with the map.setConfigProperty('basemap', 'showPointOfInterestLabels', false) call and compare the standard style behavior with the basic-style approach discussed in issue #8323. Verify the behavior on mapbox-gl-js 3.3.0; done means determining whether one POI category, such as Restaurant, can be hidden without hiding all POI labels and icons.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.