Skip to content

Commit 531b81d

Browse files
committed
Use global color
1 parent ac9eb53 commit 531b81d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/olcs/FeatureConverter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import olGeomSimpleGeometry from 'ol/geom/SimpleGeometry.js';
77
import {convertColorToCesium, olGeometryCloneTo4326, ol4326CoordinateToCesiumCartesian, ol4326CoordinateArrayToCsCartesians} from './core.js';
88
import VectorLayerCounterpart, {type OlFeatureToCesiumContext} from './core/VectorLayerCounterpart.js';
99
import {getUid, waitReady} from './util.js';
10-
import {type CircleGeometry, type CircleOutlineGeometry, type Primitive, type Billboard, type Label, type Matrix4, type Scene, type Geometry as CSGeometry, Color as CSColor, type GroundPrimitive, type PrimitiveCollection, type ImageMaterialProperty, type BillboardCollection, type Cartesian3, type GroundPolylinePrimitive, type PolygonHierarchy, type HeightReference, type Model, type LabelCollection, type Material} from 'cesium';
10+
import {type CircleGeometry, type CircleOutlineGeometry, type Primitive, type Billboard, type Label, type Matrix4, type Scene, type Geometry as CSGeometry, type Color as CSColor, type GroundPrimitive, type PrimitiveCollection, type ImageMaterialProperty, type BillboardCollection, type Cartesian3, type GroundPolylinePrimitive, type PolygonHierarchy, type HeightReference, type Model, type LabelCollection, type Material} from 'cesium';
1111
import type VectorLayer from 'ol/layer/Vector.js';
1212
import type ImageLayer from 'ol/layer/Image.js';
1313
import type {Feature, View} from 'ol';
@@ -259,7 +259,7 @@ export default class FeatureConverter {
259259
return csColor;
260260
} else {
261261
// Fallback to black if that was not a plain color
262-
return CSColor.BLACK;
262+
return Cesium.Color.BLACK;
263263
}
264264
}
265265

0 commit comments

Comments
 (0)