Show Preview
Show Cesium Code
Show Google Earth Code
For Google Earth Developers
All Google Earth examples
Additional Resources
Tutorials
Cesium Sandcastle
Reference Documentation
Relevant Cesium Source
Relevant Google Earth Source (
link
)
// If lineStringPlacemark doesn't already have a Style associated // with it, we create it now. if (!lineStringPlacemark.getStyleSelector()) { lineStringPlacemark.setStyleSelector(ge.createStyle('')); } // The Style of a Feature is retrieved as feature.getStyleSelector(). // The Style itself contains a LineStyle, which is what we manipulate // to change the color and width of the line. var lineStyle = lineStringPlacemark.getStyleSelector().getLineStyle(); lineStyle.setWidth(lineStyle.getWidth() + 2); lineStyle.getColor().set('6600ffff'); // aabbggrr format