mapbox / mapbox/mapbox-gl-js

Dose ModelLayer with geojson source support materialOverrides paint property?

Open
#13,609 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.