set light direction from datetime and map location
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
**mapbox-gl-js version**: 3.0.0-beta.1
### Question
Are there plans to integrate [suncalc](https://github.com/mourner/suncalc) or equivalent into the library so a directional light may be set based on datetime (and have location determined from the map view) along side the existing option based on azimuthal angle and polar angle?
Or will this always be left to the user, or possibility a 3rd party control?
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
Review the existing azimuthal-angle and polar-angle light options described in the issue, then examine how a datetime and map location could fit the library API. Compare integrating suncalc with leaving the behavior to users or a third-party control, and define the scope and completion criteria before implementation; no files or tests are named.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- computer-graphics, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100