Skip to content

Commit f9b58b3

Browse files
authored
feat: cluster layers now support new options (#757)
* cluster layers support light mode * cluster layers support custom cluster size * clus
1 parent 30bb81c commit f9b58b3

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

src/models/layer.model.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ export interface FeatureReduction {
8282
type: 'cluster';
8383
drawingInfo?: DrawingInfo;
8484
clusterRadius?: number;
85+
lightMode?: boolean;
86+
fontSize?: number;
87+
autoSizeCluster?: boolean;
88+
defaultClusterSize?: number;
8589
}
8690

8791
/**

src/schema/inputs/layer.input.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ const LayerFeatureReductionInputType = new GraphQLInputObjectType({
8787
type: { type: GraphQLString },
8888
drawingInfo: { type: LayerDrawingInfoInputType },
8989
clusterRadius: { type: GraphQLFloat },
90+
lightMode: { type: GraphQLBoolean },
91+
fontSize: { type: GraphQLInt },
92+
autoSizeCluster: { type: GraphQLBoolean },
93+
defaultClusterSize: { type: GraphQLInt },
9094
}),
9195
});
9296

src/schema/types/layer.type.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ const LayerFeatureReduction = new GraphQLObjectType({
108108
type: { type: GraphQLString },
109109
drawingInfo: { type: LayerDrawingInfo },
110110
clusterRadius: { type: GraphQLFloat },
111+
lightMode: { type: GraphQLBoolean },
112+
fontSize: { type: GraphQLInt },
113+
autoSizeCluster: { type: GraphQLBoolean },
114+
defaultClusterSize: { type: GraphQLInt },
111115
}),
112116
});
113117

0 commit comments

Comments
 (0)