mapbox / mapbox/mapbox-maps-ios
Add outlineWidth property to FillLayer
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 601
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Description
## New Feature
When we create a FillLayer, we have the option to choose the outlineColor, but we can't specify the outlineWidth.
I know that there is a LineLayer class, that has a lineWidth property, and with some hacks we can use it as an outline for the FillLayer.
First, performance wise it's not optimal when we have a huge data set, and second in my case it's not even possible, because the LineLayer only accepts Line or MultiLine, while my data is a list of Polygons and is loaded from a VectorSource, so I can't transform them to MultiLines to use this workaround.
## Why
Being able to have a thicker outline for accessibility reason.
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
Locate the FillLayer definition and the existing outlineColor property, then compare it with the LineLayer lineWidth API. Add the requested outline-width capability for polygon fills and verify that it can be configured when creating a FillLayer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100