mapbox / mapbox/mapbox-maps-ios

Resetting ambient/directional lights to standard style after setLights

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

Nobody has claimed this yet.

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.