1. A concise explanation of the problem you’re experiencing.
In my code and in the polygon sandcastle tutorial, any polygon that has a withAlpha transparency setting is not being displayed at all
2. This is straight from the sandcastle demo
This Displays Fine
var orangePolygon = viewer.entities.add({
name : ‘Orange polygon with per-position heights and outline’,
polygon : {
hierarchy : Cesium.Cartesian3.fromDegreesArrayHeights([-108.0, 25.0, 100000,
-100.0, 25.0, 100000,
-100.0, 30.0, 100000,
-108.0, 30.0, 300000]),
extrudedHeight: 0,
perPositionHeight : true,
material : Cesium.Color.ORANGE,
outline : true,
outlineColor : Cesium.Color.BLACK
This Doesn’t
var orangePolygon = viewer.entities.add({
name : ‘Orange polygon with per-position heights and outline’,
polygon : {
hierarchy : Cesium.Cartesian3.fromDegreesArrayHeights([-108.0, 25.0, 100000,
-100.0, 25.0, 100000,
-100.0, 30.0, 100000,
-108.0, 30.0, 300000]),
extrudedHeight: 0,
perPositionHeight : true,
material : Cesium.Color.ORANGE.withAlpha(0.5),
outline : true,
outlineColor : Cesium.Color.BLACK
}
4. The Cesium version you’re using, your operating system and browser.
My code worked fine in two weeks ago so perhaps an issue with the latest release? Are others having this issue? I’m running on win 7 in Chrome.