mapbox / mapbox/simplestyle-spec
Legend Attributes
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 296
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
A new 'legend-label' attribute chould be added in order to facilitate the creation of legends from data in the simplestyle-spec format. I'm working on a libraary to take simplestyle-spec data and produce an svg legend on the fly. A legend label attribute could be of use.
```
// OPTIONAL: default ""
// text to define this object in a legend
//
"legend-label": "Bus Stop",
```
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 by locating the existing simplestyle-spec attribute definitions and examples in the repository, then compare how optional properties are documented. Add the proposed optional legend-label definition and example consistently with that format, and verify the specification remains clear for legend generation from simplestyle-spec data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- json
- Domain
- documentation
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100