Dose ModelLayer with geojson source support materialOverrides paint property?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
## Motivation
I have a set of models such as street lights, traffic lights,
I need to use materialOverrides paint property to render different effect, such as different light color,light status like on/off.
I'm now using ModelSource, but the model layer will fetch each glb file included in uri property for every model.
I'm thinking about 2 solutions:
1. ModelLayer with geojson source supports materialOverrides paint property.
2. Add "model-id" support to ModelLayer with Model Source, so that the same model file will be fetched only once.
## Design Alternatives
## Design
### Mock-Up
### Concepts
### Implementation
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 ModelLayer behavior for GeoJSON sources and ModelSource URIs, focusing on materialOverrides and the proposed model-id concept. Clarify which alternative is preferred, then define completion as supporting the selected behavior without fetching the same model separately for every feature.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- computer-graphics, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100