Skip to content

KML works in 3D, but is getting cutoff in 2D #13190

@32dohs

Description

@32dohs

What happened?

Have loaded a KMZ file that contains an image that covers the whole world. This is an animated KMZ file, containing multiple images to show cloud cover over certain times. This works perfect on the 3D globe. But on the 2D View there is a huge gap at the 180.

Here it is in the 3D View:
Image

Here it is in the 2D View:
Image

As you can see, the KML image is missing for a large section of map around the 180.
Unfortunately, for our particular case, we need to use the 2D View and we also will be working in the affected area. Gap stays the same when zooming in, but reduces in size when panning left or right.

I have tried setting different options when loading the KML, such as ClampToGround, to no avail. I have tried loading the KML via code, and also dragging the KML onto the map, same results.

I have a attached a sample KMZ file with a single image that will show the issue.

Reproduction steps

  1. Load the KML
  2. Toggle between 3D View and 2D View
  3. 2D View has a large gap
  4. Have included a zip file containing a kmz to demonstrate the problem

cloud_cover_test.zip

...

Sandcastle example

import * as Cesium from "cesium";

const viewer = new Cesium.Viewer("cesiumContainer");

viewer.extend(Cesium.viewerDragDropMixin, {clearOnDrop : false});
viewer.dropError.addEventListener(function(viewerArg, source, error) {
window.alert('Error processing ' + source + ':' + error);
});

Environment

Browser: Google Chrome, Mozilla Firefox
CesiumJS Version: 1.137
Operating System: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions