@maplibre/maplibre-react-native 11.0.0-beta.30 → 11.0.0-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/org/maplibre/reactnative/components/layer/MLRNLayer.kt +8 -8
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyle.kt +60 -0
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFactory.kt +3005 -0
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleValue.kt +159 -0
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.kt +3 -1
- package/ios/components/layer/style/MLRNStyle.h +1 -1
- package/ios/components/layer/style/MLRNStyle.m +1 -1
- package/lib/commonjs/utils/getStylePropertyType.js +1 -1
- package/lib/module/utils/getStylePropertyType.js +1 -1
- package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts +92 -59
- package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts.map +1 -1
- package/lib/typescript/module/types/MapLibreRNStyles.d.ts +92 -59
- package/lib/typescript/module/types/MapLibreRNStyles.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/types/MapLibreRNStyles.ts +102 -119
- package/src/utils/getStylePropertyType.ts +1 -1
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyle.java +0 -76
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFactory.java +0 -2285
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFunctionParser.java +0 -94
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleValue.java +0 -207
- package/android/src/main/java/org/maplibre/reactnative/events/AndroidCallbackEvent.java +0 -34
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// DO NOT MODIFY
|
|
2
|
-
// This file is auto-generated from scripts/src/templates/
|
|
2
|
+
// This file is auto-generated from scripts/src/templates/renderMapLibreRNStyles.ts
|
|
3
3
|
|
|
4
4
|
import { type ImageSourcePropType } from "react-native";
|
|
5
5
|
|
|
@@ -115,6 +115,9 @@ export type ExpressionField =
|
|
|
115
115
|
| ExpressionField[]
|
|
116
116
|
| { [key: string]: ExpressionField };
|
|
117
117
|
|
|
118
|
+
/**
|
|
119
|
+
* @deprecated
|
|
120
|
+
*/
|
|
118
121
|
export type Expression = [ExpressionName, ...ExpressionField[]];
|
|
119
122
|
|
|
120
123
|
type ExpressionParameters =
|
|
@@ -134,6 +137,9 @@ export type Value<T, AllowedParameters extends ExpressionParameters[] = []> =
|
|
|
134
137
|
| T
|
|
135
138
|
| Expression;
|
|
136
139
|
|
|
140
|
+
/**
|
|
141
|
+
* @deprecated
|
|
142
|
+
*/
|
|
137
143
|
export interface FillLayerStyle {
|
|
138
144
|
/**
|
|
139
145
|
* Sorts features in ascending order based on this value. Features with a higher
|
|
@@ -153,9 +159,8 @@ export interface FillLayerStyle {
|
|
|
153
159
|
* value will also affect the 1px stroke around the fill, if the stroke is used.
|
|
154
160
|
*/
|
|
155
161
|
fillOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
156
|
-
|
|
157
162
|
/**
|
|
158
|
-
* The transition affecting any changes to this layer
|
|
163
|
+
* The transition affecting any changes to this layer's fillOpacity property.
|
|
159
164
|
*/
|
|
160
165
|
fillOpacityTransition?: Transition;
|
|
161
166
|
/**
|
|
@@ -166,9 +171,8 @@ export interface FillLayerStyle {
|
|
|
166
171
|
* @disabledBy fillPattern
|
|
167
172
|
*/
|
|
168
173
|
fillColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
169
|
-
|
|
170
174
|
/**
|
|
171
|
-
* The transition affecting any changes to this layer
|
|
175
|
+
* The transition affecting any changes to this layer's fillColor property.
|
|
172
176
|
*/
|
|
173
177
|
fillColorTransition?: Transition;
|
|
174
178
|
/**
|
|
@@ -178,9 +182,8 @@ export interface FillLayerStyle {
|
|
|
178
182
|
* @disabledBy fillPattern
|
|
179
183
|
*/
|
|
180
184
|
fillOutlineColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
181
|
-
|
|
182
185
|
/**
|
|
183
|
-
* The transition affecting any changes to this layer
|
|
186
|
+
* The transition affecting any changes to this layer's fillOutlineColor
|
|
184
187
|
* property.
|
|
185
188
|
*/
|
|
186
189
|
fillOutlineColorTransition?: Transition;
|
|
@@ -189,9 +192,8 @@ export interface FillLayerStyle {
|
|
|
189
192
|
* up, respectively.
|
|
190
193
|
*/
|
|
191
194
|
fillTranslate?: Value<Translation, ["zoom"]>;
|
|
192
|
-
|
|
193
195
|
/**
|
|
194
|
-
* The transition affecting any changes to this layer
|
|
196
|
+
* The transition affecting any changes to this layer's fillTranslate property.
|
|
195
197
|
*/
|
|
196
198
|
fillTranslateTransition?: Transition;
|
|
197
199
|
/**
|
|
@@ -207,12 +209,15 @@ export interface FillLayerStyle {
|
|
|
207
209
|
* levels.
|
|
208
210
|
*/
|
|
209
211
|
fillPattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
|
|
210
|
-
|
|
211
212
|
/**
|
|
212
|
-
* The transition affecting any changes to this layer
|
|
213
|
+
* The transition affecting any changes to this layer's fillPattern property.
|
|
213
214
|
*/
|
|
214
215
|
fillPatternTransition?: Transition;
|
|
215
216
|
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @deprecated
|
|
220
|
+
*/
|
|
216
221
|
export interface LineLayerStyle {
|
|
217
222
|
/**
|
|
218
223
|
* The display of line endings.
|
|
@@ -243,9 +248,8 @@ export interface LineLayerStyle {
|
|
|
243
248
|
* The opacity at which the line will be drawn.
|
|
244
249
|
*/
|
|
245
250
|
lineOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
246
|
-
|
|
247
251
|
/**
|
|
248
|
-
* The transition affecting any changes to this layer
|
|
252
|
+
* The transition affecting any changes to this layer's lineOpacity property.
|
|
249
253
|
*/
|
|
250
254
|
lineOpacityTransition?: Transition;
|
|
251
255
|
/**
|
|
@@ -254,9 +258,8 @@ export interface LineLayerStyle {
|
|
|
254
258
|
* @disabledBy linePattern
|
|
255
259
|
*/
|
|
256
260
|
lineColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
257
|
-
|
|
258
261
|
/**
|
|
259
|
-
* The transition affecting any changes to this layer
|
|
262
|
+
* The transition affecting any changes to this layer's lineColor property.
|
|
260
263
|
*/
|
|
261
264
|
lineColorTransition?: Transition;
|
|
262
265
|
/**
|
|
@@ -264,9 +267,8 @@ export interface LineLayerStyle {
|
|
|
264
267
|
* up, respectively.
|
|
265
268
|
*/
|
|
266
269
|
lineTranslate?: Value<Translation, ["zoom"]>;
|
|
267
|
-
|
|
268
270
|
/**
|
|
269
|
-
* The transition affecting any changes to this layer
|
|
271
|
+
* The transition affecting any changes to this layer's lineTranslate property.
|
|
270
272
|
*/
|
|
271
273
|
lineTranslateTransition?: Transition;
|
|
272
274
|
/**
|
|
@@ -279,9 +281,8 @@ export interface LineLayerStyle {
|
|
|
279
281
|
* Stroke thickness.
|
|
280
282
|
*/
|
|
281
283
|
lineWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
282
|
-
|
|
283
284
|
/**
|
|
284
|
-
* The transition affecting any changes to this layer
|
|
285
|
+
* The transition affecting any changes to this layer's lineWidth property.
|
|
285
286
|
*/
|
|
286
287
|
lineWidthTransition?: Transition;
|
|
287
288
|
/**
|
|
@@ -289,9 +290,8 @@ export interface LineLayerStyle {
|
|
|
289
290
|
* width of the inner gap.
|
|
290
291
|
*/
|
|
291
292
|
lineGapWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
292
|
-
|
|
293
293
|
/**
|
|
294
|
-
* The transition affecting any changes to this layer
|
|
294
|
+
* The transition affecting any changes to this layer's lineGapWidth property.
|
|
295
295
|
*/
|
|
296
296
|
lineGapWidthTransition?: Transition;
|
|
297
297
|
/**
|
|
@@ -301,18 +301,16 @@ export interface LineLayerStyle {
|
|
|
301
301
|
* negative value results in an outset.
|
|
302
302
|
*/
|
|
303
303
|
lineOffset?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
304
|
-
|
|
305
304
|
/**
|
|
306
|
-
* The transition affecting any changes to this layer
|
|
305
|
+
* The transition affecting any changes to this layer's lineOffset property.
|
|
307
306
|
*/
|
|
308
307
|
lineOffsetTransition?: Transition;
|
|
309
308
|
/**
|
|
310
309
|
* Blur applied to the line, in pixels.
|
|
311
310
|
*/
|
|
312
311
|
lineBlur?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
313
|
-
|
|
314
312
|
/**
|
|
315
|
-
* The transition affecting any changes to this layer
|
|
313
|
+
* The transition affecting any changes to this layer's lineBlur property.
|
|
316
314
|
*/
|
|
317
315
|
lineBlurTransition?: Transition;
|
|
318
316
|
/**
|
|
@@ -328,9 +326,8 @@ export interface LineLayerStyle {
|
|
|
328
326
|
* @disabledBy linePattern
|
|
329
327
|
*/
|
|
330
328
|
lineDasharray?: Value<number[], ["zoom", "feature"]>;
|
|
331
|
-
|
|
332
329
|
/**
|
|
333
|
-
* The transition affecting any changes to this layer
|
|
330
|
+
* The transition affecting any changes to this layer's lineDasharray property.
|
|
334
331
|
*/
|
|
335
332
|
lineDasharrayTransition?: Transition;
|
|
336
333
|
/**
|
|
@@ -339,9 +336,8 @@ export interface LineLayerStyle {
|
|
|
339
336
|
* zoomDependent expressions will be evaluated only at integer zoom levels.
|
|
340
337
|
*/
|
|
341
338
|
linePattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
|
|
342
|
-
|
|
343
339
|
/**
|
|
344
|
-
* The transition affecting any changes to this layer
|
|
340
|
+
* The transition affecting any changes to this layer's linePattern property.
|
|
345
341
|
*/
|
|
346
342
|
linePatternTransition?: Transition;
|
|
347
343
|
/**
|
|
@@ -352,6 +348,10 @@ export interface LineLayerStyle {
|
|
|
352
348
|
*/
|
|
353
349
|
lineGradient?: Value<string, ["line-progress"]>;
|
|
354
350
|
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* @deprecated
|
|
354
|
+
*/
|
|
355
355
|
export interface SymbolLayerStyle {
|
|
356
356
|
/**
|
|
357
357
|
* Label placement relative to its geometry.
|
|
@@ -698,9 +698,8 @@ export interface SymbolLayerStyle {
|
|
|
698
698
|
* @requires iconImage
|
|
699
699
|
*/
|
|
700
700
|
iconOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
701
|
-
|
|
702
701
|
/**
|
|
703
|
-
* The transition affecting any changes to this layer
|
|
702
|
+
* The transition affecting any changes to this layer's iconOpacity property.
|
|
704
703
|
*/
|
|
705
704
|
iconOpacityTransition?: Transition;
|
|
706
705
|
/**
|
|
@@ -709,9 +708,8 @@ export interface SymbolLayerStyle {
|
|
|
709
708
|
* @requires iconImage
|
|
710
709
|
*/
|
|
711
710
|
iconColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
712
|
-
|
|
713
711
|
/**
|
|
714
|
-
* The transition affecting any changes to this layer
|
|
712
|
+
* The transition affecting any changes to this layer's iconColor property.
|
|
715
713
|
*/
|
|
716
714
|
iconColorTransition?: Transition;
|
|
717
715
|
/**
|
|
@@ -720,9 +718,8 @@ export interface SymbolLayerStyle {
|
|
|
720
718
|
* @requires iconImage
|
|
721
719
|
*/
|
|
722
720
|
iconHaloColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
723
|
-
|
|
724
721
|
/**
|
|
725
|
-
* The transition affecting any changes to this layer
|
|
722
|
+
* The transition affecting any changes to this layer's iconHaloColor property.
|
|
726
723
|
*/
|
|
727
724
|
iconHaloColorTransition?: Transition;
|
|
728
725
|
/**
|
|
@@ -735,9 +732,8 @@ export interface SymbolLayerStyle {
|
|
|
735
732
|
* @requires iconImage
|
|
736
733
|
*/
|
|
737
734
|
iconHaloWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
738
|
-
|
|
739
735
|
/**
|
|
740
|
-
* The transition affecting any changes to this layer
|
|
736
|
+
* The transition affecting any changes to this layer's iconHaloWidth property.
|
|
741
737
|
*/
|
|
742
738
|
iconHaloWidthTransition?: Transition;
|
|
743
739
|
/**
|
|
@@ -746,9 +742,8 @@ export interface SymbolLayerStyle {
|
|
|
746
742
|
* @requires iconImage
|
|
747
743
|
*/
|
|
748
744
|
iconHaloBlur?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
749
|
-
|
|
750
745
|
/**
|
|
751
|
-
* The transition affecting any changes to this layer
|
|
746
|
+
* The transition affecting any changes to this layer's iconHaloBlur property.
|
|
752
747
|
*/
|
|
753
748
|
iconHaloBlurTransition?: Transition;
|
|
754
749
|
/**
|
|
@@ -759,9 +754,8 @@ export interface SymbolLayerStyle {
|
|
|
759
754
|
* @requires iconImage
|
|
760
755
|
*/
|
|
761
756
|
iconTranslate?: Value<Translation, ["zoom"]>;
|
|
762
|
-
|
|
763
757
|
/**
|
|
764
|
-
* The transition affecting any changes to this layer
|
|
758
|
+
* The transition affecting any changes to this layer's iconTranslate property.
|
|
765
759
|
*/
|
|
766
760
|
iconTranslateTransition?: Transition;
|
|
767
761
|
/**
|
|
@@ -776,9 +770,8 @@ export interface SymbolLayerStyle {
|
|
|
776
770
|
* @requires textField
|
|
777
771
|
*/
|
|
778
772
|
textOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
779
|
-
|
|
780
773
|
/**
|
|
781
|
-
* The transition affecting any changes to this layer
|
|
774
|
+
* The transition affecting any changes to this layer's textOpacity property.
|
|
782
775
|
*/
|
|
783
776
|
textOpacityTransition?: Transition;
|
|
784
777
|
/**
|
|
@@ -787,9 +780,8 @@ export interface SymbolLayerStyle {
|
|
|
787
780
|
* @requires textField
|
|
788
781
|
*/
|
|
789
782
|
textColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
790
|
-
|
|
791
783
|
/**
|
|
792
|
-
* The transition affecting any changes to this layer
|
|
784
|
+
* The transition affecting any changes to this layer's textColor property.
|
|
793
785
|
*/
|
|
794
786
|
textColorTransition?: Transition;
|
|
795
787
|
/**
|
|
@@ -798,9 +790,8 @@ export interface SymbolLayerStyle {
|
|
|
798
790
|
* @requires textField
|
|
799
791
|
*/
|
|
800
792
|
textHaloColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
801
|
-
|
|
802
793
|
/**
|
|
803
|
-
* The transition affecting any changes to this layer
|
|
794
|
+
* The transition affecting any changes to this layer's textHaloColor property.
|
|
804
795
|
*/
|
|
805
796
|
textHaloColorTransition?: Transition;
|
|
806
797
|
/**
|
|
@@ -810,9 +801,8 @@ export interface SymbolLayerStyle {
|
|
|
810
801
|
* @requires textField
|
|
811
802
|
*/
|
|
812
803
|
textHaloWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
813
|
-
|
|
814
804
|
/**
|
|
815
|
-
* The transition affecting any changes to this layer
|
|
805
|
+
* The transition affecting any changes to this layer's textHaloWidth property.
|
|
816
806
|
*/
|
|
817
807
|
textHaloWidthTransition?: Transition;
|
|
818
808
|
/**
|
|
@@ -821,9 +811,8 @@ export interface SymbolLayerStyle {
|
|
|
821
811
|
* @requires textField
|
|
822
812
|
*/
|
|
823
813
|
textHaloBlur?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
824
|
-
|
|
825
814
|
/**
|
|
826
|
-
* The transition affecting any changes to this layer
|
|
815
|
+
* The transition affecting any changes to this layer's textHaloBlur property.
|
|
827
816
|
*/
|
|
828
817
|
textHaloBlurTransition?: Transition;
|
|
829
818
|
/**
|
|
@@ -834,9 +823,8 @@ export interface SymbolLayerStyle {
|
|
|
834
823
|
* @requires textField
|
|
835
824
|
*/
|
|
836
825
|
textTranslate?: Value<Translation, ["zoom"]>;
|
|
837
|
-
|
|
838
826
|
/**
|
|
839
|
-
* The transition affecting any changes to this layer
|
|
827
|
+
* The transition affecting any changes to this layer's textTranslate property.
|
|
840
828
|
*/
|
|
841
829
|
textTranslateTransition?: Transition;
|
|
842
830
|
/**
|
|
@@ -846,6 +834,10 @@ export interface SymbolLayerStyle {
|
|
|
846
834
|
*/
|
|
847
835
|
textTranslateAnchor?: Value<"map" | "viewport", ["zoom"]>;
|
|
848
836
|
}
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* @deprecated
|
|
840
|
+
*/
|
|
849
841
|
export interface CircleLayerStyle {
|
|
850
842
|
/**
|
|
851
843
|
* Sorts features in ascending order based on this value. Features with a higher
|
|
@@ -860,18 +852,16 @@ export interface CircleLayerStyle {
|
|
|
860
852
|
* Circle radius.
|
|
861
853
|
*/
|
|
862
854
|
circleRadius?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
863
|
-
|
|
864
855
|
/**
|
|
865
|
-
* The transition affecting any changes to this layer
|
|
856
|
+
* The transition affecting any changes to this layer's circleRadius property.
|
|
866
857
|
*/
|
|
867
858
|
circleRadiusTransition?: Transition;
|
|
868
859
|
/**
|
|
869
860
|
* The fill color of the circle.
|
|
870
861
|
*/
|
|
871
862
|
circleColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
872
|
-
|
|
873
863
|
/**
|
|
874
|
-
* The transition affecting any changes to this layer
|
|
864
|
+
* The transition affecting any changes to this layer's circleColor property.
|
|
875
865
|
*/
|
|
876
866
|
circleColorTransition?: Transition;
|
|
877
867
|
/**
|
|
@@ -879,18 +869,16 @@ export interface CircleLayerStyle {
|
|
|
879
869
|
* is full opacity.
|
|
880
870
|
*/
|
|
881
871
|
circleBlur?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
882
|
-
|
|
883
872
|
/**
|
|
884
|
-
* The transition affecting any changes to this layer
|
|
873
|
+
* The transition affecting any changes to this layer's circleBlur property.
|
|
885
874
|
*/
|
|
886
875
|
circleBlurTransition?: Transition;
|
|
887
876
|
/**
|
|
888
877
|
* The opacity at which the circle will be drawn.
|
|
889
878
|
*/
|
|
890
879
|
circleOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
891
|
-
|
|
892
880
|
/**
|
|
893
|
-
* The transition affecting any changes to this layer
|
|
881
|
+
* The transition affecting any changes to this layer's circleOpacity property.
|
|
894
882
|
*/
|
|
895
883
|
circleOpacityTransition?: Transition;
|
|
896
884
|
/**
|
|
@@ -898,9 +886,8 @@ export interface CircleLayerStyle {
|
|
|
898
886
|
* up, respectively.
|
|
899
887
|
*/
|
|
900
888
|
circleTranslate?: Value<Translation, ["zoom"]>;
|
|
901
|
-
|
|
902
889
|
/**
|
|
903
|
-
* The transition affecting any changes to this layer
|
|
890
|
+
* The transition affecting any changes to this layer's circleTranslate
|
|
904
891
|
* property.
|
|
905
892
|
*/
|
|
906
893
|
circleTranslateTransition?: Transition;
|
|
@@ -923,9 +910,8 @@ export interface CircleLayerStyle {
|
|
|
923
910
|
* `circleRadius` .
|
|
924
911
|
*/
|
|
925
912
|
circleStrokeWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
926
|
-
|
|
927
913
|
/**
|
|
928
|
-
* The transition affecting any changes to this layer
|
|
914
|
+
* The transition affecting any changes to this layer's circleStrokeWidth
|
|
929
915
|
* property.
|
|
930
916
|
*/
|
|
931
917
|
circleStrokeWidthTransition?: Transition;
|
|
@@ -933,9 +919,8 @@ export interface CircleLayerStyle {
|
|
|
933
919
|
* The stroke color of the circle.
|
|
934
920
|
*/
|
|
935
921
|
circleStrokeColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
936
|
-
|
|
937
922
|
/**
|
|
938
|
-
* The transition affecting any changes to this layer
|
|
923
|
+
* The transition affecting any changes to this layer's circleStrokeColor
|
|
939
924
|
* property.
|
|
940
925
|
*/
|
|
941
926
|
circleStrokeColorTransition?: Transition;
|
|
@@ -943,13 +928,16 @@ export interface CircleLayerStyle {
|
|
|
943
928
|
* The opacity of the circle's stroke.
|
|
944
929
|
*/
|
|
945
930
|
circleStrokeOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
946
|
-
|
|
947
931
|
/**
|
|
948
|
-
* The transition affecting any changes to this layer
|
|
932
|
+
* The transition affecting any changes to this layer's circleStrokeOpacity
|
|
949
933
|
* property.
|
|
950
934
|
*/
|
|
951
935
|
circleStrokeOpacityTransition?: Transition;
|
|
952
936
|
}
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* @deprecated
|
|
940
|
+
*/
|
|
953
941
|
export interface HeatmapLayerStyle {
|
|
954
942
|
/**
|
|
955
943
|
* Whether this layer is displayed.
|
|
@@ -960,9 +948,8 @@ export interface HeatmapLayerStyle {
|
|
|
960
948
|
* makes the heatmap smoother, but less detailed.
|
|
961
949
|
*/
|
|
962
950
|
heatmapRadius?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
963
|
-
|
|
964
951
|
/**
|
|
965
|
-
* The transition affecting any changes to this layer
|
|
952
|
+
* The transition affecting any changes to this layer's heatmapRadius property.
|
|
966
953
|
*/
|
|
967
954
|
heatmapRadiusTransition?: Transition;
|
|
968
955
|
/**
|
|
@@ -976,9 +963,8 @@ export interface HeatmapLayerStyle {
|
|
|
976
963
|
* globally. Primarily used for adjusting the heatmap based on zoom level.
|
|
977
964
|
*/
|
|
978
965
|
heatmapIntensity?: Value<number, ["zoom"]>;
|
|
979
|
-
|
|
980
966
|
/**
|
|
981
|
-
* The transition affecting any changes to this layer
|
|
967
|
+
* The transition affecting any changes to this layer's heatmapIntensity
|
|
982
968
|
* property.
|
|
983
969
|
*/
|
|
984
970
|
heatmapIntensityTransition?: Transition;
|
|
@@ -991,12 +977,15 @@ export interface HeatmapLayerStyle {
|
|
|
991
977
|
* The global opacity at which the heatmap layer will be drawn.
|
|
992
978
|
*/
|
|
993
979
|
heatmapOpacity?: Value<number, ["zoom"]>;
|
|
994
|
-
|
|
995
980
|
/**
|
|
996
|
-
* The transition affecting any changes to this layer
|
|
981
|
+
* The transition affecting any changes to this layer's heatmapOpacity property.
|
|
997
982
|
*/
|
|
998
983
|
heatmapOpacityTransition?: Transition;
|
|
999
984
|
}
|
|
985
|
+
|
|
986
|
+
/**
|
|
987
|
+
* @deprecated
|
|
988
|
+
*/
|
|
1000
989
|
export interface FillExtrusionLayerStyle {
|
|
1001
990
|
/**
|
|
1002
991
|
* Whether this layer is displayed.
|
|
@@ -1007,9 +996,8 @@ export interface FillExtrusionLayerStyle {
|
|
|
1007
996
|
* perLayer, not perFeature, basis, and dataDriven styling is not available.
|
|
1008
997
|
*/
|
|
1009
998
|
fillExtrusionOpacity?: Value<number, ["zoom"]>;
|
|
1010
|
-
|
|
1011
999
|
/**
|
|
1012
|
-
* The transition affecting any changes to this layer
|
|
1000
|
+
* The transition affecting any changes to this layer's fillExtrusionOpacity
|
|
1013
1001
|
* property.
|
|
1014
1002
|
*/
|
|
1015
1003
|
fillExtrusionOpacityTransition?: Transition;
|
|
@@ -1023,9 +1011,8 @@ export interface FillExtrusionLayerStyle {
|
|
|
1023
1011
|
* @disabledBy fillExtrusionPattern
|
|
1024
1012
|
*/
|
|
1025
1013
|
fillExtrusionColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
1026
|
-
|
|
1027
1014
|
/**
|
|
1028
|
-
* The transition affecting any changes to this layer
|
|
1015
|
+
* The transition affecting any changes to this layer's fillExtrusionColor
|
|
1029
1016
|
* property.
|
|
1030
1017
|
*/
|
|
1031
1018
|
fillExtrusionColorTransition?: Transition;
|
|
@@ -1034,9 +1021,8 @@ export interface FillExtrusionLayerStyle {
|
|
|
1034
1021
|
* (on the flat plane), respectively.
|
|
1035
1022
|
*/
|
|
1036
1023
|
fillExtrusionTranslate?: Value<Translation, ["zoom"]>;
|
|
1037
|
-
|
|
1038
1024
|
/**
|
|
1039
|
-
* The transition affecting any changes to this layer
|
|
1025
|
+
* The transition affecting any changes to this layer's fillExtrusionTranslate
|
|
1040
1026
|
* property.
|
|
1041
1027
|
*/
|
|
1042
1028
|
fillExtrusionTranslateTransition?: Transition;
|
|
@@ -1053,9 +1039,8 @@ export interface FillExtrusionLayerStyle {
|
|
|
1053
1039
|
* integer zoom levels.
|
|
1054
1040
|
*/
|
|
1055
1041
|
fillExtrusionPattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
|
|
1056
|
-
|
|
1057
1042
|
/**
|
|
1058
|
-
* The transition affecting any changes to this layer
|
|
1043
|
+
* The transition affecting any changes to this layer's fillExtrusionPattern
|
|
1059
1044
|
* property.
|
|
1060
1045
|
*/
|
|
1061
1046
|
fillExtrusionPatternTransition?: Transition;
|
|
@@ -1063,9 +1048,8 @@ export interface FillExtrusionLayerStyle {
|
|
|
1063
1048
|
* The height with which to extrude this layer.
|
|
1064
1049
|
*/
|
|
1065
1050
|
fillExtrusionHeight?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
1066
|
-
|
|
1067
1051
|
/**
|
|
1068
|
-
* The transition affecting any changes to this layer
|
|
1052
|
+
* The transition affecting any changes to this layer's fillExtrusionHeight
|
|
1069
1053
|
* property.
|
|
1070
1054
|
*/
|
|
1071
1055
|
fillExtrusionHeightTransition?: Transition;
|
|
@@ -1076,9 +1060,8 @@ export interface FillExtrusionLayerStyle {
|
|
|
1076
1060
|
* @requires fillExtrusionHeight
|
|
1077
1061
|
*/
|
|
1078
1062
|
fillExtrusionBase?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
1079
|
-
|
|
1080
1063
|
/**
|
|
1081
|
-
* The transition affecting any changes to this layer
|
|
1064
|
+
* The transition affecting any changes to this layer's fillExtrusionBase
|
|
1082
1065
|
* property.
|
|
1083
1066
|
*/
|
|
1084
1067
|
fillExtrusionBaseTransition?: Transition;
|
|
@@ -1088,6 +1071,10 @@ export interface FillExtrusionLayerStyle {
|
|
|
1088
1071
|
*/
|
|
1089
1072
|
fillExtrusionVerticalGradient?: Value<boolean, ["zoom"]>;
|
|
1090
1073
|
}
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* @deprecated
|
|
1077
|
+
*/
|
|
1091
1078
|
export interface RasterLayerStyle {
|
|
1092
1079
|
/**
|
|
1093
1080
|
* Whether this layer is displayed.
|
|
@@ -1097,18 +1084,16 @@ export interface RasterLayerStyle {
|
|
|
1097
1084
|
* The opacity at which the image will be drawn.
|
|
1098
1085
|
*/
|
|
1099
1086
|
rasterOpacity?: Value<number, ["zoom"]>;
|
|
1100
|
-
|
|
1101
1087
|
/**
|
|
1102
|
-
* The transition affecting any changes to this layer
|
|
1088
|
+
* The transition affecting any changes to this layer's rasterOpacity property.
|
|
1103
1089
|
*/
|
|
1104
1090
|
rasterOpacityTransition?: Transition;
|
|
1105
1091
|
/**
|
|
1106
1092
|
* Rotates hues around the color wheel.
|
|
1107
1093
|
*/
|
|
1108
1094
|
rasterHueRotate?: Value<number, ["zoom"]>;
|
|
1109
|
-
|
|
1110
1095
|
/**
|
|
1111
|
-
* The transition affecting any changes to this layer
|
|
1096
|
+
* The transition affecting any changes to this layer's rasterHueRotate
|
|
1112
1097
|
* property.
|
|
1113
1098
|
*/
|
|
1114
1099
|
rasterHueRotateTransition?: Transition;
|
|
@@ -1117,9 +1102,8 @@ export interface RasterLayerStyle {
|
|
|
1117
1102
|
* brightness.
|
|
1118
1103
|
*/
|
|
1119
1104
|
rasterBrightnessMin?: Value<number, ["zoom"]>;
|
|
1120
|
-
|
|
1121
1105
|
/**
|
|
1122
|
-
* The transition affecting any changes to this layer
|
|
1106
|
+
* The transition affecting any changes to this layer's rasterBrightnessMin
|
|
1123
1107
|
* property.
|
|
1124
1108
|
*/
|
|
1125
1109
|
rasterBrightnessMinTransition?: Transition;
|
|
@@ -1128,9 +1112,8 @@ export interface RasterLayerStyle {
|
|
|
1128
1112
|
* brightness.
|
|
1129
1113
|
*/
|
|
1130
1114
|
rasterBrightnessMax?: Value<number, ["zoom"]>;
|
|
1131
|
-
|
|
1132
1115
|
/**
|
|
1133
|
-
* The transition affecting any changes to this layer
|
|
1116
|
+
* The transition affecting any changes to this layer's rasterBrightnessMax
|
|
1134
1117
|
* property.
|
|
1135
1118
|
*/
|
|
1136
1119
|
rasterBrightnessMaxTransition?: Transition;
|
|
@@ -1138,9 +1121,8 @@ export interface RasterLayerStyle {
|
|
|
1138
1121
|
* Increase or reduce the saturation of the image.
|
|
1139
1122
|
*/
|
|
1140
1123
|
rasterSaturation?: Value<number, ["zoom"]>;
|
|
1141
|
-
|
|
1142
1124
|
/**
|
|
1143
|
-
* The transition affecting any changes to this layer
|
|
1125
|
+
* The transition affecting any changes to this layer's rasterSaturation
|
|
1144
1126
|
* property.
|
|
1145
1127
|
*/
|
|
1146
1128
|
rasterSaturationTransition?: Transition;
|
|
@@ -1148,9 +1130,8 @@ export interface RasterLayerStyle {
|
|
|
1148
1130
|
* Increase or reduce the contrast of the image.
|
|
1149
1131
|
*/
|
|
1150
1132
|
rasterContrast?: Value<number, ["zoom"]>;
|
|
1151
|
-
|
|
1152
1133
|
/**
|
|
1153
|
-
* The transition affecting any changes to this layer
|
|
1134
|
+
* The transition affecting any changes to this layer's rasterContrast property.
|
|
1154
1135
|
*/
|
|
1155
1136
|
rasterContrastTransition?: Transition;
|
|
1156
1137
|
/**
|
|
@@ -1165,6 +1146,10 @@ export interface RasterLayerStyle {
|
|
|
1165
1146
|
*/
|
|
1166
1147
|
rasterFadeDuration?: Value<number, ["zoom"]>;
|
|
1167
1148
|
}
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* @deprecated
|
|
1152
|
+
*/
|
|
1168
1153
|
export interface HillshadeLayerStyle {
|
|
1169
1154
|
/**
|
|
1170
1155
|
* Whether this layer is displayed.
|
|
@@ -1186,9 +1171,8 @@ export interface HillshadeLayerStyle {
|
|
|
1186
1171
|
* Intensity of the hillshade
|
|
1187
1172
|
*/
|
|
1188
1173
|
hillshadeExaggeration?: Value<number, ["zoom"]>;
|
|
1189
|
-
|
|
1190
1174
|
/**
|
|
1191
|
-
* The transition affecting any changes to this layer
|
|
1175
|
+
* The transition affecting any changes to this layer's hillshadeExaggeration
|
|
1192
1176
|
* property.
|
|
1193
1177
|
*/
|
|
1194
1178
|
hillshadeExaggerationTransition?: Transition;
|
|
@@ -1198,9 +1182,8 @@ export interface HillshadeLayerStyle {
|
|
|
1198
1182
|
* sources.
|
|
1199
1183
|
*/
|
|
1200
1184
|
hillshadeShadowColor?: Value<string, ["zoom"]>;
|
|
1201
|
-
|
|
1202
1185
|
/**
|
|
1203
|
-
* The transition affecting any changes to this layer
|
|
1186
|
+
* The transition affecting any changes to this layer's hillshadeShadowColor
|
|
1204
1187
|
* property.
|
|
1205
1188
|
*/
|
|
1206
1189
|
hillshadeShadowColorTransition?: Transition;
|
|
@@ -1210,9 +1193,8 @@ export interface HillshadeLayerStyle {
|
|
|
1210
1193
|
* sources.
|
|
1211
1194
|
*/
|
|
1212
1195
|
hillshadeHighlightColor?: Value<string, ["zoom"]>;
|
|
1213
|
-
|
|
1214
1196
|
/**
|
|
1215
|
-
* The transition affecting any changes to this layer
|
|
1197
|
+
* The transition affecting any changes to this layer's hillshadeHighlightColor
|
|
1216
1198
|
* property.
|
|
1217
1199
|
*/
|
|
1218
1200
|
hillshadeHighlightColorTransition?: Transition;
|
|
@@ -1221,13 +1203,16 @@ export interface HillshadeLayerStyle {
|
|
|
1221
1203
|
* gorges.
|
|
1222
1204
|
*/
|
|
1223
1205
|
hillshadeAccentColor?: Value<string, ["zoom"]>;
|
|
1224
|
-
|
|
1225
1206
|
/**
|
|
1226
|
-
* The transition affecting any changes to this layer
|
|
1207
|
+
* The transition affecting any changes to this layer's hillshadeAccentColor
|
|
1227
1208
|
* property.
|
|
1228
1209
|
*/
|
|
1229
1210
|
hillshadeAccentColorTransition?: Transition;
|
|
1230
1211
|
}
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* @deprecated
|
|
1215
|
+
*/
|
|
1231
1216
|
export interface BackgroundLayerStyle {
|
|
1232
1217
|
/**
|
|
1233
1218
|
* Whether this layer is displayed.
|
|
@@ -1239,9 +1224,8 @@ export interface BackgroundLayerStyle {
|
|
|
1239
1224
|
* @disabledBy backgroundPattern
|
|
1240
1225
|
*/
|
|
1241
1226
|
backgroundColor?: Value<string, ["zoom"]>;
|
|
1242
|
-
|
|
1243
1227
|
/**
|
|
1244
|
-
* The transition affecting any changes to this layer
|
|
1228
|
+
* The transition affecting any changes to this layer's backgroundColor
|
|
1245
1229
|
* property.
|
|
1246
1230
|
*/
|
|
1247
1231
|
backgroundColorTransition?: Transition;
|
|
@@ -1252,9 +1236,8 @@ export interface BackgroundLayerStyle {
|
|
|
1252
1236
|
* levels.
|
|
1253
1237
|
*/
|
|
1254
1238
|
backgroundPattern?: Value<ResolvedImageType, ["zoom"]>;
|
|
1255
|
-
|
|
1256
1239
|
/**
|
|
1257
|
-
* The transition affecting any changes to this layer
|
|
1240
|
+
* The transition affecting any changes to this layer's backgroundPattern
|
|
1258
1241
|
* property.
|
|
1259
1242
|
*/
|
|
1260
1243
|
backgroundPatternTransition?: Transition;
|
|
@@ -1262,13 +1245,16 @@ export interface BackgroundLayerStyle {
|
|
|
1262
1245
|
* The opacity at which the background will be drawn.
|
|
1263
1246
|
*/
|
|
1264
1247
|
backgroundOpacity?: Value<number, ["zoom"]>;
|
|
1265
|
-
|
|
1266
1248
|
/**
|
|
1267
|
-
* The transition affecting any changes to this layer
|
|
1249
|
+
* The transition affecting any changes to this layer's backgroundOpacity
|
|
1268
1250
|
* property.
|
|
1269
1251
|
*/
|
|
1270
1252
|
backgroundOpacityTransition?: Transition;
|
|
1271
1253
|
}
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* @deprecated
|
|
1257
|
+
*/
|
|
1272
1258
|
export interface LightLayerStyle {
|
|
1273
1259
|
/**
|
|
1274
1260
|
* Whether extruded geometries are lit relative to the map or viewport.
|
|
@@ -1285,18 +1271,16 @@ export interface LightLayerStyle {
|
|
|
1285
1271
|
* directly below).
|
|
1286
1272
|
*/
|
|
1287
1273
|
position?: Value<number[], ["zoom"]>;
|
|
1288
|
-
|
|
1289
1274
|
/**
|
|
1290
|
-
* The transition affecting any changes to this layer
|
|
1275
|
+
* The transition affecting any changes to this layer's position property.
|
|
1291
1276
|
*/
|
|
1292
1277
|
positionTransition?: Transition;
|
|
1293
1278
|
/**
|
|
1294
1279
|
* Color tint for lighting extruded geometries.
|
|
1295
1280
|
*/
|
|
1296
1281
|
color?: Value<string, ["zoom"]>;
|
|
1297
|
-
|
|
1298
1282
|
/**
|
|
1299
|
-
* The transition affecting any changes to this layer
|
|
1283
|
+
* The transition affecting any changes to this layer's color property.
|
|
1300
1284
|
*/
|
|
1301
1285
|
colorTransition?: Transition;
|
|
1302
1286
|
/**
|
|
@@ -1304,9 +1288,8 @@ export interface LightLayerStyle {
|
|
|
1304
1288
|
* as more extreme contrast.
|
|
1305
1289
|
*/
|
|
1306
1290
|
intensity?: Value<number, ["zoom"]>;
|
|
1307
|
-
|
|
1308
1291
|
/**
|
|
1309
|
-
* The transition affecting any changes to this layer
|
|
1292
|
+
* The transition affecting any changes to this layer's intensity property.
|
|
1310
1293
|
*/
|
|
1311
1294
|
intensityTransition?: Transition;
|
|
1312
1295
|
}
|