mapbox / mapbox/mapbox-gl-js

Confirm behavior of symbol-placement: point and LineStrings

Open
#3,808 6 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Currently, a symbol layer using `symbol-placement: point` renders a symbol for only the first coordinate pair in a LineString (see e.g. [this test case](https://github.com/mapbox/mapbox-gl-test-suite/tree/master/render-tests/symbol-geometry/linestring)).

Is this the intended behavior? It would seem more logical to render a symbol for each point in the LineString (or MultiLineString).

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 linked render test at render-tests/symbol-geometry/linestring and inspect how symbol-placement: point behaves for LineString geometry. Determine whether the current first-coordinate behavior is intended or whether symbols should appear at every point, including MultiLineString cases; done requires a decided behavior backed by the relevant test coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.