mapbox / mapbox/mapbox-gl-js

hatching line pattern

Open
#6,348 4 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cross-platform :tv: feature :green_apple:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

General Idea
Ability to apply a hatching pattern to line geometries, and not have the pattern rotate with geometry angle.

Existing condition
Currently, hatch patterns that are applied to lines rotate with the line geometries, which leads to a warped, non-uniform pattern.
existing condition

Desired condition
Line patterns should have the ability to be fixed, so that hatched line patterns are uniform and do not rotate with line geometries.

desired condition

Here is a cartographic example of an administrative boundary line using this technique.

screen shot 2018-03-15 at 4 07 46 pm

cc @kkaefer @ansis @nickidlugash

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

The issue provides no file or test entry point. Start by locating line-pattern rendering in mapbox-gl-js and determine where pattern rotation is applied; done means line hatching can remain uniform and fixed instead of rotating with each line geometry.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics, web-dev
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.