File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import {
1616 primitiveSphere ,
1717} from '../earth/utils' ;
1818import ExtrudePolyline from '../utils/extrude_polyline' ;
19+ import type { ILineLayerStyleOptions } from './interface' ;
1920import type { IPosition , ShapeType2D , ShapeType3D } from './shape/Path' ;
2021import { geometryShape } from './shape/Path' ;
2122import type { IExtrudeGeomety } from './shape/extrude' ;
@@ -88,14 +89,12 @@ export function PointImageTriangulation(feature: IEncodeFeature) {
8889 * @param feature 映射feature
8990 * @param styleOption 样式配置(从 buildLayerModel 传入)
9091 */
91- export function LineTriangulation ( feature : IEncodeFeature , styleOption ?: any ) {
92+ export function LineTriangulation (
93+ feature : IEncodeFeature ,
94+ styleOption ?: Partial < ILineLayerStyleOptions > ,
95+ ) {
9296 const { coordinates } = feature ;
9397
94- // let path = coordinates as number[][][] | number[][];
95- // if (!Array.isArray(path[0][0])) {
96- // path = [coordinates] as number[][][];
97- // }
98-
9998 const line = new ExtrudePolyline ( {
10099 dash : true ,
101100 join : 'bevel' ,
You can’t perform that action at this time.
0 commit comments