mapbox-gl-js
mapbox-gl-js copied to clipboard
Support for Point Clouds
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?):
2/ The extrusion feature seems to not support values < 1. Here's what happens for a fractional 0.5 extrusion value:
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 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
Hi there! z-offset is exactly what I need also! Any info when could be expected? Thanks!
@mariokam z-offset properties are on our long-term roadmap, but aren't prioritized in the near term (Q3).
@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 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 :(
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.
Linking to https://github.com/mapbox/vector-tile-spec/issues/35 which could hopefully make encoding point clouds in Mapbox Vector Tiles more efficient.
Is it still open? Are there any plans for extruding points in the roadmap?
@mariokam Take a look at https://blog.mapbox.com/hd-vector-maps-open-standard-335a49a45210
@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?
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.
@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.
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 ....
Any update on this?
@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.
Any updates on this in 2021? :)
Any updates in 2022 ?
Pre-emptive plug for 2023.
Nothing, huh?