@@ -81,8 +81,11 @@ const {
81
81
..._defaultProps
82
82
} = SolidPolygonLayer . defaultProps ;
83
83
84
- const defaultProps : DefaultProps < GeoArrowSolidPolygonLayerProps > = {
85
- ..._defaultProps ,
84
+ // Default props added by us
85
+ const ourDefaultProps : Pick <
86
+ GeoArrowSolidPolygonLayerProps ,
87
+ "_normalize" | "_windingOrder" | "_validate"
88
+ > = {
86
89
// Note: this diverges from upstream, where here we default to no
87
90
// normalization
88
91
_normalize : false ,
@@ -92,6 +95,11 @@ const defaultProps: DefaultProps<GeoArrowSolidPolygonLayerProps> = {
92
95
_validate : true ,
93
96
} ;
94
97
98
+ const defaultProps : DefaultProps < GeoArrowSolidPolygonLayerProps > = {
99
+ ..._defaultProps ,
100
+ ...ourDefaultProps ,
101
+ } ;
102
+
95
103
export class GeoArrowSolidPolygonLayer <
96
104
ExtraProps extends { } = { }
97
105
> extends CompositeLayer <
@@ -170,9 +178,8 @@ export class GeoArrowSolidPolygonLayer<
170
178
171
179
const props : SolidPolygonLayerProps = {
172
180
// Note: because this is a composite layer and not doing the rendering
173
- // itself, we still have to pass in defaultProps as the default in this
174
- // props object
175
- ...defaultProps ,
181
+ // itself, we still have to pass in our defaultProps
182
+ ...ourDefaultProps ,
176
183
...otherProps ,
177
184
178
185
// used for picking purposes
@@ -261,9 +268,8 @@ export class GeoArrowSolidPolygonLayer<
261
268
262
269
const props : SolidPolygonLayerProps = {
263
270
// Note: because this is a composite layer and not doing the rendering
264
- // itself, we still have to pass in defaultProps as the default in this
265
- // props object
266
- ...defaultProps ,
271
+ // itself, we still have to pass in our defaultProps
272
+ ...ourDefaultProps ,
267
273
...otherProps ,
268
274
269
275
// used for picking purposes
0 commit comments