Hi, I am having an issue where the green select box is not showing on my entity, when my Rectangle graphics is clamped to ground and the terrain is enabled. When I switch to ellipsoid, the box is then in the correct location.
I have had problems with rectangles in the past where it wouldn’t conform to the terrain, but since i worked that out, I am now having this issue. See images below for example
The second image shows the green box above the graphics which sometimes confuses the user whether they have actually selected the entity or not.
@Mitchell_Day
Thank you for the detailed forum post! I can see how this would give the user of your application an unintuitive and frustrating experience.
Do you think that the behavior that you are experiencing relates to the following issue?
opened 06:55PM - 02 Feb 21 UTC
type - bug
category - terrain and imagery
category - polygons/geometry
<!--
Thanks for helping us improve Cesium! Please describe what the expected be… havior is vs what actually happens.
Creating a Sandcastle example (https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/) that reproduces the issue helps us a lot in tracking down bugs. Paste the link you get from the "Share" button in Sandcastle below.
-->
[Sandcastle example](https://sandcastle.cesium.com/#c=jVZtb9s2EP4rnL9EQjxqQbpldZxggdtiwZKtqLP1wzwUNHWWiFCkQFI23ML/vUdJlCXFAfbFIo/P3T33wqO3zJCtgB0YckMU7MgCrKgK+k8ti1YTXu8XWjkmFJjVJL5eqZVKEnKXpoSRz49LIgqWgdkTyfaIUFu02YoevMSi6cYHHYjR0GBPWZreN4KPRm9F6gko0qf1GdaPrFyC2QoOY+w3DyakMnLWrAhZTXLnSjtLkhQKTTPQP1otKye0slS4BAUWjYFJKgWW62RX2NVk2qjX4dgZGmkOZ3/Xny+lFsp1KCekUNmS51DAbMwVDGdOm6ceJopbxZIZVoCrXXwLhJ1hyuIJKDfDTQXTcLLRpmDOs6mTlpQq6zgc6u8hXqmuOkvHjCN6syFS62f0Tpgjd5VFB1IwilVqKsKRg2HUgvMlb3KYgnVCMZ+lWYjmE3DHVCaBbowu3kFmAGzUuP+F/vz2oqVy+Yb+ennVbi6u6NuwfnNFry790sd/iK+JJ+pbJWcqleP+W3K0r5Yl4/B+i8n4vQFFLWvLQQFyRwPWh9za8GHcq7Jyd9yTjzaVqhckAm8kbvLss1ObJ1xrk/pIwRKnyU4bmQ6Ez7AndbmtV/RsDdvfDFOXgfso+PMntm+80FJb4b16Yo0Sx1pgXEzdDPhnUq+Blqgcodlp/6zRTRK8eNidztdvEYyMaWMTZ4aVueD9k77v7vwm5HfRk9YV7axHHdnA4R1wbDlJDJQGLEZYdwb2FiYjRVxNIm06IniVCOicPTKXU6dD0/QZUQRmwlUpHLMlsVP/ny4SOapyvNMa+1PqzM8tiWkloRTN2Bpjgr6/VOTc+z2JCgwDLFR2CDvtYgPMVQZeEPFxtmcWB1ghLLwyJev+uO9JPrRqdc+Ql00jNiT6oc1eChuc2mk0chXHYeL02Z79qTtOxHuFlJ41Ng8EJDJslVrjuxzU2PKUhDvXncTH6YY37ykXtsMQXHMmJeBLYveK50YrXVm5J942cTkQKazzITV8jvxQk22ZkGyN7IP9YTRVscaxgm0alGbkDOsXdlSCylzeBNhO2Kh+u7ASP13jZz7GovD8vBfPoI6oFeD/iv+uh5hQ/yOoGxM95LB32kI3XRcJ/LmI41fRo2YO1keX5KTmqMGPqsO7Wb807YMT2gKn+GH62tB+2pdAH95/ePqyeLhf/OF1JtPJ3Lq9hNtg8TdRlBqfKny2I0oTB0Up/fxK1hVW3FFubXA/T/qq81RsiUhvTvxHIVwya/FkU0m5FF9hNbmdJ4h/oSo1jjCV/YVDFp97D8svbh8aIaV0nuD2tKbTWq6ZGVn+Dg)
Browser: All
Operating System: All
Reported also: https://github.com/TerriaJS/terriajs/issues/5057
<!--
If you can also contribute a fix, we'd absolutely appreciate it! Fixing a bug in Cesium often means fixing a bug for thousands of applications and millions of end users.
Check out the contributor guide to get started:
https://github.com/CesiumGS/cesium/blob/master/CONTRIBUTING.md
Just let us know you're working on it and we'd be happy to provide advice and feedback.
-->
When using WMS in a WebMercatorProjection instead of GeographicProjection user will get the wrong feature position in response. The issue seems to be coming from https://github.com/CesiumGS/cesium/blob/ca8b918f167421ff49966f5951ea0fc4446c1521/Source/Scene/GetFeatureInfoFormat.js#L88-L92
which incorrectly assumes that point coordinate is in GeographicProjection. Also, the issue that might affect more users is the selection indicator that is wrongly positioned. In some rare cases, it might even fly around as user rotate the globe (see photo below).
Any tips on approach solving this, thinking about passing a `tilingScheme` or `MapProjection` instance to `GetFeatureInfo`.
![image](https://user-images.githubusercontent.com/19208948/106646098-8fa9dc00-658d-11eb-8937-9f8b5e68a172.png)
![image](https://user-images.githubusercontent.com/19208948/106646169-acdeaa80-658d-11eb-82be-13c99176cd22.png)
-Sam
I don’t think it does relate exactly to that one. I have had that issue before. It was a while ago, but it came about either because:
I tried to add an entity to the screen using mouse position when in 3D mode and terrain enabled.
Or I had a setting on one of the entity graphics that causes it to shoot off somewhere random.
Sorry i currently have that same problem, but it is a different one. It is when I have a billboard graphic and change from 3D to 2D mode.