Skip to content

3D tile layer #123

@yvanrichard

Description

@yvanrichard

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions