Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cesium displays data from other side of Earth when user selects polygon #12508

Open
hcarter333 opened this issue Mar 3, 2025 · 0 comments
Open

Comments

@hcarter333
Copy link

What happened?

This issue appeared yesterday (3/2) afternoon and may be related to two other issues, #12337 and #12388 that were closed with the most recent release.

When the user clicks on a polygon on the map shown below, occasionally, the selection indicator does not lock to the polygon and instead of displaying the 'name' and 'description' fields associated with the clicked polygon, displays information for a polygon roughly on the other side of the globe.

Image

The following screen video shows an occurrence of the issue. Notice the following:

  1. The selection indicator is not locked to a grid square (polygon)
  2. The value displayed, 6464 kHZ does not correspond to the color of the square the indicator is located in. The range for that color is 10762 to 12083 kHz.
  3. Double clicking on the selection indicator changes the view from Antiqua to Melbourne.
  4. The selected square near Melbourne has the same value as previously displayed.
Screen.recording.2025-03-03.9.03.57.AM.webm

This does not happn when the user selects a spire. Everything works as expected in that case.

The code for this example can be found in this Sandcastle

The underlying czml file is created by this template.

The czml template looks like this:

{%- for row in Rows %}
  {
    "id": "id {{ row['Spotter'] }} f0f2{{ row['elev_tx'] }}",
    "name": "time {{ row['timestamp'] }} f0f2 {{ row['dB'] }} kHz",
    "description": "time {{ row['timestamp'] }} f0f2 {{ row['dB'] }} kHz",
    "polygon": {
      "positions": {
        "cartographicDegrees": [
          {{ row['tx_lng'] - 2.4 }}, {{ row['tx_lat'] - 1.15 }}, 0.0,
          {{ row['tx_lng'] + 2.4 }}, {{ row['tx_lat'] - 1.15 }}, 0.0,
          {{ row['tx_lng'] + 2.4 }}, {{ row['tx_lat'] + 1.15 }}, 0.0,
          {{ row['tx_lng'] - 2.4 }}, {{ row['tx_lat'] + 1.15 }}, 0.0,
          {{ row['tx_lng'] - 2.4 }}, {{ row['tx_lat'] - 1.15 }}, 0.0
        ]
      },
      "material": {
        "solidColor": {
          "color": {
            {{ line_color(row['dB']) }}
          }
        }
      },
      "show": [
        {
          "interval": "{{ MinTime }}Z/{{ TotMapEnd }}Z",
          "boolean": true
        }
      ]
    }
  },
{%- endfor %}{% endblock %}

Reproduction steps

  1. Click on grid squares until the slection indicator does not lock to the clicked square.
  2. The value displayed, 6464 kHZ does not correspond to the color of the square the indicator is located in. The range for that color is 10762 to 12083 kHz.
  3. Double clicking on the selection indicator changes the view from Antiqua to Melbourne.
  4. The selected square near Melbourne has the same value as previously displayed.
    ...

Sandcastle example

https://sandcastle.cesium.com/#c=7VqNb9u2Ev9X2OBhkRdXysc6ZHESvDVr1gDpB/o14MVBR0u0TVQSNZJK4hb5398dSUmUrDjO2uHtARvW2KLujnen3x3vTo4icpZzzWnKPzOi54ycMMXLjHzg7JrJcJyP8ysqyZW5JEckZ9eOJLQkwWZsLk9ErinPmdwcki/IRohmUsLSQcXwzl6HUymy34RME7cQOHpCJPujZEp/YFKzm5dCZjRVB0TLklmK2wF+3g5GRi+roopZzsJZKiYsZDmdpOycz+aa5zNQF1lHlRFCZW0LXhUsf6slY/oFLc4yOmNy8VqKK56AXU6pUqYHZHOudaEOokjzlIUC2JRhy2gRCjnbXNaKW2nndMGkCmmSdMWDMpaBqkUek2mZx5qLnKSCJu9gF8V0MKg9KRekdlIsYHeiLQ0YRK8p15VJ9mPvFyfC+PpM5D8ruDhLgp9+3Nnft/uiqJYLC8kzgMIVM/oGboOK+JbEVMdzEsAzE3LQVkeAV1IxC35/hjeNDeh/J+KA/OuL4br9vZZmPIZ/ooic0DQ12Gu7Au+2vDFy9L/Cs6YpmVDFyPs352QKWyJ7QjUliskrHrMauUj1Xqbgp/FGGEbjjY4UyyRKGTMC9BwBpGCBXDOwOCdlARQmNLJaJoBNs/gX4HxrGGuETcV0t2f5DyU6q7D/45X/OaIXTM9FoogW4OesKEGTjOdRRm9A2RRi5SHCTsFPvxrVSTDPTncHB+Q1lcrGfV5mE4hwOoWoBVfh/fEG4bm5+TFhKpa8wMcSfjQ7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ll7JOCNB+OIbeN8+Z1b1Bhvc780+EfBB4+wQEJ8HNXqDRHnade3DuFajFbrje+4lT/rN/6scpNjiYOjHnCsw6p6rUyaMOmPEFaZV0FhpWNu5a5nVeYSjtTSt0pL7TUi6sPnGSy5NuqhHjduYym3bUGXIdTPbialLAdvVWMuUe1KkdvRVzbjcb1Jw1IUdnlGHmAMTQid80PTU8Jopz5r1ccNgZ0pwIODKidXTZXWP6P4ZzxKxFkVn0LJEkrKpvo/moXOiZaX7h0TLG909IVqiXR76mLh6lqtSMsL1ph1kiqLr62a8YBG6eWi7GiP2CNo/tPHAzJxG443jQ54XpSY8OepW20QvCsPgiihYcWXUMTHpHMB8GBnhOKY43qxa3AfvaGuEVfuZgsf9BMPbdrMKGm/Y0w6EVTOflfOexqV1ZJ7DkcNyE0nxnOYzpirxlcrMNkVevosF9E+qELkByFLyXrvzwdT07ApuWyWYDNBRqAQmkCb7sdbbtRWH3dLreTU3MwiIKmiTma5K5vvyn/cLrjVr9D9nyp0na+eV32oz3IHaZwsYsTHEeRyA9riqp//Ns0JIjT9mC8Iw0iyD2lQzFdnRVRgrhdxIiiO7hvUQMqGFeOdXfohqnJ/DnSm0ATj8wpiIgH6J1f0c7JVN8Ug23zk+t4thGB5GcNnPqYVIJ1R2JP8X

Environment

Browser: Chrome
CesiumJS Version: 1.126 and 1.127
Operating System: ChromeOS (Lenovo Chromebook), Windows 11, Android (Samsung S23+)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant