mapbox / mapbox/mapbox-gl-styles
Help to color Icon
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 315
- Forks
- 143
- PR merge metrics
- No merged PRs in 30d
Description
Hi everyone !
I need some helps to color icons ! I have this :
<mgl-layer
id="stationsid"
type="symbol"
source="layerStations"
[layout]="{
'icon-image': 'triangle-stroked-15',
'icon-size': 1.5,
'icon-rotate': 180
}"
(click)="showPopupStation($event)"
(mouseEnter)="cursorStyle = 'pointer'"
(mouseLeave)="cursorStyle = ''">
</mgl-layer>
Any clues ?
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
The issue only provides an Angular-style snippet and does not name a repository file or test. Start by identifying how the icon-image and layout options are documented for this integration; done would be a clear explanation or documentation example showing how icon coloring is configured.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100