Hi there,
I hope someone will respond. Thank you!
I generated B3dm and showed it in version 1.91.
I changed the color of the Feature through the following code,
tileset.tileLoad.addEventListener(function (tile) {
// console.log(tile);
var content = tile.content
var len = content.featuresLength
for (let i = 0; i < len; i++) {
var feature = content.getFeature(i)
// console.log(feature);
var eleId = feature.getProperty("eleId")
tempMap.set(eleId, feature)
feature.color = new Cesium.Color(Math.random(), Math.random(), Math.random(), 1)
}
});
Does this prove that my B3dm is ok?
However, in some perspectives, I click on the same Feature but cannot pick it, as shown in the picture below:
Where I click is where the arrow is in the scene.
The pick code is as follows:
viewer.screenSpaceEventHandler.setInputAction((movement) => {
console.log(scene.pick(movement.position));
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);