1. A concise explanation of the problem you’re experiencing.
For certain entities that I have added to a site, when I click on that entity image the Rectangle Marker appears at a distance from that image. However, to check, when I click on that remote location the rectangle does not appear.
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
This is interesting. I think that green marker uses the entity/primitives bounding sphere to figure out where to place it. Is the green marker always offset in the same way regardless of what the angle of the camera is when clicking?
Are you able to share these buildings model? It could be a bug in Cesium or just something in the building (is this a 3D tileset?)
I found A Fix for this specific example. I use the term “Fix” rather than “Solution” because by changing the .dae to .gltf/.glb step sequence I see the Marker in an appropriate position. I wonder if there is a specific reason that the new sequence works?
The problem appeared when I imported a .dae into Sketchup, fixed the model a bit, and directly exported it from Sketchup to a .gltf or glb so that it looked appropriate in Cesium. The “Click Marker” was in an inappropriate position,
The Fix was to export it from Sketchup to a .dae than use the online Cesium converter to converted it to, in this case, a .glb.
I’m glad you found a workaround. Thanks for posting it! I’m sure it will help others in the community.
My best guess is that somehow the SketchUp glTF exporter isn’t correctly computing the model’s dimensions. Have you tried using the COLLADA2GLTF converter?