mapbox / mapbox/mapbox-maps-ios
Resetting ambient/directional lights to standard style after setLights
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 601
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Description
New Feature/Question
Is there any way to reset the lighting to the standard style presets after setting them to custom ambient/directional lights? While using the standard style, if you setting the lights like:
try mapView.mapboxMap.setLights(ambient: ambientLight, directional: directionalLight)
Is there any way to remove these custom lights and have the lighting revert back to what the standard style has (dawn/day/dusk/night)?
Alternatively, it would be nice to be able to either control the lights that the standard style adds, since they don't appear in the lights identifier list, or to be able to see the actual values of the directional/ambient lights for each preset so we could use them in our own lighting/transitions.
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 with the MapView.mapboxMap.setLights entry point described in the issue and inspect how standard style lighting presets are represented. The issue names no files or tests; done would mean a defined way to restore standard dawn/day/dusk/night lighting or expose and control those preset values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100