mapbox / mapbox/mapbox-maps-ios

Add outlineWidth property to FillLayer

Open
#2,039 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged feature :green_apple:
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.