fromDistanceDisplayCondition

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)
}
});

Return

The new DistanceDisplayConditionGeometryInstanceAttribute instance.

Parameters

distanceDisplayCondition

The distance display condition.

See also