rdeck icon indicating copy to clipboard operation
rdeck copied to clipboard

3D tile layer

Open yvanrichard opened this issue 2 months ago • 0 comments

Hello,

Would it be possible to add an example on how to use 3D tiles? I tried the following with tiles from Cesium ion, served via nginx:

rdeck(map_style = mapbox_dark()) |>
      add_tile_3d_layer(
        id = "lidar",
        name = "LiDAR Point Cloud",
        data = "http://localhost:8001/UNC_BP25_2025_1000_1111/tileset.json",
        point_size = 1,
        get_point_color = "#ff0000",
        visible = TRUE
      )

But it doesn't show anything and I get this console log error:

rdeck.bundle.js:1311 Uncaught (in promise) Error: 3d-tiles loader - no parser found and worker is disabled

Then I tried specifying the loader with loader = "Tiles3DLoader", but this is the console output I get:

rdeck.bundle.js:1311 loaders.gl: Top level loader option '0' not recognized. Dne @ rdeck.bundle.js:1311 rdeck.bundle.js:1311 loaders.gl: Top level loader option '1' not recognized. Dne @ rdeck.bundle.js:1311 rdeck.bundle.js:1311 loaders.gl: Top level loader option '2' not recognized. Dne @ rdeck.bundle.js:1311 [same up to option 12] rdeck.bundle.js:1311 Uncaught (in promise) TypeError: Cannot use 'in' operator to search for '0' in Tiles3DLoader

I ran out of ideas to make this work.

yvanrichard avatar Oct 05 '25 01:10 yvanrichard