How to remove a poi label from the standard style mapbox (Restaurant for example)
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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