mapbox / mapbox/mapbox-gl-js

Load images automated if the the given name is a url

Open
#10,100 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

api :memo: feature :green_apple:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Motivation

I dont work with sprites because for me its more flexible to load dynamic specific images. For that i used the loadImage and addImage. To make this easy work i take the url as image name.
Now i iterate over the style expressions recursive and call this functions whenever there is a url given. This only works for static image names, not if the image name is genereted dynamically by expression.
So it would make it much easier if whenever image name is a valid url then the image is loaded automated without the need of calling loadImage and addImage.

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 by tracing the loadImage and addImage entry points and the recursive style-expression handling described in the issue. Determine how dynamically generated image names are resolved, then verify that valid URL names load automatically without manual calls while existing static image behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.