Open stripathix opened 5 years ago
Also lineDash has no effect on styling border.
Hi @stripathix, to change the background globe color you simply need to define it on the globe object:
globe.baseColor = Cesium.Color.BLUE;
.
For dashes, it is not supported yet in Cesium but could probably be easily added.
See the olStyleToCesium
function and PolylineDash
from https://cesium.com/docs/cesiumjs-ref-doc/Material.html.
Would you be willing to contribute a PR for that?
@gberaudo thanks :-). Yeah I will work on it.
Question: For globe.baseColor
, from where does this globe comes from.
@stripathix, see here how to get the Cesium scene. From there it is just the Cesium API.
To get the globe: https://cesium.com/docs/cesiumjs-ref-doc/Scene.html?classFilter=scene#globe
I want to create a planet without any tile layer. The only thing I want is countries drawn as a vector which I am able to draw using selection.html example. But the globe itself is white in color. How can I change the color of the water of the cesium planet?
It draws planet like below:
Styling of geojson countries is easy but how can i change style of water i.e. planet itself.