mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Support for Point Clouds

Open daniel-j-h opened this issue 8 years ago • 19 comments

I'm currently working on a library for a LiDAR and wanted to make use of Mapbox GL JS for visualizing point clouds both in real-time (while driving your car) but also statically (for the route).

For this use-case here are the road-blockers I encountered.

1/ I'm not able to extrude points. I can hack around this with small polygons. But then it seems like this is roughly the smallest polygon I can get to show up (there's probably a filter for noise?):

Smallest extruded polygons

2/ The extrusion feature seems to not support values < 1. Here's what happens for a fractional 0.5 extrusion value:

Fractional extrusion height

3/ There is no streaming source. My plan was to either use a Websocket server pushing point clouds into the browser and updating a source or exposing a GeoJSON endpoint which changes every second.

I don't expect support for point clouds in the foreseeable future. I just want to bring blockers for the point cloud / LiDAR use-case to your attention.

daniel-j-h avatar Oct 24 '16 20:10 daniel-j-h

@daniel-j-h right, extruded polygons aren't the right avenue for this. Point cloud support will become possible once we add z offset properties to different layer types (https://github.com/mapbox/mapbox-gl/issues/6#issuecomment-244193192) — z-offset circle types would seem to be the most logical display here, a la image

lbud avatar Oct 25 '16 01:10 lbud

Hi there! z-offset is exactly what I need also! Any info when could be expected? Thanks!

mariokam avatar Jul 07 '17 18:07 mariokam

@mariokam z-offset properties are on our long-term roadmap, but aren't prioritized in the near term (Q3).

lbud avatar Jul 07 '17 21:07 lbud

@mariokam Did you take a look at deck.gl? It works on top of mapbox and has a point cloud layer: https://uber.github.io/deck.gl/#/documentation/layer-catalog/point-cloud-layer

Scarysize avatar Jul 10 '17 12:07 Scarysize

@Scarysize Hey there! We need to extrude symbol custom marker :D like u can extrude polygon a give to it some height and base_height the same I need for custom marker :D Iam using more floor building extrude but i want markers on every floor :D I dont know what to do :(

robinbezak avatar Jul 10 '17 17:07 robinbezak

any updates on this topic? I think that if the polygon extrusion is working, there could be some beta version released already on points as well.

mariokam avatar Oct 30 '17 14:10 mariokam

Linking to https://github.com/mapbox/vector-tile-spec/issues/35 which could hopefully make encoding point clouds in Mapbox Vector Tiles more efficient.

andrewharvey avatar Nov 23 '17 03:11 andrewharvey

Is it still open? Are there any plans for extruding points in the roadmap?

mariokam avatar Aug 06 '18 11:08 mariokam

@mariokam Take a look at https://blog.mapbox.com/hd-vector-maps-open-standard-335a49a45210

andrewharvey avatar Aug 06 '18 11:08 andrewharvey

@andrewharvey 👍

I am interested in how is this implemented? Sounds like the vector tile is using the vector tile specification 3, but when I dig into the example, I found it use the mapbox-gl-js 0.45.0-beta. So how can it support the point to be rendered with the height attribution?

exotfboy avatar Jan 20 '19 01:01 exotfboy

I am interested in how is this implemented? Sounds like the vector tile is using the vector tile specification 3, but when I dig into the example, I found it use the mapbox-gl-js 0.45.0-beta. So how can it support the point to be rendered with the height attribution?

@exotfboy I think the example at https://blog.mapbox.com/hd-vector-maps-open-standard-335a49a45210 is using a branch of mapbox-gl-js that adds support for circles with a z coordinate.

andrewharvey avatar Jan 21 '19 05:01 andrewharvey

@exotfboy I tied. Didn't work:

https://bravecow.github.io/mapbox-point-cloud/#16.7/44.058619/-123.06807/-170.9

Some guy here got the same result: points not rendered in Z index.

korywka avatar Feb 01 '19 13:02 korywka

Do we have a status about this request? Point cloud is a critical feature for the future of web mapping application. I don’t understand why this feature is not supported by Mapbox ....

ghost avatar Apr 24 '19 12:04 ghost

Any update on this?

patrickkeenan avatar Apr 26 '20 21:04 patrickkeenan

@patrickkeenan

Any update on this?

Maybe you can check ESRI Arcgis Javascript API, it support PointCloud and other 3D like layers, however I am not sure the data format of the PointCloud Layer.

exotfboy avatar May 25 '20 01:05 exotfboy

Any updates on this in 2021? :)

ondrejrohon avatar Aug 30 '21 13:08 ondrejrohon

Any updates in 2022 ?

Khawlamira avatar Jul 22 '22 11:07 Khawlamira

Pre-emptive plug for 2023.

mjnks avatar Dec 08 '22 22:12 mjnks

Nothing, huh?

aaronw-dev avatar Jan 14 '24 21:01 aaronw-dev