Billboard image glitch on filled area
See original GitHub issueHello, I use Cesium 1.38. Let the code and the pictures speak:
On the first picture I have NaturalEarth layer and the circles are full. On the second picture I have NaturalEarth layer too, but its alpha is 0.0. In case the first picture, only the country borders are visible (white), the “fill” is transparent. For the second I set the fill to cornflowerblue. The circles which have a number inside them are billboard images.
private drawCountryBorders(stroke: Cesium.Color, fill: Cesium.Color) {
if (this._countryBorders) {
this._cesiumViewer.dataSources.remove(this._countryBorders, true);
}
var promise: any;
promise = Cesium.GeoJsonDataSource.load('../Scripts/ne_110m_admin_0_countries.topojson', {
stroke: stroke,
fill: fill,
strokeWidth: 5, // Windows can only draw 1 wide lines: https://stackoverflow.com/questions/25394677/how-do-you-change-the-width-on-an-ellipseoutlinegeometry-in-cesium-map/25405483#25405483
markerSymbol: '?'
});
promise.then((dataSource) => {
this._countryBorders = dataSource;
this._cesiumViewer.dataSources.add(this._countryBorders);
});
}
public switchToNaturalStyle() {
this._isNaturalStyleActive = true;
var viewer = this._cesiumViewer;
viewer.scene.globe.baseColor = Cesium.Color.TRANSPARENT;
viewer.scene.globe.imageryLayers.get(0).alpha = 1.0;
viewer.scene.globe.enableLighting = true;
viewer.scene.skyBox.show = true;
viewer.scene.skyAtmosphere.show = true;
viewer.scene.sun.show = true;
viewer.scene.moon.show = true;
this.drawCountryBorders(Cesium.Color.WHITE, Cesium.Color.TRANSPARENT);
}
public switchToClassicStyle() {
this._isNaturalStyleActive = false;
var viewer = this._cesiumViewer;
viewer.scene.globe.imageryLayers.get(0).alpha = 0.0;
viewer.scene.globe.enableLighting = false;
viewer.scene.globe.baseColor = Cesium.Color.ALICEBLUE;
viewer.scene.backgroundColor = Cesium.Color.WHITESMOKE;
viewer.scene.skyBox.show = false;
viewer.scene.skyAtmosphere = new Cesium.SkyAtmosphere();
viewer.scene.skyAtmosphere.show = false;
viewer.scene.sun.show = false;
viewer.scene.moon.show = false;
this.drawCountryBorders(Cesium.Color.WHITE, Cesium.Color.CORNFLOWERBLUE);
}
If I load a .geojson instead of topojson, I have the same issue.
If I zoom more, or the angle is less, I can see the circles as full circles in the second case too, but in the first case even if the circles are far away or not perpendicular to the camera, the circles are fully visible.
Any ideas to fix this?
Regards, Levente
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
An electronic billboard had an error at night and happened to ...
Broken electronic billboard being experienced for all functioning colors on a grey day in New York City, There's no method that was the...
Read more >Glitch Mode - Wikipedia
Glitch Mode is a R&B, pop and hip hop record containing eleven tracks that evoke a "comforting" atmosphere. It was commercially successful in...
Read more >How to Create a Custom, Corner Billboard from a Photo.
Photoshop CC 2015.5 tutorial showing how to create a custom corner billboard from a photo using the Vanishing Point filter.
Read more >How to Fix the Most Annoying Bluetooth Headphone Problems
Wireless headphones and earbuds are convenient, but they come with a host of tricky troubleshooting problems. Here's how to fix them all.
Read more >The Glitch Mob - Billboard
Explore. An image of The Glitch Mob ... Nghtmre & Slander, Seven Lions, The Glitch Mob Announce Alchemy Tour 2019 ... The Glitch...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

OK, give me your phone number so I can create a google account after you sent me the activation code…
Wonderfully solved the issue! Thank you very much! ❤️