mapbox / mapbox/mapbox-gl-js

GeoJson LineString coordinates should accept altitude/elevation/height

Open
#10,174 25 comments 26 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Motivation

Mapbox v2.0.0 has such cool new 3d Terrain. I was all thrilled and tried it out on my paragliding page for displaying flights. Using a geoJson source, LineString coordinates (lat, lng) do not include altitude/elevation/height. So the result in my type: 'line' layer is quite unusable.
image

Design Alternatives

  1. Include altitude as a third field in LineString coordinates
  2. Offer another possibility for showing 3d track information

Design

Design 1 should be quite easy to implement, if extending the standard is a possibility
Design 2 would require more code changes, but would offer more functionality (individual color and individual width for each line segment, realtime updates, ...)

In both ways, there will be more fun with 3d with 3d lines in mapbpx gl js v2.0.0

EDIT: Related to https://github.com/mapbox/mapbox-gl-js/issues/3993

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 names no files, tests, or entry points. Begin by tracing GeoJSON LineString handling in mapbox-gl-js and read related issue #3993; compare the altitude-coordinate and alternate 3D-track proposals. Done criteria are a decided design and corresponding support for 3D LineString track data, with coverage agreed by maintainers.

Written by the indexing model from the issue text.

Assessment

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