Hi all,
Is it possible to define a distanceDisplayCondition to a polygon that was added via GeoJsonDataSource? Here’s my sample code, which is currently not working.
viewer.dataSources.add(
Cesium.GeoJsonDataSource.load(“be-current.geojson”, {
stroke: Cesium.Color.BLUE.withAlpha(0.5),
fill: Cesium.Color.BLUE.withAlpha(0.5),
strokeWidth: 4,
clampToGround: true,
distanceDisplayCondition : new Cesium.DistanceDisplayCondition(6.2e4, 1e5),
scaleByDistance: { nearFarScalar: [1.0, 2.0, 10000.0, 0.0] }
})
);
``