mapbox / mapbox-gl-js

Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
https://docs.mapbox.com/mapbox-gl-js/
Other
10.88k stars 2.19k forks source link

Support for Point Clouds #3450

Open daniel-j-h opened 7 years ago

daniel-j-h commented 7 years ago

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.

lbud commented 7 years ago

@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

mariokam commented 6 years ago

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

lbud commented 6 years ago

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

Scarysize commented 6 years ago

@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

robinbezak commented 6 years ago

@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 :(

mariokam commented 6 years ago

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.

andrewharvey commented 6 years ago

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

mariokam commented 5 years ago

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

andrewharvey commented 5 years ago

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

exotfboy commented 5 years ago

@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?

andrewharvey commented 5 years ago

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.

korywka commented 5 years ago

@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.

ghost commented 5 years ago

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 ....

patrickkeenan commented 4 years ago

Any update on this?

exotfboy commented 4 years ago

@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.

ondrejrohon commented 2 years ago

Any updates on this in 2021? :)

Khawlamira commented 1 year ago

Any updates in 2022 ?

mjnks commented 1 year ago

Pre-emptive plug for 2023.

aaronw-dev commented 5 months ago

Nothing, huh?