mapbox / mapbox/mapbox-maps-android

Support of data expressions for lineCap in a LineLayer

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

Nobody has claimed this yet.

auto-triaged feature :green_apple:
Dominant language
Kotlin
Stars
578
Forks
161
PR merge metrics
No merged PRs in 30d

Description

## New Feature
I have a geojson containing multiple line features with line-cap values in each feature properties and I would like to be able to set it on my map layer.
Currently, this doesn't work :
`lineCap = LineCapValue(Expression.get("lineCap", style))`
(In my case, the property `lineCap` is inside `style` in the feature properties)

## Why
It would make it possible to make a layer on the map corresponding to more properties from the geojson and therefore be a better representation of a feature.

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

Start by locating the LineLayer lineCap property and the Expression.get("lineCap", style) usage described in the issue. Trace how data expressions are handled for line-cap values, then verify that line features can supply per-feature values from their style properties and that the existing line-cap behavior remains supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.