mapbox / mapbox/mapbox-maps-android
Add Jetpack Compose style layer from json
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 578
- Forks
- 161
- PR merge metrics
- No merged PRs in 30d
Description
## New Feature
<- Description of the feature being requested and any outcomes desired, an example use case, and any suggestions for solution ->
To be able to create a style layer from a json string using the new Jetpack Compose api. You can initialise a `MapStyle` with a json but you can't do the same with style layers like a `CircleLayer` or `SymbolLayer`.
This is only currently possible if you access the style api within a MapEffect and then call `addStyleLayer` that takes a `Value` param that can be initialised `fromJson`.
## Why
<- 1-2 sentence description of why you're requesting this feature. What problem does it solve? Why is it valuable? ->
Would massively simplify creating style layers in compose from predefined DSL jsons
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 reading the Jetpack Compose APIs for MapStyle, CircleLayer, and SymbolLayer, then compare them with MapEffect.addStyleLayer and the Value.fromJson path described in the issue. Done means Compose style layers can be created from predefined JSON strings without accessing the style API through MapEffect.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100