I’m using this code to render the GeoJSON:
var dataSource = new Cesium.GeoJsonDataSource();
viewer.dataSources.add(dataSource);
dataSource.load(geojson, {
stroke: Cesium.Color.BLACK,
fill: Cesium.Color.DARKKHAKI,
strokeWidth: 5
});
``
When I zoom in, it loses it’s stroke:
When I leave out the options parameters, everything is fine.
I’m not sure if it’s a GeoJSON, Cesium, and/or WebGL problem.
Any thoughts on how I should add the color to the GeoJSON?
Thanks!
GeoJSON_render_sample.geojson (1.45 MB)