mapbox / mapbox/mapbox-gl-js

Add ability to control feature altitude via a style spec property

Open
#3,993 66 comments 70 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Continued from https://github.com/mapbox/DEPRECATED-mapbox-gl/issues/6

> @peterqliu
> We should take advantage of the extra dimension that map pitching affords us, and use depth to visualize overlapping elements that would otherwise obstruct each other.
>
> ![screen shot 2015-12-15 at 4 51 20 pm](https://cloud.githubusercontent.com/assets/4551508/11907508/534aaa06-a589-11e5-92ab-c68e9e42f599.png)
>
> Currently, the layer stack order is dictated by the sequence it was specified in the stylesheet; when applied, the proposed z-offset would override that. This is analogous to HTML's natural stacking order overridden by `z-index` in CSS.
>
> Also, label rendering order is currently tightly bound to layers' z-order, because they both key off of the stylesheet layer sequence. Adding z-offset will free us to decide which layers get rendering priority, regardless of whether they go above or below other layers.
>
> cc @lucaswoj @kkaefer

cc @tmcw @samanpwbb @jfirebaugh @ansis

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 by reading the linked predecessor issue and the stylesheet layer-order and label-rendering behavior described here. The intended result is a style-spec property that controls feature altitude independently of stylesheet order, while allowing label rendering priority to be decided separately; no files or tests are named.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.