3D tile interactivity not working with my asset

I’m using sandbox of Cesium Sandcastle to add interactivity of my 3dTile dataset that I created with Point cloud, although application works perfectly fine with the default assets, but when I change the asset ID, it stops working.

I can see my data on the map, but metadata and LEFT Click functionality does not work. I’m getting error as

Uncaught TypeError: feature.getPropertyIds is not a function (on line 109)

You mentioned that you created that data set from a point cloud. Note that the metadata handling in this example Sandcastle makes a few assumptions about the type of the data. (Specifically: It makes the assumption that the feature is actually an instance of Cesium3DTileFeature. A cleaner solution would probably to explicitly check whether this is the case).

When creating a tileset from a point cloud, then there may be different forms of metadata associated with the points, but these are usually represented in a different way than for “geometry” (like the buildings). As far as I know, that point metadata cannot be selected with mouse clicks. It is usually only used for styling and custom shaders.

If you give some additional details (like what the source data is, what kind of metadata it contains, and how you would like to use that on the client side), then maybe someone can give more focussed hints about how to achieve your goals.

Thanks a lot for getting back.

I’m using this LAZ file F_150326_131220.laz - Google Drive

The data looks like this in QGIS along with metadata

In general, the metadata capabilities of the point cloud tiler have recently been extended, so that more of the metadata should be preserved - the corresponding blog post is at Preserving More Metadata for Point Clouds Using 3D Tiles – Cesium

But as I said: This metadata is isually not available for picking (i.e. you cannot click one individual point and display the metadata). The main goal of preserving this metadata is for styling and visualization.

Some general information about styling based on metdata can be found in Styling and Filtering 3D Tiles – Cesium

An example sandcastle that uses different colors for the points, based on the Classification, can be found at Cesium Sandcastle