visgl / visgl/deck.gl

[Feat] Stroke a sprite/pattern for lines/polygon outlines

Open
#8,722 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
TypeScript
Stars
14.6k
Forks
2.3k
Avg merge
2d 9h
Merged PRs (30d)
42

Description

Target Use Case

I would like to use the MVTLayer to display airspaces on a map as on openaip.net:

image

It requires a sprite to be used when rendering lines/polygon.

The corresponding property in the MapBox style specification is line-pattern

Proposal

It can be implemented by adding a getLinePattern() property in the [stroke options)(https://deck.gl/docs/api-reference/layers/geojson-layer#stroke-options)

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 MVTLayer and the stroke options described in the issue, then compare the requested behavior with the linked Mapbox line-pattern specification. Done means line and polygon outlines can render a supplied sprite or pattern through a getLinePattern() property, with the relevant behavior covered by the project's existing tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.