maplibre / maplibre-style-spec

MapLibre Style Specification & Utilities
https://maplibre.org/maplibre-style-spec/
Other
67 stars 57 forks source link

Design proposal: Add elevation to symbol layer #62

Open HarelM opened 1 year ago

HarelM commented 1 year ago

This still needs a bit more refinement, but the general idea is that a symbol layer should be allowed to be presented above the ground, this isn't only for when terrain is on but should also be applied when extrusion is shows to show markers, icons, and text above the ground.

The original request was described here: https://github.com/maplibre/maplibre-gl-js/issues/644

Since this is somewhat related to 3D visualization I think it can be linked to the following bounty: https://github.com/maplibre/maplibre/issues/189 Once this is refined and approved we can split this into specific issues and assigned bounties.

ovivoda commented 1 year ago

TSC meeting on April 12 notes:

Action points:

pietervdvn commented 1 year ago

For MapComplete, this would be really great to have - e.g. if a POI is located at a higher floor (or to do indoor maps).

I see two approaches for this:

My first instinct is that using the coordinate from the geojson would be the most versatile (but I have not experimented with this)

lseelenbinder commented 1 year ago

Another potentially use for this is using a raster-dem source to elevate labels (potentially with additional exaggeration) and also render lines from labels -> ground points (extruded or not), similar to how you'd show a mountain range in relief form.

I think limiting this to only GeoJSON sources would be too limiting.

HarelM commented 1 year ago

In maplibre-gl-js geojson is converted to mvt which doesn't have elevation, so this proposal is less about adding elevation to geometries and more about adding a field in the spec

cns-solutions-admin commented 1 year ago

Having an attribute would work for points, but it wouldn't for lines. Thus it would be better to support 3D coordinates:

As mapbox currently seems to ignore all 3D point/line issues (e.g. https://github.com/mapbox/vector-tile-spec/issues/111) this could be a major feature of maplibre.

HarelM commented 1 year ago

We are actively working on the next vector tiles format, but it will take time... Search for COM and COVTiles.

andrewharvey commented 3 months ago

We are actively working on the next vector tiles format, but it will take time... Search for COM and COVTiles.

Wow didn't know about these, super impressive.

Google wasn't working for me but I did eventually find the repos:

https://github.com/mactrem/com-tiles https://github.com/mactrem/cov-tiles