mapbox-maps-ios icon indicating copy to clipboard operation
mapbox-maps-ios copied to clipboard

Possibility to draw lines and points with specific elevation/altitude

Open txaiwieser opened this issue 4 years ago • 28 comments

New Feature

We need a way to draw lines on 3d maps that have specific elevation/altitude. Currently, it seems that every path is only defined by lat/long and is always glued to the terrain.

This is what we want to achieve:

image

Why

The value is that now paths, points, and possibility annotations wouldn't be bound to the terrain anymore.

Not sure if there's a workaround to make this possible with the current beta sdk or if there's a plan to support this soon!

Thanks!

txaiwieser avatar May 18 '21 15:05 txaiwieser

Did you find a solution?

frabarbo avatar Oct 12 '21 20:10 frabarbo

Not yet :(

txaiwieser avatar Oct 12 '21 21:10 txaiwieser

We have the same need for our application - showing trajectories of flights. Are there any updates for implementing this feature or potential workarounds?

richardpineo avatar Jan 07 '22 21:01 richardpineo

Same need here - showing trajectories of flights. Any news on this feature?

bambubr avatar May 11 '22 06:05 bambubr

Same need here. We at SITA also want to display trajectories that have different altitudes. Could you please let us know when this feature will be implemented? Thank you

amiratsita avatar May 20 '22 08:05 amiratsita

Any update on if this is a feature in the works, or if there are no plans for such a feature?

jeradhoy avatar Jan 08 '23 01:01 jeradhoy

up

frabarbo avatar Feb 22 '23 14:02 frabarbo

Just peeking around. Some of you guys my find this usful: https://deck.gl/examples/mapbox/

entioentio avatar Mar 07 '23 13:03 entioentio

Or actually this demo: https://codesandbox.io/s/jolly-fast-ouoxgx

entioentio avatar Mar 07 '23 13:03 entioentio

@entioentio both great examples but I think what we need is LineString to support altitude. Height doesn't work well for flight paths and rendering webgl doesn't seem like the right solution for populating the map as a flight occurs.

The renderings do look great though! 👏

codeversed avatar Mar 07 '23 17:03 codeversed

Shoot, just now I've noticed we're in mapbox-maps-ios repo 😂 sorry!

entioentio avatar Mar 07 '23 21:03 entioentio

@knov

frabarbo avatar Mar 16 '23 10:03 frabarbo

Anyone found a solution/workaround to achieve this?

john-work-ios avatar Jun 27 '23 12:06 john-work-ios

Upvote!

jeradhoy avatar Jun 27 '23 14:06 jeradhoy

Any news about this crucial missing feature?

john-work-ios avatar Nov 27 '23 18:11 john-work-ios

Bump, any updates?

andrew-hossack avatar Mar 31 '24 23:03 andrew-hossack

Thanks for your interest in this feature, and I hope you can help to clarify the requirements. For now, the way to achieve this is with a Metal (iOS) / OpenGL (Android) powered Custom layer.

An example from our internal test code (color encodes distance to ground)...

https://github.com/mapbox/mapbox-maps-ios/assets/549216/57121da1-8d46-4a79-aae5-b6ba145962c8

Custom layer code here, samples the elevation (ground elevation) for all the points along the route and elevates bottom of the wall and and calculates the top.

@codeversed : @entioentio both great examples but I think what we need is LineString to support altitude. Height doesn't work well for flight paths and rendering webgl doesn't seem like the right solution for populating the map as a flight occurs.

@codeversed could you please explain the issue in some more details, to avoid missunderstanding?

@txaiwieser @richardpineo @bambubr @amiratsita

I'd like to verify if the altitude information height is always relative to sea level—or does it require combining (ground level offset used for landing?

astojilj avatar May 20 '24 12:05 astojilj

@astojilj thank you for the update. Is the sample code supposed to be behind a link somewhere? The result looks good enough, can the line be updated live? Example: following a plane flight live.

john-work-ios avatar May 20 '24 13:05 john-work-ios