CesiumGS / CesiumGS/cesium

Pole filling bug

Open
#4,891 0 comments 0 reactions 0 assignees View on GitHub
category - terrain and imagery onramping type - bug
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

Adding a new imagery layer and then deleting the base layer causes the pole filling code to not run on the new base layer. Here's code to reproduce. Hit step 1, then hit step 2, notice the poll is now the base blue instead of filled in.

```javascript
var viewer = new Cesium.Viewer('cesiumContainer');

Sandcastle.addToolbarButton("Step 1", function(){
viewer.imageryLayers.addImageryProvider(new Cesium.BingMapsImageryProvider({
url: 'https://dev.virtualearth.net',
mapStyle : Cesium.BingMapsStyle.ROAD
}));
});

Sandcastle.addToolbarButton("Step 2", function(){
viewer.imageryLayers.remove(viewer.imageryLayers.get(0));
});
```

Contributor guide

Open the contributing guide

Research direction

Run the supplied Sandcastle reproduction, using viewer.imageryLayers.addImageryProvider and remove as the entry points. Inspect the imagery-layer pole-filling behavior after adding the Bing layer and removing the original base layer; done when the new base layer still fills the pole correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.