@maplibre/maplibre-react-native 11.0.0-beta.24 → 11.0.0-beta.26
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/mapview/MLRNMapView.kt +10 -8
- package/ios/modules/offline/MLRNOfflineModule.h +1 -2
- package/ios/modules/offline/MLRNOfflineModule.mm +9 -9
- package/lib/commonjs/components/annotations/callout/Callout.js +2 -1
- package/lib/commonjs/components/annotations/callout/Callout.js.map +1 -1
- package/lib/commonjs/components/annotations/marker/Marker.js +4 -2
- package/lib/commonjs/components/annotations/marker/Marker.js.map +1 -1
- package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js +6 -5
- package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
- package/lib/commonjs/components/camera/Camera.js.map +1 -1
- package/lib/commonjs/components/images/Images.js +2 -2
- package/lib/commonjs/components/layer/Layer.js +0 -1
- package/lib/commonjs/components/layer/Layer.js.map +1 -1
- package/lib/commonjs/components/map/Map.js.map +1 -1
- package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js +2 -2
- package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
- package/lib/commonjs/components/sources/image-source/ImageSource.js +3 -2
- package/lib/commonjs/components/sources/image-source/ImageSource.js.map +1 -1
- package/lib/commonjs/components/sources/raster-source/RasterSource.js +4 -3
- package/lib/commonjs/components/sources/raster-source/RasterSource.js.map +1 -1
- package/lib/commonjs/components/sources/vector-source/VectorSource.js +4 -2
- package/lib/commonjs/components/sources/vector-source/VectorSource.js.map +1 -1
- package/lib/commonjs/components/user-location/NativeUserLocation.js.map +1 -1
- package/lib/commonjs/components/user-location/UserLocation.js.map +1 -1
- package/lib/commonjs/modules/log/LogManager.js +5 -4
- package/lib/commonjs/modules/log/LogManager.js.map +1 -1
- package/lib/commonjs/modules/network/NetworkManager.js +7 -7
- package/lib/commonjs/modules/network/NetworkManager.js.map +1 -1
- package/lib/commonjs/modules/offline/OfflineManager.js +63 -47
- package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -1
- package/lib/commonjs/modules/transform-request/TransformRequestManager.js +50 -45
- package/lib/commonjs/modules/transform-request/TransformRequestManager.js.map +1 -1
- package/lib/commonjs/plugin/ios.js +9 -8
- package/lib/commonjs/plugin/ios.js.map +1 -1
- package/lib/commonjs/types/Anchor.js +5 -6
- package/lib/commonjs/types/Anchor.js.map +1 -1
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +6 -6
- package/lib/commonjs/utils/animated/AnimatedGeoJSON.js +2 -1
- package/lib/commonjs/utils/animated/AnimatedGeoJSON.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
- package/lib/commonjs/utils/convertStyleSpec.js +4 -4
- package/lib/module/components/annotations/callout/Callout.js +2 -1
- package/lib/module/components/annotations/callout/Callout.js.map +1 -1
- package/lib/module/components/annotations/marker/Marker.js +4 -2
- package/lib/module/components/annotations/marker/Marker.js.map +1 -1
- package/lib/module/components/annotations/view-annotation/ViewAnnotation.js +6 -5
- package/lib/module/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
- package/lib/module/components/camera/Camera.js.map +1 -1
- package/lib/module/components/images/Images.js +2 -2
- package/lib/module/components/layer/Layer.js +0 -1
- package/lib/module/components/layer/Layer.js.map +1 -1
- package/lib/module/components/map/Map.js.map +1 -1
- package/lib/module/components/sources/geojson-source/GeoJSONSource.js +2 -2
- package/lib/module/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
- package/lib/module/components/sources/image-source/ImageSource.js +3 -2
- package/lib/module/components/sources/image-source/ImageSource.js.map +1 -1
- package/lib/module/components/sources/raster-source/RasterSource.js +4 -3
- package/lib/module/components/sources/raster-source/RasterSource.js.map +1 -1
- package/lib/module/components/sources/vector-source/VectorSource.js +4 -2
- package/lib/module/components/sources/vector-source/VectorSource.js.map +1 -1
- package/lib/module/components/user-location/NativeUserLocation.js.map +1 -1
- package/lib/module/components/user-location/UserLocation.js.map +1 -1
- package/lib/module/modules/log/LogManager.js +5 -4
- package/lib/module/modules/log/LogManager.js.map +1 -1
- package/lib/module/modules/network/NetworkManager.js +7 -7
- package/lib/module/modules/network/NetworkManager.js.map +1 -1
- package/lib/module/modules/offline/OfflineManager.js +63 -47
- package/lib/module/modules/offline/OfflineManager.js.map +1 -1
- package/lib/module/modules/transform-request/TransformRequestManager.js +50 -45
- package/lib/module/modules/transform-request/TransformRequestManager.js.map +1 -1
- package/lib/module/plugin/ios.js +9 -8
- package/lib/module/plugin/ios.js.map +1 -1
- package/lib/module/types/Anchor.js +5 -6
- package/lib/module/types/Anchor.js.map +1 -1
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +2 -2
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js +6 -6
- package/lib/module/utils/animated/AnimatedGeoJSON.js +2 -1
- package/lib/module/utils/animated/AnimatedGeoJSON.js.map +1 -1
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
- package/lib/module/utils/convertStyleSpec.js +4 -4
- package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts +3 -2
- package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts +15 -14
- package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts +26 -24
- package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/camera/Camera.d.ts +10 -24
- package/lib/typescript/commonjs/components/camera/Camera.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/images/Images.d.ts +12 -12
- package/lib/typescript/commonjs/components/layer/Layer.d.ts +0 -1
- package/lib/typescript/commonjs/components/layer/Layer.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/map/Map.d.ts +54 -51
- package/lib/typescript/commonjs/components/map/Map.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts +40 -41
- package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts +5 -3
- package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts +20 -15
- package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts +23 -20
- package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts +9 -6
- package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts +4 -2
- package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/useCurrentPosition.d.ts +2 -2
- package/lib/typescript/commonjs/modules/log/LogManager.d.ts +5 -4
- package/lib/typescript/commonjs/modules/log/LogManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts +7 -7
- package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts +63 -47
- package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/modules/static-map/StaticMapManager.d.ts +2 -2
- package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts +56 -49
- package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/plugin/MapLibrePluginProps.d.ts +10 -15
- package/lib/typescript/commonjs/plugin/MapLibrePluginProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/plugin/ios.d.ts +2 -2
- package/lib/typescript/commonjs/plugin/ios.d.ts.map +1 -1
- package/lib/typescript/commonjs/types/Anchor.d.ts +5 -6
- package/lib/typescript/commonjs/types/Anchor.d.ts.map +1 -1
- package/lib/typescript/commonjs/types/LngLatBounds.d.ts +2 -1
- package/lib/typescript/commonjs/types/LngLatBounds.d.ts.map +1 -1
- package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts +243 -93
- package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/types/sources/PressableSourceProps.d.ts +1 -2
- package/lib/typescript/commonjs/types/sources/PressableSourceProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/commonjs/utils/animated/AnimatedCoordinatesArray.d.ts +6 -6
- package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts +2 -1
- package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
- package/lib/typescript/commonjs/utils/convertStyleSpec.d.ts +4 -4
- package/lib/typescript/module/components/annotations/callout/Callout.d.ts +3 -2
- package/lib/typescript/module/components/annotations/callout/Callout.d.ts.map +1 -1
- package/lib/typescript/module/components/annotations/marker/Marker.d.ts +15 -14
- package/lib/typescript/module/components/annotations/marker/Marker.d.ts.map +1 -1
- package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts +26 -24
- package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -1
- package/lib/typescript/module/components/camera/Camera.d.ts +10 -24
- package/lib/typescript/module/components/camera/Camera.d.ts.map +1 -1
- package/lib/typescript/module/components/images/Images.d.ts +12 -12
- package/lib/typescript/module/components/layer/Layer.d.ts +0 -1
- package/lib/typescript/module/components/layer/Layer.d.ts.map +1 -1
- package/lib/typescript/module/components/map/Map.d.ts +54 -51
- package/lib/typescript/module/components/map/Map.d.ts.map +1 -1
- package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts +40 -41
- package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -1
- package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts +5 -3
- package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts.map +1 -1
- package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts +20 -15
- package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts.map +1 -1
- package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts +23 -20
- package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts.map +1 -1
- package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts +9 -6
- package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts.map +1 -1
- package/lib/typescript/module/components/user-location/UserLocation.d.ts +4 -2
- package/lib/typescript/module/components/user-location/UserLocation.d.ts.map +1 -1
- package/lib/typescript/module/hooks/useCurrentPosition.d.ts +2 -2
- package/lib/typescript/module/modules/log/LogManager.d.ts +5 -4
- package/lib/typescript/module/modules/log/LogManager.d.ts.map +1 -1
- package/lib/typescript/module/modules/network/NetworkManager.d.ts +7 -7
- package/lib/typescript/module/modules/network/NetworkManager.d.ts.map +1 -1
- package/lib/typescript/module/modules/offline/OfflineManager.d.ts +63 -47
- package/lib/typescript/module/modules/offline/OfflineManager.d.ts.map +1 -1
- package/lib/typescript/module/modules/static-map/StaticMapManager.d.ts +2 -2
- package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts +56 -49
- package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts.map +1 -1
- package/lib/typescript/module/plugin/MapLibrePluginProps.d.ts +10 -15
- package/lib/typescript/module/plugin/MapLibrePluginProps.d.ts.map +1 -1
- package/lib/typescript/module/plugin/ios.d.ts +2 -2
- package/lib/typescript/module/plugin/ios.d.ts.map +1 -1
- package/lib/typescript/module/types/Anchor.d.ts +5 -6
- package/lib/typescript/module/types/Anchor.d.ts.map +1 -1
- package/lib/typescript/module/types/LngLatBounds.d.ts +2 -1
- package/lib/typescript/module/types/LngLatBounds.d.ts.map +1 -1
- package/lib/typescript/module/types/MapLibreRNStyles.d.ts +243 -93
- package/lib/typescript/module/types/MapLibreRNStyles.d.ts.map +1 -1
- package/lib/typescript/module/types/sources/PressableSourceProps.d.ts +1 -2
- package/lib/typescript/module/types/sources/PressableSourceProps.d.ts.map +1 -1
- package/lib/typescript/module/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/module/utils/animated/AnimatedCoordinatesArray.d.ts +6 -6
- package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts +2 -1
- package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts.map +1 -1
- package/lib/typescript/module/utils/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
- package/lib/typescript/module/utils/convertStyleSpec.d.ts +4 -4
- package/package.json +1 -2
- package/src/components/annotations/callout/Callout.tsx +3 -2
- package/src/components/annotations/marker/Marker.tsx +15 -14
- package/src/components/annotations/view-annotation/ViewAnnotation.tsx +26 -24
- package/src/components/camera/Camera.tsx +10 -24
- package/src/components/images/Images.tsx +12 -12
- package/src/components/layer/Layer.tsx +0 -1
- package/src/components/map/Map.tsx +54 -51
- package/src/components/sources/geojson-source/GeoJSONSource.tsx +40 -41
- package/src/components/sources/image-source/ImageSource.tsx +5 -3
- package/src/components/sources/raster-source/RasterSource.tsx +20 -15
- package/src/components/sources/vector-source/VectorSource.tsx +23 -20
- package/src/components/user-location/NativeUserLocation.tsx +9 -6
- package/src/components/user-location/UserLocation.tsx +4 -2
- package/src/hooks/useCurrentPosition.ts +2 -2
- package/src/modules/log/LogManager.ts +5 -4
- package/src/modules/network/NetworkManager.ts +7 -7
- package/src/modules/offline/OfflineManager.ts +63 -47
- package/src/modules/static-map/StaticMapManager.ts +2 -2
- package/src/modules/transform-request/TransformRequestManager.ts +56 -49
- package/src/plugin/MapLibrePluginProps.ts +10 -15
- package/src/plugin/ios.ts +9 -8
- package/src/types/Anchor.ts +5 -6
- package/src/types/LngLatBounds.ts +2 -1
- package/src/types/MapLibreRNStyles.ts +243 -93
- package/src/types/sources/PressableSourceProps.ts +1 -2
- package/src/utils/animated/AbstractAnimatedCoordinates.ts +2 -2
- package/src/utils/animated/AnimatedCoordinatesArray.ts +6 -6
- package/src/utils/animated/AnimatedGeoJSON.ts +2 -1
- package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +6 -6
- package/src/utils/convertStyleSpec.ts +4 -4
|
@@ -18,7 +18,8 @@ type ResolvedImageType = ImageSourcePropType | string;
|
|
|
18
18
|
export type Value<T, AllowedParameters extends ExpressionParameters[] = []> = T | Expression;
|
|
19
19
|
export interface FillLayerStyle {
|
|
20
20
|
/**
|
|
21
|
-
* Sorts features in ascending order based on this value. Features with a higher
|
|
21
|
+
* Sorts features in ascending order based on this value. Features with a higher
|
|
22
|
+
* sort key will appear above features with a lower sort key.
|
|
22
23
|
*/
|
|
23
24
|
fillSortKey?: Value<number, ["zoom", "feature"]>;
|
|
24
25
|
/**
|
|
@@ -30,7 +31,8 @@ export interface FillLayerStyle {
|
|
|
30
31
|
*/
|
|
31
32
|
fillAntialias?: Value<boolean, ["zoom"]>;
|
|
32
33
|
/**
|
|
33
|
-
* The opacity of the entire fill layer. In contrast to the `fillColor
|
|
34
|
+
* The opacity of the entire fill layer. In contrast to the `fillColor` , this
|
|
35
|
+
* value will also affect the 1px stroke around the fill, if the stroke is used.
|
|
34
36
|
*/
|
|
35
37
|
fillOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
36
38
|
/**
|
|
@@ -38,7 +40,9 @@ export interface FillLayerStyle {
|
|
|
38
40
|
*/
|
|
39
41
|
fillOpacityTransition?: Transition;
|
|
40
42
|
/**
|
|
41
|
-
* The color of the filled part of this layer. This color can be specified as
|
|
43
|
+
* The color of the filled part of this layer. This color can be specified as
|
|
44
|
+
* `rgba` with an alpha component and the color's opacity will not affect the
|
|
45
|
+
* opacity of the 1px stroke, if it is used.
|
|
42
46
|
*
|
|
43
47
|
* @disabledBy fillPattern
|
|
44
48
|
*/
|
|
@@ -48,17 +52,20 @@ export interface FillLayerStyle {
|
|
|
48
52
|
*/
|
|
49
53
|
fillColorTransition?: Transition;
|
|
50
54
|
/**
|
|
51
|
-
* The outline color of the fill. Matches the value of `fillColor` if
|
|
55
|
+
* The outline color of the fill. Matches the value of `fillColor` if
|
|
56
|
+
* unspecified.
|
|
52
57
|
*
|
|
53
58
|
* @disabledBy fillPattern
|
|
54
59
|
*/
|
|
55
60
|
fillOutlineColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
56
61
|
/**
|
|
57
|
-
* The transition affecting any changes to this layer’s fillOutlineColor
|
|
62
|
+
* The transition affecting any changes to this layer’s fillOutlineColor
|
|
63
|
+
* property.
|
|
58
64
|
*/
|
|
59
65
|
fillOutlineColorTransition?: Transition;
|
|
60
66
|
/**
|
|
61
|
-
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
67
|
+
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
68
|
+
* up, respectively.
|
|
62
69
|
*/
|
|
63
70
|
fillTranslate?: Value<Translation, ["zoom"]>;
|
|
64
71
|
/**
|
|
@@ -72,7 +79,10 @@ export interface FillLayerStyle {
|
|
|
72
79
|
*/
|
|
73
80
|
fillTranslateAnchor?: Value<"map" | "viewport", ["zoom"]>;
|
|
74
81
|
/**
|
|
75
|
-
* Name of image in sprite to use for drawing image fills. For seamless
|
|
82
|
+
* Name of image in sprite to use for drawing image fills. For seamless
|
|
83
|
+
* patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
|
|
84
|
+
* Note that zoomDependent expressions will be evaluated only at integer zoom
|
|
85
|
+
* levels.
|
|
76
86
|
*/
|
|
77
87
|
fillPattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
|
|
78
88
|
/**
|
|
@@ -98,7 +108,8 @@ export interface LineLayerStyle {
|
|
|
98
108
|
*/
|
|
99
109
|
lineRoundLimit?: Value<number, ["zoom"]>;
|
|
100
110
|
/**
|
|
101
|
-
* Sorts features in ascending order based on this value. Features with a higher
|
|
111
|
+
* Sorts features in ascending order based on this value. Features with a higher
|
|
112
|
+
* sort key will appear above features with a lower sort key.
|
|
102
113
|
*/
|
|
103
114
|
lineSortKey?: Value<number, ["zoom", "feature"]>;
|
|
104
115
|
/**
|
|
@@ -124,7 +135,8 @@ export interface LineLayerStyle {
|
|
|
124
135
|
*/
|
|
125
136
|
lineColorTransition?: Transition;
|
|
126
137
|
/**
|
|
127
|
-
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
138
|
+
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
139
|
+
* up, respectively.
|
|
128
140
|
*/
|
|
129
141
|
lineTranslate?: Value<Translation, ["zoom"]>;
|
|
130
142
|
/**
|
|
@@ -146,7 +158,8 @@ export interface LineLayerStyle {
|
|
|
146
158
|
*/
|
|
147
159
|
lineWidthTransition?: Transition;
|
|
148
160
|
/**
|
|
149
|
-
* Draws a line casing outside of a line's actual path. Value indicates the
|
|
161
|
+
* Draws a line casing outside of a line's actual path. Value indicates the
|
|
162
|
+
* width of the inner gap.
|
|
150
163
|
*/
|
|
151
164
|
lineGapWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
152
165
|
/**
|
|
@@ -154,7 +167,10 @@ export interface LineLayerStyle {
|
|
|
154
167
|
*/
|
|
155
168
|
lineGapWidthTransition?: Transition;
|
|
156
169
|
/**
|
|
157
|
-
* The line's offset. For linear features, a positive value offsets the line to
|
|
170
|
+
* The line's offset. For linear features, a positive value offsets the line to
|
|
171
|
+
* the right, relative to the direction of the line, and a negative value to the
|
|
172
|
+
* left. For polygon features, a positive value results in an inset, and a
|
|
173
|
+
* negative value results in an outset.
|
|
158
174
|
*/
|
|
159
175
|
lineOffset?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
160
176
|
/**
|
|
@@ -170,7 +186,14 @@ export interface LineLayerStyle {
|
|
|
170
186
|
*/
|
|
171
187
|
lineBlurTransition?: Transition;
|
|
172
188
|
/**
|
|
173
|
-
* Specifies the lengths of the alternating dashes and gaps that form the dash
|
|
189
|
+
* Specifies the lengths of the alternating dashes and gaps that form the dash
|
|
190
|
+
* pattern. The lengths are later scaled by the line width. To convert a dash
|
|
191
|
+
* length to pixels, multiply the length by the current line width. GeoJSON
|
|
192
|
+
* sources with `lineMetrics: true` specified won't render dashed lines to the
|
|
193
|
+
* expected scale. ZoomDependent expressions will be evaluated only at integer
|
|
194
|
+
* zoom levels. The only way to create an array value is using
|
|
195
|
+
* `["literal", [...]]` ; arrays cannot be read from or derived from feature
|
|
196
|
+
* properties.
|
|
174
197
|
*
|
|
175
198
|
* @disabledBy linePattern
|
|
176
199
|
*/
|
|
@@ -180,7 +203,9 @@ export interface LineLayerStyle {
|
|
|
180
203
|
*/
|
|
181
204
|
lineDasharrayTransition?: Transition;
|
|
182
205
|
/**
|
|
183
|
-
* Name of image in sprite to use for drawing image lines. For seamless
|
|
206
|
+
* Name of image in sprite to use for drawing image lines. For seamless
|
|
207
|
+
* patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that
|
|
208
|
+
* zoomDependent expressions will be evaluated only at integer zoom levels.
|
|
184
209
|
*/
|
|
185
210
|
linePattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
|
|
186
211
|
/**
|
|
@@ -188,7 +213,8 @@ export interface LineLayerStyle {
|
|
|
188
213
|
*/
|
|
189
214
|
linePatternTransition?: Transition;
|
|
190
215
|
/**
|
|
191
|
-
* Defines a gradient with which to color a line feature. Can only be used with
|
|
216
|
+
* Defines a gradient with which to color a line feature. Can only be used with
|
|
217
|
+
* GeoJSON sources that specify `"lineMetrics": true` .
|
|
192
218
|
*
|
|
193
219
|
* @disabledBy lineDasharray, linePattern
|
|
194
220
|
*/
|
|
@@ -204,19 +230,33 @@ export interface SymbolLayerStyle {
|
|
|
204
230
|
*/
|
|
205
231
|
symbolSpacing?: Value<number, ["zoom"]>;
|
|
206
232
|
/**
|
|
207
|
-
* If true, the symbols will not cross tile edges to avoid mutual collisions.
|
|
233
|
+
* If true, the symbols will not cross tile edges to avoid mutual collisions.
|
|
234
|
+
* Recommended in layers that don't have enough padding in the vector tile to
|
|
235
|
+
* prevent collisions, or if it is a point symbol layer placed after a line
|
|
236
|
+
* symbol layer. When using a client that supports global collision detection,
|
|
237
|
+
* like MapLibre GL JS version 0.42.0 or greater, enabling this property is not
|
|
238
|
+
* needed to prevent clipped labels at tile boundaries.
|
|
208
239
|
*/
|
|
209
240
|
symbolAvoidEdges?: Value<boolean, ["zoom"]>;
|
|
210
241
|
/**
|
|
211
|
-
* Sorts features in ascending order based on this value. Features with lower
|
|
242
|
+
* Sorts features in ascending order based on this value. Features with lower
|
|
243
|
+
* sort keys are drawn and placed first. When `iconAllowOverlap` or
|
|
244
|
+
* `textAllowOverlap` is `false` , features with a lower sort key will have
|
|
245
|
+
* priority during placement. When `iconAllowOverlap` or `textAllowOverlap` is
|
|
246
|
+
* set to `true` , features with a higher sort key will overlap over features
|
|
247
|
+
* with a lower sort key.
|
|
212
248
|
*/
|
|
213
249
|
symbolSortKey?: Value<number, ["zoom", "feature"]>;
|
|
214
250
|
/**
|
|
215
|
-
* Determines whether overlapping symbols in the same layer are rendered in the
|
|
251
|
+
* Determines whether overlapping symbols in the same layer are rendered in the
|
|
252
|
+
* order that they appear in the data source or by their yPosition relative to
|
|
253
|
+
* the viewport. To control the order and prioritization of symbols otherwise,
|
|
254
|
+
* use `symbolSortKey` .
|
|
216
255
|
*/
|
|
217
256
|
symbolZOrder?: Value<"auto" | "viewport-y" | "source", ["zoom"]>;
|
|
218
257
|
/**
|
|
219
|
-
* If true, the icon will be visible even if it collides with other previously
|
|
258
|
+
* If true, the icon will be visible even if it collides with other previously
|
|
259
|
+
* drawn symbols.
|
|
220
260
|
*
|
|
221
261
|
* @requires iconImage
|
|
222
262
|
*
|
|
@@ -230,19 +270,23 @@ export interface SymbolLayerStyle {
|
|
|
230
270
|
*/
|
|
231
271
|
iconIgnorePlacement?: Value<boolean, ["zoom"]>;
|
|
232
272
|
/**
|
|
233
|
-
* If true, text will display without their corresponding icons when the icon
|
|
273
|
+
* If true, text will display without their corresponding icons when the icon
|
|
274
|
+
* collides with other symbols and the text does not.
|
|
234
275
|
*
|
|
235
276
|
* @requires iconImage, textField
|
|
236
277
|
*/
|
|
237
278
|
iconOptional?: Value<boolean, ["zoom"]>;
|
|
238
279
|
/**
|
|
239
|
-
* In combination with `symbolPlacement
|
|
280
|
+
* In combination with `symbolPlacement` , determines the rotation behavior of
|
|
281
|
+
* icons.
|
|
240
282
|
*
|
|
241
283
|
* @requires iconImage
|
|
242
284
|
*/
|
|
243
285
|
iconRotationAlignment?: Value<"map" | "viewport" | "auto", ["zoom"]>;
|
|
244
286
|
/**
|
|
245
|
-
* Scales the original size of the icon by the provided factor. The new pixel
|
|
287
|
+
* Scales the original size of the icon by the provided factor. The new pixel
|
|
288
|
+
* size of the image will be the original pixel size multiplied by `iconSize` .
|
|
289
|
+
* 1 is the original size; 3 triples the size of the image.
|
|
246
290
|
*
|
|
247
291
|
* @requires iconImage
|
|
248
292
|
*/
|
|
@@ -254,7 +298,8 @@ export interface SymbolLayerStyle {
|
|
|
254
298
|
*/
|
|
255
299
|
iconTextFit?: Value<"none" | "width" | "height" | "both", ["zoom"]>;
|
|
256
300
|
/**
|
|
257
|
-
* Size of the additional area added to dimensions determined by `iconTextFit
|
|
301
|
+
* Size of the additional area added to dimensions determined by `iconTextFit` ,
|
|
302
|
+
* in clockwise order: top, right, bottom, left.
|
|
258
303
|
*
|
|
259
304
|
* @requires iconImage, textField
|
|
260
305
|
*/
|
|
@@ -270,19 +315,25 @@ export interface SymbolLayerStyle {
|
|
|
270
315
|
*/
|
|
271
316
|
iconRotate?: Value<number, ["zoom", "feature"]>;
|
|
272
317
|
/**
|
|
273
|
-
* Size of additional area round the icon bounding box used for detecting symbol
|
|
318
|
+
* Size of additional area round the icon bounding box used for detecting symbol
|
|
319
|
+
* collisions.
|
|
274
320
|
*
|
|
275
321
|
* @requires iconImage
|
|
276
322
|
*/
|
|
277
323
|
iconPadding?: Value<number[], ["zoom", "feature"]>;
|
|
278
324
|
/**
|
|
279
|
-
* If true, the icon may be flipped to prevent it from being rendered
|
|
325
|
+
* If true, the icon may be flipped to prevent it from being rendered
|
|
326
|
+
* upsideDown.
|
|
280
327
|
*
|
|
281
328
|
* @requires iconImage
|
|
282
329
|
*/
|
|
283
330
|
iconKeepUpright?: Value<boolean, ["zoom"]>;
|
|
284
331
|
/**
|
|
285
|
-
* Offset distance of icon from its anchor. Positive values indicate right and
|
|
332
|
+
* Offset distance of icon from its anchor. Positive values indicate right and
|
|
333
|
+
* down, while negative values indicate left and up. Each component is
|
|
334
|
+
* multiplied by the value of `iconSize` to obtain the final offset in pixels.
|
|
335
|
+
* When combined with `iconRotate` the offset will be as if the rotated
|
|
336
|
+
* direction was up.
|
|
286
337
|
*
|
|
287
338
|
* @requires iconImage
|
|
288
339
|
*/
|
|
@@ -309,7 +360,8 @@ export interface SymbolLayerStyle {
|
|
|
309
360
|
*/
|
|
310
361
|
textPitchAlignment?: Value<"map" | "viewport" | "auto", ["zoom"]>;
|
|
311
362
|
/**
|
|
312
|
-
* In combination with `symbolPlacement
|
|
363
|
+
* In combination with `symbolPlacement` , determines the rotation behavior of
|
|
364
|
+
* the individual glyphs forming the text.
|
|
313
365
|
*
|
|
314
366
|
* @requires textField
|
|
315
367
|
*/
|
|
@@ -317,11 +369,15 @@ export interface SymbolLayerStyle {
|
|
|
317
369
|
"zoom"
|
|
318
370
|
]>;
|
|
319
371
|
/**
|
|
320
|
-
* Value to use for a text label. If a plain `string` is provided, it will be
|
|
372
|
+
* Value to use for a text label. If a plain `string` is provided, it will be
|
|
373
|
+
* treated as a `formatted` with default/inherited formatting options.
|
|
321
374
|
*/
|
|
322
375
|
textField?: Value<FormattedString, ["zoom", "feature"]>;
|
|
323
376
|
/**
|
|
324
|
-
* Fonts to use for displaying text. If the `glyphs` root property is specified,
|
|
377
|
+
* Fonts to use for displaying text. If the `glyphs` root property is specified,
|
|
378
|
+
* this array is joined together and interpreted as a font stack name.
|
|
379
|
+
* Otherwise, it is interpreted as a cascading fallback list of local font
|
|
380
|
+
* names.
|
|
325
381
|
*
|
|
326
382
|
* @requires textField
|
|
327
383
|
*/
|
|
@@ -360,13 +416,20 @@ export interface SymbolLayerStyle {
|
|
|
360
416
|
"feature"
|
|
361
417
|
]>;
|
|
362
418
|
/**
|
|
363
|
-
* Radial offset of text, in the direction of the symbol's anchor. Useful in
|
|
419
|
+
* Radial offset of text, in the direction of the symbol's anchor. Useful in
|
|
420
|
+
* combination with `textVariableAnchor` , which defaults to using the
|
|
421
|
+
* twoDimensional `textOffset` if present.
|
|
364
422
|
*
|
|
365
423
|
* @requires textField
|
|
366
424
|
*/
|
|
367
425
|
textRadialOffset?: Value<number, ["zoom", "feature"]>;
|
|
368
426
|
/**
|
|
369
|
-
* To increase the chance of placing highPriority labels on the map, you can
|
|
427
|
+
* To increase the chance of placing highPriority labels on the map, you can
|
|
428
|
+
* provide an array of `textAnchor` locations: the renderer will attempt to
|
|
429
|
+
* place the label at each location, in order, before moving onto the next
|
|
430
|
+
* label. Use `textJustify: auto` to choose justification based on anchor
|
|
431
|
+
* position. To apply an offset, use the `textRadialOffset` or the
|
|
432
|
+
* twoDimensional `textOffset` .
|
|
370
433
|
*
|
|
371
434
|
* @requires textField
|
|
372
435
|
*/
|
|
@@ -391,7 +454,12 @@ export interface SymbolLayerStyle {
|
|
|
391
454
|
*/
|
|
392
455
|
textMaxAngle?: Value<number, ["zoom"]>;
|
|
393
456
|
/**
|
|
394
|
-
* The property allows control over a symbol's orientation. Note that the
|
|
457
|
+
* The property allows control over a symbol's orientation. Note that the
|
|
458
|
+
* property values act as a hint, so that a symbol whose language doesn’t
|
|
459
|
+
* support the provided orientation will be laid out in its natural orientation.
|
|
460
|
+
* Example: English point symbol will be rendered horizontally even if array
|
|
461
|
+
* value contains single 'vertical' enum value. The order of elements in an
|
|
462
|
+
* array define priority order for the placement of an orientation variant.
|
|
395
463
|
*
|
|
396
464
|
* @requires textField
|
|
397
465
|
*/
|
|
@@ -403,19 +471,22 @@ export interface SymbolLayerStyle {
|
|
|
403
471
|
*/
|
|
404
472
|
textRotate?: Value<number, ["zoom", "feature"]>;
|
|
405
473
|
/**
|
|
406
|
-
* Size of the additional area around the text bounding box used for detecting
|
|
474
|
+
* Size of the additional area around the text bounding box used for detecting
|
|
475
|
+
* symbol collisions.
|
|
407
476
|
*
|
|
408
477
|
* @requires textField
|
|
409
478
|
*/
|
|
410
479
|
textPadding?: Value<number, ["zoom"]>;
|
|
411
480
|
/**
|
|
412
|
-
* If true, the text may be flipped vertically to prevent it from being rendered
|
|
481
|
+
* If true, the text may be flipped vertically to prevent it from being rendered
|
|
482
|
+
* upsideDown.
|
|
413
483
|
*
|
|
414
484
|
* @requires textField
|
|
415
485
|
*/
|
|
416
486
|
textKeepUpright?: Value<boolean, ["zoom"]>;
|
|
417
487
|
/**
|
|
418
|
-
* Specifies how to capitalize text, similar to the CSS `textTransform`
|
|
488
|
+
* Specifies how to capitalize text, similar to the CSS `textTransform`
|
|
489
|
+
* property.
|
|
419
490
|
*
|
|
420
491
|
* @requires textField
|
|
421
492
|
*/
|
|
@@ -424,7 +495,11 @@ export interface SymbolLayerStyle {
|
|
|
424
495
|
"feature"
|
|
425
496
|
]>;
|
|
426
497
|
/**
|
|
427
|
-
* Offset distance of text from its anchor. Positive values indicate right and
|
|
498
|
+
* Offset distance of text from its anchor. Positive values indicate right and
|
|
499
|
+
* down, while negative values indicate left and up. If used with
|
|
500
|
+
* textVariableAnchor, input values will be taken as absolute values. Offsets
|
|
501
|
+
* along the x and yAxis will be applied automatically based on the anchor
|
|
502
|
+
* position.
|
|
428
503
|
*
|
|
429
504
|
* @requires textField
|
|
430
505
|
*
|
|
@@ -432,7 +507,8 @@ export interface SymbolLayerStyle {
|
|
|
432
507
|
*/
|
|
433
508
|
textOffset?: Value<number[], ["zoom", "feature"]>;
|
|
434
509
|
/**
|
|
435
|
-
* If true, the text will be visible even if it collides with other previously
|
|
510
|
+
* If true, the text will be visible even if it collides with other previously
|
|
511
|
+
* drawn symbols.
|
|
436
512
|
*
|
|
437
513
|
* @requires textField
|
|
438
514
|
*
|
|
@@ -446,7 +522,8 @@ export interface SymbolLayerStyle {
|
|
|
446
522
|
*/
|
|
447
523
|
textIgnorePlacement?: Value<boolean, ["zoom"]>;
|
|
448
524
|
/**
|
|
449
|
-
* If true, icons will display without their corresponding text when the text
|
|
525
|
+
* If true, icons will display without their corresponding text when the text
|
|
526
|
+
* collides with other symbols and the icon does not.
|
|
450
527
|
*
|
|
451
528
|
* @requires textField, iconImage
|
|
452
529
|
*/
|
|
@@ -486,12 +563,14 @@ export interface SymbolLayerStyle {
|
|
|
486
563
|
*/
|
|
487
564
|
iconHaloColorTransition?: Transition;
|
|
488
565
|
/**
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
566
|
+
* Distance of halo to the icon outline.
|
|
567
|
+
*
|
|
568
|
+
* The unit is in pixels only for SDF sprites that were created with a blur
|
|
569
|
+
* radius of 8, multiplied by the display density. I.e., the radius needs to be
|
|
570
|
+
* 16 for `@2x` sprites, etc.
|
|
571
|
+
*
|
|
572
|
+
* @requires iconImage
|
|
573
|
+
*/
|
|
495
574
|
iconHaloWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
496
575
|
/**
|
|
497
576
|
* The transition affecting any changes to this layer’s iconHaloWidth property.
|
|
@@ -508,7 +587,9 @@ export interface SymbolLayerStyle {
|
|
|
508
587
|
*/
|
|
509
588
|
iconHaloBlurTransition?: Transition;
|
|
510
589
|
/**
|
|
511
|
-
* Distance that the icon's anchor is moved from its original placement.
|
|
590
|
+
* Distance that the icon's anchor is moved from its original placement.
|
|
591
|
+
* Positive values indicate right and down, while negative values indicate left
|
|
592
|
+
* and up.
|
|
512
593
|
*
|
|
513
594
|
* @requires iconImage
|
|
514
595
|
*/
|
|
@@ -554,7 +635,8 @@ export interface SymbolLayerStyle {
|
|
|
554
635
|
*/
|
|
555
636
|
textHaloColorTransition?: Transition;
|
|
556
637
|
/**
|
|
557
|
-
* Distance of halo to the font outline. Max text halo width is 1/4 of the
|
|
638
|
+
* Distance of halo to the font outline. Max text halo width is 1/4 of the
|
|
639
|
+
* fontSize.
|
|
558
640
|
*
|
|
559
641
|
* @requires textField
|
|
560
642
|
*/
|
|
@@ -574,7 +656,9 @@ export interface SymbolLayerStyle {
|
|
|
574
656
|
*/
|
|
575
657
|
textHaloBlurTransition?: Transition;
|
|
576
658
|
/**
|
|
577
|
-
* Distance that the text's anchor is moved from its original placement.
|
|
659
|
+
* Distance that the text's anchor is moved from its original placement.
|
|
660
|
+
* Positive values indicate right and down, while negative values indicate left
|
|
661
|
+
* and up.
|
|
578
662
|
*
|
|
579
663
|
* @requires textField
|
|
580
664
|
*/
|
|
@@ -592,7 +676,8 @@ export interface SymbolLayerStyle {
|
|
|
592
676
|
}
|
|
593
677
|
export interface CircleLayerStyle {
|
|
594
678
|
/**
|
|
595
|
-
* Sorts features in ascending order based on this value. Features with a higher
|
|
679
|
+
* Sorts features in ascending order based on this value. Features with a higher
|
|
680
|
+
* sort key will appear above features with a lower sort key.
|
|
596
681
|
*/
|
|
597
682
|
circleSortKey?: Value<number, ["zoom", "feature"]>;
|
|
598
683
|
/**
|
|
@@ -616,7 +701,8 @@ export interface CircleLayerStyle {
|
|
|
616
701
|
*/
|
|
617
702
|
circleColorTransition?: Transition;
|
|
618
703
|
/**
|
|
619
|
-
* Amount to blur the circle. 1 blurs the circle such that only the centerpoint
|
|
704
|
+
* Amount to blur the circle. 1 blurs the circle such that only the centerpoint
|
|
705
|
+
* is full opacity.
|
|
620
706
|
*/
|
|
621
707
|
circleBlur?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
622
708
|
/**
|
|
@@ -632,11 +718,13 @@ export interface CircleLayerStyle {
|
|
|
632
718
|
*/
|
|
633
719
|
circleOpacityTransition?: Transition;
|
|
634
720
|
/**
|
|
635
|
-
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
721
|
+
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
722
|
+
* up, respectively.
|
|
636
723
|
*/
|
|
637
724
|
circleTranslate?: Value<Translation, ["zoom"]>;
|
|
638
725
|
/**
|
|
639
|
-
* The transition affecting any changes to this layer’s circleTranslate
|
|
726
|
+
* The transition affecting any changes to this layer’s circleTranslate
|
|
727
|
+
* property.
|
|
640
728
|
*/
|
|
641
729
|
circleTranslateTransition?: Transition;
|
|
642
730
|
/**
|
|
@@ -654,11 +742,13 @@ export interface CircleLayerStyle {
|
|
|
654
742
|
*/
|
|
655
743
|
circlePitchAlignment?: Value<"map" | "viewport", ["zoom"]>;
|
|
656
744
|
/**
|
|
657
|
-
* The width of the circle's stroke. Strokes are placed outside of the
|
|
745
|
+
* The width of the circle's stroke. Strokes are placed outside of the
|
|
746
|
+
* `circleRadius` .
|
|
658
747
|
*/
|
|
659
748
|
circleStrokeWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
660
749
|
/**
|
|
661
|
-
* The transition affecting any changes to this layer’s circleStrokeWidth
|
|
750
|
+
* The transition affecting any changes to this layer’s circleStrokeWidth
|
|
751
|
+
* property.
|
|
662
752
|
*/
|
|
663
753
|
circleStrokeWidthTransition?: Transition;
|
|
664
754
|
/**
|
|
@@ -666,7 +756,8 @@ export interface CircleLayerStyle {
|
|
|
666
756
|
*/
|
|
667
757
|
circleStrokeColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
668
758
|
/**
|
|
669
|
-
* The transition affecting any changes to this layer’s circleStrokeColor
|
|
759
|
+
* The transition affecting any changes to this layer’s circleStrokeColor
|
|
760
|
+
* property.
|
|
670
761
|
*/
|
|
671
762
|
circleStrokeColorTransition?: Transition;
|
|
672
763
|
/**
|
|
@@ -674,7 +765,8 @@ export interface CircleLayerStyle {
|
|
|
674
765
|
*/
|
|
675
766
|
circleStrokeOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
676
767
|
/**
|
|
677
|
-
* The transition affecting any changes to this layer’s circleStrokeOpacity
|
|
768
|
+
* The transition affecting any changes to this layer’s circleStrokeOpacity
|
|
769
|
+
* property.
|
|
678
770
|
*/
|
|
679
771
|
circleStrokeOpacityTransition?: Transition;
|
|
680
772
|
}
|
|
@@ -684,7 +776,8 @@ export interface HeatmapLayerStyle {
|
|
|
684
776
|
*/
|
|
685
777
|
visibility?: Value<"visible" | "none", ["global-state"]>;
|
|
686
778
|
/**
|
|
687
|
-
* Radius of influence of one heatmap point in pixels. Increasing the value
|
|
779
|
+
* Radius of influence of one heatmap point in pixels. Increasing the value
|
|
780
|
+
* makes the heatmap smoother, but less detailed.
|
|
688
781
|
*/
|
|
689
782
|
heatmapRadius?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
690
783
|
/**
|
|
@@ -692,19 +785,24 @@ export interface HeatmapLayerStyle {
|
|
|
692
785
|
*/
|
|
693
786
|
heatmapRadiusTransition?: Transition;
|
|
694
787
|
/**
|
|
695
|
-
* A measure of how much an individual point contributes to the heatmap. A value
|
|
788
|
+
* A measure of how much an individual point contributes to the heatmap. A value
|
|
789
|
+
* of 10 would be equivalent to having 10 points of weight 1 in the same spot.
|
|
790
|
+
* Especially useful when combined with clustering.
|
|
696
791
|
*/
|
|
697
792
|
heatmapWeight?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
698
793
|
/**
|
|
699
|
-
* Similar to `heatmapWeight` but controls the intensity of the heatmap
|
|
794
|
+
* Similar to `heatmapWeight` but controls the intensity of the heatmap
|
|
795
|
+
* globally. Primarily used for adjusting the heatmap based on zoom level.
|
|
700
796
|
*/
|
|
701
797
|
heatmapIntensity?: Value<number, ["zoom"]>;
|
|
702
798
|
/**
|
|
703
|
-
* The transition affecting any changes to this layer’s heatmapIntensity
|
|
799
|
+
* The transition affecting any changes to this layer’s heatmapIntensity
|
|
800
|
+
* property.
|
|
704
801
|
*/
|
|
705
802
|
heatmapIntensityTransition?: Transition;
|
|
706
803
|
/**
|
|
707
|
-
* Defines the color of each pixel based on its density value in a heatmap.
|
|
804
|
+
* Defines the color of each pixel based on its density value in a heatmap.
|
|
805
|
+
* Should be an expression that uses `["heatmapDensity"]` as input.
|
|
708
806
|
*/
|
|
709
807
|
heatmapColor?: Value<string, ["heatmap-density"]>;
|
|
710
808
|
/**
|
|
@@ -722,29 +820,38 @@ export interface FillExtrusionLayerStyle {
|
|
|
722
820
|
*/
|
|
723
821
|
visibility?: Value<"visible" | "none", ["global-state"]>;
|
|
724
822
|
/**
|
|
725
|
-
* The opacity of the entire fill extrusion layer. This is rendered on a
|
|
823
|
+
* The opacity of the entire fill extrusion layer. This is rendered on a
|
|
824
|
+
* perLayer, not perFeature, basis, and dataDriven styling is not available.
|
|
726
825
|
*/
|
|
727
826
|
fillExtrusionOpacity?: Value<number, ["zoom"]>;
|
|
728
827
|
/**
|
|
729
|
-
* The transition affecting any changes to this layer’s fillExtrusionOpacity
|
|
828
|
+
* The transition affecting any changes to this layer’s fillExtrusionOpacity
|
|
829
|
+
* property.
|
|
730
830
|
*/
|
|
731
831
|
fillExtrusionOpacityTransition?: Transition;
|
|
732
832
|
/**
|
|
733
|
-
* The base color of the extruded fill. The extrusion's surfaces will be shaded
|
|
833
|
+
* The base color of the extruded fill. The extrusion's surfaces will be shaded
|
|
834
|
+
* differently based on this color in combination with the root `light`
|
|
835
|
+
* settings. If this color is specified as `rgba` with an alpha component, the
|
|
836
|
+
* alpha component will be ignored; use `fillExtrusionOpacity` to set layer
|
|
837
|
+
* opacity.
|
|
734
838
|
*
|
|
735
839
|
* @disabledBy fillExtrusionPattern
|
|
736
840
|
*/
|
|
737
841
|
fillExtrusionColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
738
842
|
/**
|
|
739
|
-
* The transition affecting any changes to this layer’s fillExtrusionColor
|
|
843
|
+
* The transition affecting any changes to this layer’s fillExtrusionColor
|
|
844
|
+
* property.
|
|
740
845
|
*/
|
|
741
846
|
fillExtrusionColorTransition?: Transition;
|
|
742
847
|
/**
|
|
743
|
-
* The geometry's offset. Values are [x, y] where negatives indicate left and up
|
|
848
|
+
* The geometry's offset. Values are [x, y] where negatives indicate left and up
|
|
849
|
+
* (on the flat plane), respectively.
|
|
744
850
|
*/
|
|
745
851
|
fillExtrusionTranslate?: Value<Translation, ["zoom"]>;
|
|
746
852
|
/**
|
|
747
|
-
* The transition affecting any changes to this layer’s fillExtrusionTranslate
|
|
853
|
+
* The transition affecting any changes to this layer’s fillExtrusionTranslate
|
|
854
|
+
* property.
|
|
748
855
|
*/
|
|
749
856
|
fillExtrusionTranslateTransition?: Transition;
|
|
750
857
|
/**
|
|
@@ -754,11 +861,15 @@ export interface FillExtrusionLayerStyle {
|
|
|
754
861
|
*/
|
|
755
862
|
fillExtrusionTranslateAnchor?: Value<"map" | "viewport", ["zoom"]>;
|
|
756
863
|
/**
|
|
757
|
-
* Name of image in sprite to use for drawing images on extruded fills. For
|
|
864
|
+
* Name of image in sprite to use for drawing images on extruded fills. For
|
|
865
|
+
* seamless patterns, image width and height must be a factor of two (2, 4, 8,
|
|
866
|
+
* ..., 512). Note that zoomDependent expressions will be evaluated only at
|
|
867
|
+
* integer zoom levels.
|
|
758
868
|
*/
|
|
759
869
|
fillExtrusionPattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
|
|
760
870
|
/**
|
|
761
|
-
* The transition affecting any changes to this layer’s fillExtrusionPattern
|
|
871
|
+
* The transition affecting any changes to this layer’s fillExtrusionPattern
|
|
872
|
+
* property.
|
|
762
873
|
*/
|
|
763
874
|
fillExtrusionPatternTransition?: Transition;
|
|
764
875
|
/**
|
|
@@ -766,21 +877,25 @@ export interface FillExtrusionLayerStyle {
|
|
|
766
877
|
*/
|
|
767
878
|
fillExtrusionHeight?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
768
879
|
/**
|
|
769
|
-
* The transition affecting any changes to this layer’s fillExtrusionHeight
|
|
880
|
+
* The transition affecting any changes to this layer’s fillExtrusionHeight
|
|
881
|
+
* property.
|
|
770
882
|
*/
|
|
771
883
|
fillExtrusionHeightTransition?: Transition;
|
|
772
884
|
/**
|
|
773
|
-
* The height with which to extrude the base of this layer. Must be less than or
|
|
885
|
+
* The height with which to extrude the base of this layer. Must be less than or
|
|
886
|
+
* equal to `fillExtrusionHeight` .
|
|
774
887
|
*
|
|
775
888
|
* @requires fillExtrusionHeight
|
|
776
889
|
*/
|
|
777
890
|
fillExtrusionBase?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
778
891
|
/**
|
|
779
|
-
* The transition affecting any changes to this layer’s fillExtrusionBase
|
|
892
|
+
* The transition affecting any changes to this layer’s fillExtrusionBase
|
|
893
|
+
* property.
|
|
780
894
|
*/
|
|
781
895
|
fillExtrusionBaseTransition?: Transition;
|
|
782
896
|
/**
|
|
783
|
-
* Whether to apply a vertical gradient to the sides of a fillExtrusion layer.
|
|
897
|
+
* Whether to apply a vertical gradient to the sides of a fillExtrusion layer.
|
|
898
|
+
* If true, sides will be shaded slightly darker farther down.
|
|
784
899
|
*/
|
|
785
900
|
fillExtrusionVerticalGradient?: Value<boolean, ["zoom"]>;
|
|
786
901
|
}
|
|
@@ -802,23 +917,28 @@ export interface RasterLayerStyle {
|
|
|
802
917
|
*/
|
|
803
918
|
rasterHueRotate?: Value<number, ["zoom"]>;
|
|
804
919
|
/**
|
|
805
|
-
* The transition affecting any changes to this layer’s rasterHueRotate
|
|
920
|
+
* The transition affecting any changes to this layer’s rasterHueRotate
|
|
921
|
+
* property.
|
|
806
922
|
*/
|
|
807
923
|
rasterHueRotateTransition?: Transition;
|
|
808
924
|
/**
|
|
809
|
-
* Increase or reduce the brightness of the image. The value is the minimum
|
|
925
|
+
* Increase or reduce the brightness of the image. The value is the minimum
|
|
926
|
+
* brightness.
|
|
810
927
|
*/
|
|
811
928
|
rasterBrightnessMin?: Value<number, ["zoom"]>;
|
|
812
929
|
/**
|
|
813
|
-
* The transition affecting any changes to this layer’s rasterBrightnessMin
|
|
930
|
+
* The transition affecting any changes to this layer’s rasterBrightnessMin
|
|
931
|
+
* property.
|
|
814
932
|
*/
|
|
815
933
|
rasterBrightnessMinTransition?: Transition;
|
|
816
934
|
/**
|
|
817
|
-
* Increase or reduce the brightness of the image. The value is the maximum
|
|
935
|
+
* Increase or reduce the brightness of the image. The value is the maximum
|
|
936
|
+
* brightness.
|
|
818
937
|
*/
|
|
819
938
|
rasterBrightnessMax?: Value<number, ["zoom"]>;
|
|
820
939
|
/**
|
|
821
|
-
* The transition affecting any changes to this layer’s rasterBrightnessMax
|
|
940
|
+
* The transition affecting any changes to this layer’s rasterBrightnessMax
|
|
941
|
+
* property.
|
|
822
942
|
*/
|
|
823
943
|
rasterBrightnessMaxTransition?: Transition;
|
|
824
944
|
/**
|
|
@@ -826,7 +946,8 @@ export interface RasterLayerStyle {
|
|
|
826
946
|
*/
|
|
827
947
|
rasterSaturation?: Value<number, ["zoom"]>;
|
|
828
948
|
/**
|
|
829
|
-
* The transition affecting any changes to this layer’s rasterSaturation
|
|
949
|
+
* The transition affecting any changes to this layer’s rasterSaturation
|
|
950
|
+
* property.
|
|
830
951
|
*/
|
|
831
952
|
rasterSaturationTransition?: Transition;
|
|
832
953
|
/**
|
|
@@ -838,11 +959,13 @@ export interface RasterLayerStyle {
|
|
|
838
959
|
*/
|
|
839
960
|
rasterContrastTransition?: Transition;
|
|
840
961
|
/**
|
|
841
|
-
* The resampling/interpolation method to use for overscaling, also known as
|
|
962
|
+
* The resampling/interpolation method to use for overscaling, also known as
|
|
963
|
+
* texture magnification filter
|
|
842
964
|
*/
|
|
843
965
|
rasterResampling?: Value<"linear" | "nearest", ["zoom"]>;
|
|
844
966
|
/**
|
|
845
|
-
* Fade duration when a new tile is added, or when a video is started or its
|
|
967
|
+
* Fade duration when a new tile is added, or when a video is started or its
|
|
968
|
+
* coordinates are updated.
|
|
846
969
|
*/
|
|
847
970
|
rasterFadeDuration?: Value<number, ["zoom"]>;
|
|
848
971
|
}
|
|
@@ -852,7 +975,11 @@ export interface HillshadeLayerStyle {
|
|
|
852
975
|
*/
|
|
853
976
|
visibility?: Value<"visible" | "none", ["global-state"]>;
|
|
854
977
|
/**
|
|
855
|
-
* The direction of the light source(s) used to generate the hillshading with 0
|
|
978
|
+
* The direction of the light source(s) used to generate the hillshading with 0
|
|
979
|
+
* as the top of the viewport if `hillshadeIlluminationAnchor` is set to
|
|
980
|
+
* `viewport` and due north if `hillshadeIlluminationAnchor` is set to `map` .
|
|
981
|
+
* Only when `hillshadeMethod` is set to `multidirectional` can you specify
|
|
982
|
+
* multiple light sources.
|
|
856
983
|
*/
|
|
857
984
|
hillshadeIlluminationDirection?: Value<number, ["zoom"]>;
|
|
858
985
|
/**
|
|
@@ -864,31 +991,40 @@ export interface HillshadeLayerStyle {
|
|
|
864
991
|
*/
|
|
865
992
|
hillshadeExaggeration?: Value<number, ["zoom"]>;
|
|
866
993
|
/**
|
|
867
|
-
* The transition affecting any changes to this layer’s hillshadeExaggeration
|
|
994
|
+
* The transition affecting any changes to this layer’s hillshadeExaggeration
|
|
995
|
+
* property.
|
|
868
996
|
*/
|
|
869
997
|
hillshadeExaggerationTransition?: Transition;
|
|
870
998
|
/**
|
|
871
|
-
* The shading color of areas that face away from the light source(s). Only when
|
|
999
|
+
* The shading color of areas that face away from the light source(s). Only when
|
|
1000
|
+
* `hillshadeMethod` is set to `multidirectional` can you specify multiple light
|
|
1001
|
+
* sources.
|
|
872
1002
|
*/
|
|
873
1003
|
hillshadeShadowColor?: Value<string, ["zoom"]>;
|
|
874
1004
|
/**
|
|
875
|
-
* The transition affecting any changes to this layer’s hillshadeShadowColor
|
|
1005
|
+
* The transition affecting any changes to this layer’s hillshadeShadowColor
|
|
1006
|
+
* property.
|
|
876
1007
|
*/
|
|
877
1008
|
hillshadeShadowColorTransition?: Transition;
|
|
878
1009
|
/**
|
|
879
|
-
* The shading color of areas that faces towards the light source(s). Only when
|
|
1010
|
+
* The shading color of areas that faces towards the light source(s). Only when
|
|
1011
|
+
* `hillshadeMethod` is set to `multidirectional` can you specify multiple light
|
|
1012
|
+
* sources.
|
|
880
1013
|
*/
|
|
881
1014
|
hillshadeHighlightColor?: Value<string, ["zoom"]>;
|
|
882
1015
|
/**
|
|
883
|
-
* The transition affecting any changes to this layer’s hillshadeHighlightColor
|
|
1016
|
+
* The transition affecting any changes to this layer’s hillshadeHighlightColor
|
|
1017
|
+
* property.
|
|
884
1018
|
*/
|
|
885
1019
|
hillshadeHighlightColorTransition?: Transition;
|
|
886
1020
|
/**
|
|
887
|
-
* The shading color used to accentuate rugged terrain like sharp cliffs and
|
|
1021
|
+
* The shading color used to accentuate rugged terrain like sharp cliffs and
|
|
1022
|
+
* gorges.
|
|
888
1023
|
*/
|
|
889
1024
|
hillshadeAccentColor?: Value<string, ["zoom"]>;
|
|
890
1025
|
/**
|
|
891
|
-
* The transition affecting any changes to this layer’s hillshadeAccentColor
|
|
1026
|
+
* The transition affecting any changes to this layer’s hillshadeAccentColor
|
|
1027
|
+
* property.
|
|
892
1028
|
*/
|
|
893
1029
|
hillshadeAccentColorTransition?: Transition;
|
|
894
1030
|
}
|
|
@@ -904,15 +1040,20 @@ export interface BackgroundLayerStyle {
|
|
|
904
1040
|
*/
|
|
905
1041
|
backgroundColor?: Value<string, ["zoom"]>;
|
|
906
1042
|
/**
|
|
907
|
-
* The transition affecting any changes to this layer’s backgroundColor
|
|
1043
|
+
* The transition affecting any changes to this layer’s backgroundColor
|
|
1044
|
+
* property.
|
|
908
1045
|
*/
|
|
909
1046
|
backgroundColorTransition?: Transition;
|
|
910
1047
|
/**
|
|
911
|
-
* Name of image in sprite to use for drawing an image background. For seamless
|
|
1048
|
+
* Name of image in sprite to use for drawing an image background. For seamless
|
|
1049
|
+
* patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
|
|
1050
|
+
* Note that zoomDependent expressions will be evaluated only at integer zoom
|
|
1051
|
+
* levels.
|
|
912
1052
|
*/
|
|
913
1053
|
backgroundPattern?: Value<ResolvedImageType, ["zoom"]>;
|
|
914
1054
|
/**
|
|
915
|
-
* The transition affecting any changes to this layer’s backgroundPattern
|
|
1055
|
+
* The transition affecting any changes to this layer’s backgroundPattern
|
|
1056
|
+
* property.
|
|
916
1057
|
*/
|
|
917
1058
|
backgroundPatternTransition?: Transition;
|
|
918
1059
|
/**
|
|
@@ -920,7 +1061,8 @@ export interface BackgroundLayerStyle {
|
|
|
920
1061
|
*/
|
|
921
1062
|
backgroundOpacity?: Value<number, ["zoom"]>;
|
|
922
1063
|
/**
|
|
923
|
-
* The transition affecting any changes to this layer’s backgroundOpacity
|
|
1064
|
+
* The transition affecting any changes to this layer’s backgroundOpacity
|
|
1065
|
+
* property.
|
|
924
1066
|
*/
|
|
925
1067
|
backgroundOpacityTransition?: Transition;
|
|
926
1068
|
}
|
|
@@ -930,7 +1072,14 @@ export interface LightLayerStyle {
|
|
|
930
1072
|
*/
|
|
931
1073
|
anchor?: Value<"map" | "viewport", ["zoom"]>;
|
|
932
1074
|
/**
|
|
933
|
-
* Position of the light source relative to lit (extruded) geometries, in [r
|
|
1075
|
+
* Position of the light source relative to lit (extruded) geometries, in [r
|
|
1076
|
+
* radial coordinate, a azimuthal angle, p polar angle] where r indicates the
|
|
1077
|
+
* distance from the center of the base of an object to its light, a indicates
|
|
1078
|
+
* the position of the light relative to 0° (0° when `light.anchor` is set to
|
|
1079
|
+
* `viewport` corresponds to the top of the viewport, or 0° when `light.anchor`
|
|
1080
|
+
* is set to `map` corresponds to due north, and degrees proceed clockwise),
|
|
1081
|
+
* and p indicates the height of the light (from 0°, directly above, to 180°,
|
|
1082
|
+
* directly below).
|
|
934
1083
|
*/
|
|
935
1084
|
position?: Value<number[], ["zoom"]>;
|
|
936
1085
|
/**
|
|
@@ -946,7 +1095,8 @@ export interface LightLayerStyle {
|
|
|
946
1095
|
*/
|
|
947
1096
|
colorTransition?: Transition;
|
|
948
1097
|
/**
|
|
949
|
-
* Intensity of lighting (on a scale from 0 to 1). Higher numbers will present
|
|
1098
|
+
* Intensity of lighting (on a scale from 0 to 1). Higher numbers will present
|
|
1099
|
+
* as more extreme contrast.
|
|
950
1100
|
*/
|
|
951
1101
|
intensity?: Value<number, ["zoom"]>;
|
|
952
1102
|
/**
|