GeoJson LineString coordinates should accept altitude/elevation/height
Nobody has claimed this yet.
- 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.

Design Alternatives
- Include altitude as a third field in LineString coordinates
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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