fromDistanceDisplayCondition
fun fromDistanceDisplayCondition(distanceDisplayCondition: DistanceDisplayCondition): DistanceDisplayConditionGeometryInstanceAttribute(source)
Creates a new DistanceDisplayConditionGeometryInstanceAttribute instance given the provided an enabled flag and DistanceDisplayCondition.
const distanceDisplayCondition = new DistanceDisplayCondition(100.0, 10000.0);
const instance = new GeometryInstance({
geometry : geometry,
attributes : {
distanceDisplayCondition : fromDistanceDisplayCondition(distanceDisplayCondition)
}
});
Content copied to clipboard
Return
The new DistanceDisplayConditionGeometryInstanceAttribute instance.
Parameters
distanceDisplayCondition
The distance display condition.