File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,16 @@ const LayerLayerSymbolInputType = new GraphQLInputObjectType({
2020 } ) ,
2121} ) ;
2222
23+ /** GraphQL Layer Gradient step input type definition (for heatmap) */
24+ // eslint-disable-next-line @typescript-eslint/naming-convention
25+ const LayerGradientStepInputType = new GraphQLInputObjectType ( {
26+ name : 'LayerGradientStepInputType' ,
27+ fields : ( ) => ( {
28+ color : { type : GraphQLString } ,
29+ ratio : { type : GraphQLFloat } ,
30+ } ) ,
31+ } ) ;
32+
2333/** GraphQL Layer DrawingInfo input type definition */
2434// eslint-disable-next-line @typescript-eslint/naming-convention
2535const LayerDrawingInfoInputType = new GraphQLInputObjectType ( {
@@ -33,7 +43,8 @@ const LayerDrawingInfoInputType = new GraphQLInputObjectType({
3343 symbol : { type : LayerLayerSymbolInputType } ,
3444 blur : { type : GraphQLFloat } ,
3545 radius : { type : GraphQLFloat } ,
36- gradient : { type : GraphQLString } ,
46+ minOpacity : { type : GraphQLFloat } ,
47+ gradient : { type : GraphQLList ( LayerGradientStepInputType ) } ,
3748 } ) ,
3849 } ) ,
3950 } ,
You can’t perform that action at this time.
0 commit comments