@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
|
@@ -136,7 +136,8 @@ export type Value<T, AllowedParameters extends ExpressionParameters[] = []> =
|
|
|
136
136
|
|
|
137
137
|
export interface FillLayerStyle {
|
|
138
138
|
/**
|
|
139
|
-
* Sorts features in ascending order based on this value. Features with a higher
|
|
139
|
+
* Sorts features in ascending order based on this value. Features with a higher
|
|
140
|
+
* sort key will appear above features with a lower sort key.
|
|
140
141
|
*/
|
|
141
142
|
fillSortKey?: Value<number, ["zoom", "feature"]>;
|
|
142
143
|
/**
|
|
@@ -148,7 +149,8 @@ export interface FillLayerStyle {
|
|
|
148
149
|
*/
|
|
149
150
|
fillAntialias?: Value<boolean, ["zoom"]>;
|
|
150
151
|
/**
|
|
151
|
-
* The opacity of the entire fill layer. In contrast to the `fillColor
|
|
152
|
+
* The opacity of the entire fill layer. In contrast to the `fillColor` , this
|
|
153
|
+
* value will also affect the 1px stroke around the fill, if the stroke is used.
|
|
152
154
|
*/
|
|
153
155
|
fillOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
154
156
|
|
|
@@ -157,7 +159,9 @@ export interface FillLayerStyle {
|
|
|
157
159
|
*/
|
|
158
160
|
fillOpacityTransition?: Transition;
|
|
159
161
|
/**
|
|
160
|
-
* The color of the filled part of this layer. This color can be specified as
|
|
162
|
+
* The color of the filled part of this layer. This color can be specified as
|
|
163
|
+
* `rgba` with an alpha component and the color's opacity will not affect the
|
|
164
|
+
* opacity of the 1px stroke, if it is used.
|
|
161
165
|
*
|
|
162
166
|
* @disabledBy fillPattern
|
|
163
167
|
*/
|
|
@@ -168,18 +172,21 @@ export interface FillLayerStyle {
|
|
|
168
172
|
*/
|
|
169
173
|
fillColorTransition?: Transition;
|
|
170
174
|
/**
|
|
171
|
-
* The outline color of the fill. Matches the value of `fillColor` if
|
|
175
|
+
* The outline color of the fill. Matches the value of `fillColor` if
|
|
176
|
+
* unspecified.
|
|
172
177
|
*
|
|
173
178
|
* @disabledBy fillPattern
|
|
174
179
|
*/
|
|
175
180
|
fillOutlineColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
176
181
|
|
|
177
182
|
/**
|
|
178
|
-
* The transition affecting any changes to this layer’s fillOutlineColor
|
|
183
|
+
* The transition affecting any changes to this layer’s fillOutlineColor
|
|
184
|
+
* property.
|
|
179
185
|
*/
|
|
180
186
|
fillOutlineColorTransition?: Transition;
|
|
181
187
|
/**
|
|
182
|
-
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
188
|
+
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
189
|
+
* up, respectively.
|
|
183
190
|
*/
|
|
184
191
|
fillTranslate?: Value<Translation, ["zoom"]>;
|
|
185
192
|
|
|
@@ -194,7 +201,10 @@ export interface FillLayerStyle {
|
|
|
194
201
|
*/
|
|
195
202
|
fillTranslateAnchor?: Value<"map" | "viewport", ["zoom"]>;
|
|
196
203
|
/**
|
|
197
|
-
* Name of image in sprite to use for drawing image fills. For seamless
|
|
204
|
+
* Name of image in sprite to use for drawing image fills. For seamless
|
|
205
|
+
* patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
|
|
206
|
+
* Note that zoomDependent expressions will be evaluated only at integer zoom
|
|
207
|
+
* levels.
|
|
198
208
|
*/
|
|
199
209
|
fillPattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
|
|
200
210
|
|
|
@@ -221,7 +231,8 @@ export interface LineLayerStyle {
|
|
|
221
231
|
*/
|
|
222
232
|
lineRoundLimit?: Value<number, ["zoom"]>;
|
|
223
233
|
/**
|
|
224
|
-
* Sorts features in ascending order based on this value. Features with a higher
|
|
234
|
+
* Sorts features in ascending order based on this value. Features with a higher
|
|
235
|
+
* sort key will appear above features with a lower sort key.
|
|
225
236
|
*/
|
|
226
237
|
lineSortKey?: Value<number, ["zoom", "feature"]>;
|
|
227
238
|
/**
|
|
@@ -249,7 +260,8 @@ export interface LineLayerStyle {
|
|
|
249
260
|
*/
|
|
250
261
|
lineColorTransition?: Transition;
|
|
251
262
|
/**
|
|
252
|
-
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
263
|
+
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
264
|
+
* up, respectively.
|
|
253
265
|
*/
|
|
254
266
|
lineTranslate?: Value<Translation, ["zoom"]>;
|
|
255
267
|
|
|
@@ -273,7 +285,8 @@ export interface LineLayerStyle {
|
|
|
273
285
|
*/
|
|
274
286
|
lineWidthTransition?: Transition;
|
|
275
287
|
/**
|
|
276
|
-
* Draws a line casing outside of a line's actual path. Value indicates the
|
|
288
|
+
* Draws a line casing outside of a line's actual path. Value indicates the
|
|
289
|
+
* width of the inner gap.
|
|
277
290
|
*/
|
|
278
291
|
lineGapWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
279
292
|
|
|
@@ -282,7 +295,10 @@ export interface LineLayerStyle {
|
|
|
282
295
|
*/
|
|
283
296
|
lineGapWidthTransition?: Transition;
|
|
284
297
|
/**
|
|
285
|
-
* The line's offset. For linear features, a positive value offsets the line to
|
|
298
|
+
* The line's offset. For linear features, a positive value offsets the line to
|
|
299
|
+
* the right, relative to the direction of the line, and a negative value to the
|
|
300
|
+
* left. For polygon features, a positive value results in an inset, and a
|
|
301
|
+
* negative value results in an outset.
|
|
286
302
|
*/
|
|
287
303
|
lineOffset?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
288
304
|
|
|
@@ -300,7 +316,14 @@ export interface LineLayerStyle {
|
|
|
300
316
|
*/
|
|
301
317
|
lineBlurTransition?: Transition;
|
|
302
318
|
/**
|
|
303
|
-
* Specifies the lengths of the alternating dashes and gaps that form the dash
|
|
319
|
+
* Specifies the lengths of the alternating dashes and gaps that form the dash
|
|
320
|
+
* pattern. The lengths are later scaled by the line width. To convert a dash
|
|
321
|
+
* length to pixels, multiply the length by the current line width. GeoJSON
|
|
322
|
+
* sources with `lineMetrics: true` specified won't render dashed lines to the
|
|
323
|
+
* expected scale. ZoomDependent expressions will be evaluated only at integer
|
|
324
|
+
* zoom levels. The only way to create an array value is using
|
|
325
|
+
* `["literal", [...]]` ; arrays cannot be read from or derived from feature
|
|
326
|
+
* properties.
|
|
304
327
|
*
|
|
305
328
|
* @disabledBy linePattern
|
|
306
329
|
*/
|
|
@@ -311,7 +334,9 @@ export interface LineLayerStyle {
|
|
|
311
334
|
*/
|
|
312
335
|
lineDasharrayTransition?: Transition;
|
|
313
336
|
/**
|
|
314
|
-
* Name of image in sprite to use for drawing image lines. For seamless
|
|
337
|
+
* Name of image in sprite to use for drawing image lines. For seamless
|
|
338
|
+
* patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that
|
|
339
|
+
* zoomDependent expressions will be evaluated only at integer zoom levels.
|
|
315
340
|
*/
|
|
316
341
|
linePattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
|
|
317
342
|
|
|
@@ -320,7 +345,8 @@ export interface LineLayerStyle {
|
|
|
320
345
|
*/
|
|
321
346
|
linePatternTransition?: Transition;
|
|
322
347
|
/**
|
|
323
|
-
* Defines a gradient with which to color a line feature. Can only be used with
|
|
348
|
+
* Defines a gradient with which to color a line feature. Can only be used with
|
|
349
|
+
* GeoJSON sources that specify `"lineMetrics": true` .
|
|
324
350
|
*
|
|
325
351
|
* @disabledBy lineDasharray, linePattern
|
|
326
352
|
*/
|
|
@@ -336,19 +362,33 @@ export interface SymbolLayerStyle {
|
|
|
336
362
|
*/
|
|
337
363
|
symbolSpacing?: Value<number, ["zoom"]>;
|
|
338
364
|
/**
|
|
339
|
-
* If true, the symbols will not cross tile edges to avoid mutual collisions.
|
|
365
|
+
* If true, the symbols will not cross tile edges to avoid mutual collisions.
|
|
366
|
+
* Recommended in layers that don't have enough padding in the vector tile to
|
|
367
|
+
* prevent collisions, or if it is a point symbol layer placed after a line
|
|
368
|
+
* symbol layer. When using a client that supports global collision detection,
|
|
369
|
+
* like MapLibre GL JS version 0.42.0 or greater, enabling this property is not
|
|
370
|
+
* needed to prevent clipped labels at tile boundaries.
|
|
340
371
|
*/
|
|
341
372
|
symbolAvoidEdges?: Value<boolean, ["zoom"]>;
|
|
342
373
|
/**
|
|
343
|
-
* Sorts features in ascending order based on this value. Features with lower
|
|
374
|
+
* Sorts features in ascending order based on this value. Features with lower
|
|
375
|
+
* sort keys are drawn and placed first. When `iconAllowOverlap` or
|
|
376
|
+
* `textAllowOverlap` is `false` , features with a lower sort key will have
|
|
377
|
+
* priority during placement. When `iconAllowOverlap` or `textAllowOverlap` is
|
|
378
|
+
* set to `true` , features with a higher sort key will overlap over features
|
|
379
|
+
* with a lower sort key.
|
|
344
380
|
*/
|
|
345
381
|
symbolSortKey?: Value<number, ["zoom", "feature"]>;
|
|
346
382
|
/**
|
|
347
|
-
* Determines whether overlapping symbols in the same layer are rendered in the
|
|
383
|
+
* Determines whether overlapping symbols in the same layer are rendered in the
|
|
384
|
+
* order that they appear in the data source or by their yPosition relative to
|
|
385
|
+
* the viewport. To control the order and prioritization of symbols otherwise,
|
|
386
|
+
* use `symbolSortKey` .
|
|
348
387
|
*/
|
|
349
388
|
symbolZOrder?: Value<"auto" | "viewport-y" | "source", ["zoom"]>;
|
|
350
389
|
/**
|
|
351
|
-
* If true, the icon will be visible even if it collides with other previously
|
|
390
|
+
* If true, the icon will be visible even if it collides with other previously
|
|
391
|
+
* drawn symbols.
|
|
352
392
|
*
|
|
353
393
|
* @requires iconImage
|
|
354
394
|
*
|
|
@@ -362,19 +402,23 @@ export interface SymbolLayerStyle {
|
|
|
362
402
|
*/
|
|
363
403
|
iconIgnorePlacement?: Value<boolean, ["zoom"]>;
|
|
364
404
|
/**
|
|
365
|
-
* If true, text will display without their corresponding icons when the icon
|
|
405
|
+
* If true, text will display without their corresponding icons when the icon
|
|
406
|
+
* collides with other symbols and the text does not.
|
|
366
407
|
*
|
|
367
408
|
* @requires iconImage, textField
|
|
368
409
|
*/
|
|
369
410
|
iconOptional?: Value<boolean, ["zoom"]>;
|
|
370
411
|
/**
|
|
371
|
-
* In combination with `symbolPlacement
|
|
412
|
+
* In combination with `symbolPlacement` , determines the rotation behavior of
|
|
413
|
+
* icons.
|
|
372
414
|
*
|
|
373
415
|
* @requires iconImage
|
|
374
416
|
*/
|
|
375
417
|
iconRotationAlignment?: Value<"map" | "viewport" | "auto", ["zoom"]>;
|
|
376
418
|
/**
|
|
377
|
-
* Scales the original size of the icon by the provided factor. The new pixel
|
|
419
|
+
* Scales the original size of the icon by the provided factor. The new pixel
|
|
420
|
+
* size of the image will be the original pixel size multiplied by `iconSize` .
|
|
421
|
+
* 1 is the original size; 3 triples the size of the image.
|
|
378
422
|
*
|
|
379
423
|
* @requires iconImage
|
|
380
424
|
*/
|
|
@@ -386,7 +430,8 @@ export interface SymbolLayerStyle {
|
|
|
386
430
|
*/
|
|
387
431
|
iconTextFit?: Value<"none" | "width" | "height" | "both", ["zoom"]>;
|
|
388
432
|
/**
|
|
389
|
-
* Size of the additional area added to dimensions determined by `iconTextFit
|
|
433
|
+
* Size of the additional area added to dimensions determined by `iconTextFit` ,
|
|
434
|
+
* in clockwise order: top, right, bottom, left.
|
|
390
435
|
*
|
|
391
436
|
* @requires iconImage, textField
|
|
392
437
|
*/
|
|
@@ -402,19 +447,25 @@ export interface SymbolLayerStyle {
|
|
|
402
447
|
*/
|
|
403
448
|
iconRotate?: Value<number, ["zoom", "feature"]>;
|
|
404
449
|
/**
|
|
405
|
-
* Size of additional area round the icon bounding box used for detecting symbol
|
|
450
|
+
* Size of additional area round the icon bounding box used for detecting symbol
|
|
451
|
+
* collisions.
|
|
406
452
|
*
|
|
407
453
|
* @requires iconImage
|
|
408
454
|
*/
|
|
409
455
|
iconPadding?: Value<number[], ["zoom", "feature"]>;
|
|
410
456
|
/**
|
|
411
|
-
* If true, the icon may be flipped to prevent it from being rendered
|
|
457
|
+
* If true, the icon may be flipped to prevent it from being rendered
|
|
458
|
+
* upsideDown.
|
|
412
459
|
*
|
|
413
460
|
* @requires iconImage
|
|
414
461
|
*/
|
|
415
462
|
iconKeepUpright?: Value<boolean, ["zoom"]>;
|
|
416
463
|
/**
|
|
417
|
-
* Offset distance of icon from its anchor. Positive values indicate right and
|
|
464
|
+
* Offset distance of icon from its anchor. Positive values indicate right and
|
|
465
|
+
* down, while negative values indicate left and up. Each component is
|
|
466
|
+
* multiplied by the value of `iconSize` to obtain the final offset in pixels.
|
|
467
|
+
* When combined with `iconRotate` the offset will be as if the rotated
|
|
468
|
+
* direction was up.
|
|
418
469
|
*
|
|
419
470
|
* @requires iconImage
|
|
420
471
|
*/
|
|
@@ -449,7 +500,8 @@ export interface SymbolLayerStyle {
|
|
|
449
500
|
*/
|
|
450
501
|
textPitchAlignment?: Value<"map" | "viewport" | "auto", ["zoom"]>;
|
|
451
502
|
/**
|
|
452
|
-
* In combination with `symbolPlacement
|
|
503
|
+
* In combination with `symbolPlacement` , determines the rotation behavior of
|
|
504
|
+
* the individual glyphs forming the text.
|
|
453
505
|
*
|
|
454
506
|
* @requires textField
|
|
455
507
|
*/
|
|
@@ -458,11 +510,15 @@ export interface SymbolLayerStyle {
|
|
|
458
510
|
["zoom"]
|
|
459
511
|
>;
|
|
460
512
|
/**
|
|
461
|
-
* Value to use for a text label. If a plain `string` is provided, it will be
|
|
513
|
+
* Value to use for a text label. If a plain `string` is provided, it will be
|
|
514
|
+
* treated as a `formatted` with default/inherited formatting options.
|
|
462
515
|
*/
|
|
463
516
|
textField?: Value<FormattedString, ["zoom", "feature"]>;
|
|
464
517
|
/**
|
|
465
|
-
* Fonts to use for displaying text. If the `glyphs` root property is specified,
|
|
518
|
+
* Fonts to use for displaying text. If the `glyphs` root property is specified,
|
|
519
|
+
* this array is joined together and interpreted as a font stack name.
|
|
520
|
+
* Otherwise, it is interpreted as a cascading fallback list of local font
|
|
521
|
+
* names.
|
|
466
522
|
*
|
|
467
523
|
* @requires textField
|
|
468
524
|
*/
|
|
@@ -501,13 +557,20 @@ export interface SymbolLayerStyle {
|
|
|
501
557
|
["zoom", "feature"]
|
|
502
558
|
>;
|
|
503
559
|
/**
|
|
504
|
-
* Radial offset of text, in the direction of the symbol's anchor. Useful in
|
|
560
|
+
* Radial offset of text, in the direction of the symbol's anchor. Useful in
|
|
561
|
+
* combination with `textVariableAnchor` , which defaults to using the
|
|
562
|
+
* twoDimensional `textOffset` if present.
|
|
505
563
|
*
|
|
506
564
|
* @requires textField
|
|
507
565
|
*/
|
|
508
566
|
textRadialOffset?: Value<number, ["zoom", "feature"]>;
|
|
509
567
|
/**
|
|
510
|
-
* To increase the chance of placing highPriority labels on the map, you can
|
|
568
|
+
* To increase the chance of placing highPriority labels on the map, you can
|
|
569
|
+
* provide an array of `textAnchor` locations: the renderer will attempt to
|
|
570
|
+
* place the label at each location, in order, before moving onto the next
|
|
571
|
+
* label. Use `textJustify: auto` to choose justification based on anchor
|
|
572
|
+
* position. To apply an offset, use the `textRadialOffset` or the
|
|
573
|
+
* twoDimensional `textOffset` .
|
|
511
574
|
*
|
|
512
575
|
* @requires textField
|
|
513
576
|
*/
|
|
@@ -551,7 +614,12 @@ export interface SymbolLayerStyle {
|
|
|
551
614
|
*/
|
|
552
615
|
textMaxAngle?: Value<number, ["zoom"]>;
|
|
553
616
|
/**
|
|
554
|
-
* The property allows control over a symbol's orientation. Note that the
|
|
617
|
+
* The property allows control over a symbol's orientation. Note that the
|
|
618
|
+
* property values act as a hint, so that a symbol whose language doesn’t
|
|
619
|
+
* support the provided orientation will be laid out in its natural orientation.
|
|
620
|
+
* Example: English point symbol will be rendered horizontally even if array
|
|
621
|
+
* value contains single 'vertical' enum value. The order of elements in an
|
|
622
|
+
* array define priority order for the placement of an orientation variant.
|
|
555
623
|
*
|
|
556
624
|
* @requires textField
|
|
557
625
|
*/
|
|
@@ -563,19 +631,22 @@ export interface SymbolLayerStyle {
|
|
|
563
631
|
*/
|
|
564
632
|
textRotate?: Value<number, ["zoom", "feature"]>;
|
|
565
633
|
/**
|
|
566
|
-
* Size of the additional area around the text bounding box used for detecting
|
|
634
|
+
* Size of the additional area around the text bounding box used for detecting
|
|
635
|
+
* symbol collisions.
|
|
567
636
|
*
|
|
568
637
|
* @requires textField
|
|
569
638
|
*/
|
|
570
639
|
textPadding?: Value<number, ["zoom"]>;
|
|
571
640
|
/**
|
|
572
|
-
* If true, the text may be flipped vertically to prevent it from being rendered
|
|
641
|
+
* If true, the text may be flipped vertically to prevent it from being rendered
|
|
642
|
+
* upsideDown.
|
|
573
643
|
*
|
|
574
644
|
* @requires textField
|
|
575
645
|
*/
|
|
576
646
|
textKeepUpright?: Value<boolean, ["zoom"]>;
|
|
577
647
|
/**
|
|
578
|
-
* Specifies how to capitalize text, similar to the CSS `textTransform`
|
|
648
|
+
* Specifies how to capitalize text, similar to the CSS `textTransform`
|
|
649
|
+
* property.
|
|
579
650
|
*
|
|
580
651
|
* @requires textField
|
|
581
652
|
*/
|
|
@@ -584,7 +655,11 @@ export interface SymbolLayerStyle {
|
|
|
584
655
|
["zoom", "feature"]
|
|
585
656
|
>;
|
|
586
657
|
/**
|
|
587
|
-
* Offset distance of text from its anchor. Positive values indicate right and
|
|
658
|
+
* Offset distance of text from its anchor. Positive values indicate right and
|
|
659
|
+
* down, while negative values indicate left and up. If used with
|
|
660
|
+
* textVariableAnchor, input values will be taken as absolute values. Offsets
|
|
661
|
+
* along the x and yAxis will be applied automatically based on the anchor
|
|
662
|
+
* position.
|
|
588
663
|
*
|
|
589
664
|
* @requires textField
|
|
590
665
|
*
|
|
@@ -592,7 +667,8 @@ export interface SymbolLayerStyle {
|
|
|
592
667
|
*/
|
|
593
668
|
textOffset?: Value<number[], ["zoom", "feature"]>;
|
|
594
669
|
/**
|
|
595
|
-
* If true, the text will be visible even if it collides with other previously
|
|
670
|
+
* If true, the text will be visible even if it collides with other previously
|
|
671
|
+
* drawn symbols.
|
|
596
672
|
*
|
|
597
673
|
* @requires textField
|
|
598
674
|
*
|
|
@@ -606,7 +682,8 @@ export interface SymbolLayerStyle {
|
|
|
606
682
|
*/
|
|
607
683
|
textIgnorePlacement?: Value<boolean, ["zoom"]>;
|
|
608
684
|
/**
|
|
609
|
-
* If true, icons will display without their corresponding text when the text
|
|
685
|
+
* If true, icons will display without their corresponding text when the text
|
|
686
|
+
* collides with other symbols and the icon does not.
|
|
610
687
|
*
|
|
611
688
|
* @requires textField, iconImage
|
|
612
689
|
*/
|
|
@@ -649,12 +726,14 @@ export interface SymbolLayerStyle {
|
|
|
649
726
|
*/
|
|
650
727
|
iconHaloColorTransition?: Transition;
|
|
651
728
|
/**
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
The unit is in pixels only for SDF sprites that were created with a blur
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
729
|
+
* Distance of halo to the icon outline.
|
|
730
|
+
*
|
|
731
|
+
* The unit is in pixels only for SDF sprites that were created with a blur
|
|
732
|
+
* radius of 8, multiplied by the display density. I.e., the radius needs to be
|
|
733
|
+
* 16 for `@2x` sprites, etc.
|
|
734
|
+
*
|
|
735
|
+
* @requires iconImage
|
|
736
|
+
*/
|
|
658
737
|
iconHaloWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
659
738
|
|
|
660
739
|
/**
|
|
@@ -673,7 +752,9 @@ The unit is in pixels only for SDF sprites that were created with a blur radius
|
|
|
673
752
|
*/
|
|
674
753
|
iconHaloBlurTransition?: Transition;
|
|
675
754
|
/**
|
|
676
|
-
* Distance that the icon's anchor is moved from its original placement.
|
|
755
|
+
* Distance that the icon's anchor is moved from its original placement.
|
|
756
|
+
* Positive values indicate right and down, while negative values indicate left
|
|
757
|
+
* and up.
|
|
677
758
|
*
|
|
678
759
|
* @requires iconImage
|
|
679
760
|
*/
|
|
@@ -723,7 +804,8 @@ The unit is in pixels only for SDF sprites that were created with a blur radius
|
|
|
723
804
|
*/
|
|
724
805
|
textHaloColorTransition?: Transition;
|
|
725
806
|
/**
|
|
726
|
-
* Distance of halo to the font outline. Max text halo width is 1/4 of the
|
|
807
|
+
* Distance of halo to the font outline. Max text halo width is 1/4 of the
|
|
808
|
+
* fontSize.
|
|
727
809
|
*
|
|
728
810
|
* @requires textField
|
|
729
811
|
*/
|
|
@@ -745,7 +827,9 @@ The unit is in pixels only for SDF sprites that were created with a blur radius
|
|
|
745
827
|
*/
|
|
746
828
|
textHaloBlurTransition?: Transition;
|
|
747
829
|
/**
|
|
748
|
-
* Distance that the text's anchor is moved from its original placement.
|
|
830
|
+
* Distance that the text's anchor is moved from its original placement.
|
|
831
|
+
* Positive values indicate right and down, while negative values indicate left
|
|
832
|
+
* and up.
|
|
749
833
|
*
|
|
750
834
|
* @requires textField
|
|
751
835
|
*/
|
|
@@ -764,7 +848,8 @@ The unit is in pixels only for SDF sprites that were created with a blur radius
|
|
|
764
848
|
}
|
|
765
849
|
export interface CircleLayerStyle {
|
|
766
850
|
/**
|
|
767
|
-
* Sorts features in ascending order based on this value. Features with a higher
|
|
851
|
+
* Sorts features in ascending order based on this value. Features with a higher
|
|
852
|
+
* sort key will appear above features with a lower sort key.
|
|
768
853
|
*/
|
|
769
854
|
circleSortKey?: Value<number, ["zoom", "feature"]>;
|
|
770
855
|
/**
|
|
@@ -790,7 +875,8 @@ export interface CircleLayerStyle {
|
|
|
790
875
|
*/
|
|
791
876
|
circleColorTransition?: Transition;
|
|
792
877
|
/**
|
|
793
|
-
* Amount to blur the circle. 1 blurs the circle such that only the centerpoint
|
|
878
|
+
* Amount to blur the circle. 1 blurs the circle such that only the centerpoint
|
|
879
|
+
* is full opacity.
|
|
794
880
|
*/
|
|
795
881
|
circleBlur?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
796
882
|
|
|
@@ -808,12 +894,14 @@ export interface CircleLayerStyle {
|
|
|
808
894
|
*/
|
|
809
895
|
circleOpacityTransition?: Transition;
|
|
810
896
|
/**
|
|
811
|
-
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
897
|
+
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
898
|
+
* up, respectively.
|
|
812
899
|
*/
|
|
813
900
|
circleTranslate?: Value<Translation, ["zoom"]>;
|
|
814
901
|
|
|
815
902
|
/**
|
|
816
|
-
* The transition affecting any changes to this layer’s circleTranslate
|
|
903
|
+
* The transition affecting any changes to this layer’s circleTranslate
|
|
904
|
+
* property.
|
|
817
905
|
*/
|
|
818
906
|
circleTranslateTransition?: Transition;
|
|
819
907
|
/**
|
|
@@ -831,12 +919,14 @@ export interface CircleLayerStyle {
|
|
|
831
919
|
*/
|
|
832
920
|
circlePitchAlignment?: Value<"map" | "viewport", ["zoom"]>;
|
|
833
921
|
/**
|
|
834
|
-
* The width of the circle's stroke. Strokes are placed outside of the
|
|
922
|
+
* The width of the circle's stroke. Strokes are placed outside of the
|
|
923
|
+
* `circleRadius` .
|
|
835
924
|
*/
|
|
836
925
|
circleStrokeWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
837
926
|
|
|
838
927
|
/**
|
|
839
|
-
* The transition affecting any changes to this layer’s circleStrokeWidth
|
|
928
|
+
* The transition affecting any changes to this layer’s circleStrokeWidth
|
|
929
|
+
* property.
|
|
840
930
|
*/
|
|
841
931
|
circleStrokeWidthTransition?: Transition;
|
|
842
932
|
/**
|
|
@@ -845,7 +935,8 @@ export interface CircleLayerStyle {
|
|
|
845
935
|
circleStrokeColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
846
936
|
|
|
847
937
|
/**
|
|
848
|
-
* The transition affecting any changes to this layer’s circleStrokeColor
|
|
938
|
+
* The transition affecting any changes to this layer’s circleStrokeColor
|
|
939
|
+
* property.
|
|
849
940
|
*/
|
|
850
941
|
circleStrokeColorTransition?: Transition;
|
|
851
942
|
/**
|
|
@@ -854,7 +945,8 @@ export interface CircleLayerStyle {
|
|
|
854
945
|
circleStrokeOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
855
946
|
|
|
856
947
|
/**
|
|
857
|
-
* The transition affecting any changes to this layer’s circleStrokeOpacity
|
|
948
|
+
* The transition affecting any changes to this layer’s circleStrokeOpacity
|
|
949
|
+
* property.
|
|
858
950
|
*/
|
|
859
951
|
circleStrokeOpacityTransition?: Transition;
|
|
860
952
|
}
|
|
@@ -864,7 +956,8 @@ export interface HeatmapLayerStyle {
|
|
|
864
956
|
*/
|
|
865
957
|
visibility?: Value<"visible" | "none", ["global-state"]>;
|
|
866
958
|
/**
|
|
867
|
-
* Radius of influence of one heatmap point in pixels. Increasing the value
|
|
959
|
+
* Radius of influence of one heatmap point in pixels. Increasing the value
|
|
960
|
+
* makes the heatmap smoother, but less detailed.
|
|
868
961
|
*/
|
|
869
962
|
heatmapRadius?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
870
963
|
|
|
@@ -873,20 +966,25 @@ export interface HeatmapLayerStyle {
|
|
|
873
966
|
*/
|
|
874
967
|
heatmapRadiusTransition?: Transition;
|
|
875
968
|
/**
|
|
876
|
-
* A measure of how much an individual point contributes to the heatmap. A value
|
|
969
|
+
* A measure of how much an individual point contributes to the heatmap. A value
|
|
970
|
+
* of 10 would be equivalent to having 10 points of weight 1 in the same spot.
|
|
971
|
+
* Especially useful when combined with clustering.
|
|
877
972
|
*/
|
|
878
973
|
heatmapWeight?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
879
974
|
/**
|
|
880
|
-
* Similar to `heatmapWeight` but controls the intensity of the heatmap
|
|
975
|
+
* Similar to `heatmapWeight` but controls the intensity of the heatmap
|
|
976
|
+
* globally. Primarily used for adjusting the heatmap based on zoom level.
|
|
881
977
|
*/
|
|
882
978
|
heatmapIntensity?: Value<number, ["zoom"]>;
|
|
883
979
|
|
|
884
980
|
/**
|
|
885
|
-
* The transition affecting any changes to this layer’s heatmapIntensity
|
|
981
|
+
* The transition affecting any changes to this layer’s heatmapIntensity
|
|
982
|
+
* property.
|
|
886
983
|
*/
|
|
887
984
|
heatmapIntensityTransition?: Transition;
|
|
888
985
|
/**
|
|
889
|
-
* Defines the color of each pixel based on its density value in a heatmap.
|
|
986
|
+
* Defines the color of each pixel based on its density value in a heatmap.
|
|
987
|
+
* Should be an expression that uses `["heatmapDensity"]` as input.
|
|
890
988
|
*/
|
|
891
989
|
heatmapColor?: Value<string, ["heatmap-density"]>;
|
|
892
990
|
/**
|
|
@@ -905,32 +1003,41 @@ export interface FillExtrusionLayerStyle {
|
|
|
905
1003
|
*/
|
|
906
1004
|
visibility?: Value<"visible" | "none", ["global-state"]>;
|
|
907
1005
|
/**
|
|
908
|
-
* The opacity of the entire fill extrusion layer. This is rendered on a
|
|
1006
|
+
* The opacity of the entire fill extrusion layer. This is rendered on a
|
|
1007
|
+
* perLayer, not perFeature, basis, and dataDriven styling is not available.
|
|
909
1008
|
*/
|
|
910
1009
|
fillExtrusionOpacity?: Value<number, ["zoom"]>;
|
|
911
1010
|
|
|
912
1011
|
/**
|
|
913
|
-
* The transition affecting any changes to this layer’s fillExtrusionOpacity
|
|
1012
|
+
* The transition affecting any changes to this layer’s fillExtrusionOpacity
|
|
1013
|
+
* property.
|
|
914
1014
|
*/
|
|
915
1015
|
fillExtrusionOpacityTransition?: Transition;
|
|
916
1016
|
/**
|
|
917
|
-
* The base color of the extruded fill. The extrusion's surfaces will be shaded
|
|
1017
|
+
* The base color of the extruded fill. The extrusion's surfaces will be shaded
|
|
1018
|
+
* differently based on this color in combination with the root `light`
|
|
1019
|
+
* settings. If this color is specified as `rgba` with an alpha component, the
|
|
1020
|
+
* alpha component will be ignored; use `fillExtrusionOpacity` to set layer
|
|
1021
|
+
* opacity.
|
|
918
1022
|
*
|
|
919
1023
|
* @disabledBy fillExtrusionPattern
|
|
920
1024
|
*/
|
|
921
1025
|
fillExtrusionColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
922
1026
|
|
|
923
1027
|
/**
|
|
924
|
-
* The transition affecting any changes to this layer’s fillExtrusionColor
|
|
1028
|
+
* The transition affecting any changes to this layer’s fillExtrusionColor
|
|
1029
|
+
* property.
|
|
925
1030
|
*/
|
|
926
1031
|
fillExtrusionColorTransition?: Transition;
|
|
927
1032
|
/**
|
|
928
|
-
* The geometry's offset. Values are [x, y] where negatives indicate left and up
|
|
1033
|
+
* The geometry's offset. Values are [x, y] where negatives indicate left and up
|
|
1034
|
+
* (on the flat plane), respectively.
|
|
929
1035
|
*/
|
|
930
1036
|
fillExtrusionTranslate?: Value<Translation, ["zoom"]>;
|
|
931
1037
|
|
|
932
1038
|
/**
|
|
933
|
-
* The transition affecting any changes to this layer’s fillExtrusionTranslate
|
|
1039
|
+
* The transition affecting any changes to this layer’s fillExtrusionTranslate
|
|
1040
|
+
* property.
|
|
934
1041
|
*/
|
|
935
1042
|
fillExtrusionTranslateTransition?: Transition;
|
|
936
1043
|
/**
|
|
@@ -940,12 +1047,16 @@ export interface FillExtrusionLayerStyle {
|
|
|
940
1047
|
*/
|
|
941
1048
|
fillExtrusionTranslateAnchor?: Value<"map" | "viewport", ["zoom"]>;
|
|
942
1049
|
/**
|
|
943
|
-
* Name of image in sprite to use for drawing images on extruded fills. For
|
|
1050
|
+
* Name of image in sprite to use for drawing images on extruded fills. For
|
|
1051
|
+
* seamless patterns, image width and height must be a factor of two (2, 4, 8,
|
|
1052
|
+
* ..., 512). Note that zoomDependent expressions will be evaluated only at
|
|
1053
|
+
* integer zoom levels.
|
|
944
1054
|
*/
|
|
945
1055
|
fillExtrusionPattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
|
|
946
1056
|
|
|
947
1057
|
/**
|
|
948
|
-
* The transition affecting any changes to this layer’s fillExtrusionPattern
|
|
1058
|
+
* The transition affecting any changes to this layer’s fillExtrusionPattern
|
|
1059
|
+
* property.
|
|
949
1060
|
*/
|
|
950
1061
|
fillExtrusionPatternTransition?: Transition;
|
|
951
1062
|
/**
|
|
@@ -954,22 +1065,26 @@ export interface FillExtrusionLayerStyle {
|
|
|
954
1065
|
fillExtrusionHeight?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
955
1066
|
|
|
956
1067
|
/**
|
|
957
|
-
* The transition affecting any changes to this layer’s fillExtrusionHeight
|
|
1068
|
+
* The transition affecting any changes to this layer’s fillExtrusionHeight
|
|
1069
|
+
* property.
|
|
958
1070
|
*/
|
|
959
1071
|
fillExtrusionHeightTransition?: Transition;
|
|
960
1072
|
/**
|
|
961
|
-
* The height with which to extrude the base of this layer. Must be less than or
|
|
1073
|
+
* The height with which to extrude the base of this layer. Must be less than or
|
|
1074
|
+
* equal to `fillExtrusionHeight` .
|
|
962
1075
|
*
|
|
963
1076
|
* @requires fillExtrusionHeight
|
|
964
1077
|
*/
|
|
965
1078
|
fillExtrusionBase?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
966
1079
|
|
|
967
1080
|
/**
|
|
968
|
-
* The transition affecting any changes to this layer’s fillExtrusionBase
|
|
1081
|
+
* The transition affecting any changes to this layer’s fillExtrusionBase
|
|
1082
|
+
* property.
|
|
969
1083
|
*/
|
|
970
1084
|
fillExtrusionBaseTransition?: Transition;
|
|
971
1085
|
/**
|
|
972
|
-
* Whether to apply a vertical gradient to the sides of a fillExtrusion layer.
|
|
1086
|
+
* Whether to apply a vertical gradient to the sides of a fillExtrusion layer.
|
|
1087
|
+
* If true, sides will be shaded slightly darker farther down.
|
|
973
1088
|
*/
|
|
974
1089
|
fillExtrusionVerticalGradient?: Value<boolean, ["zoom"]>;
|
|
975
1090
|
}
|
|
@@ -993,25 +1108,30 @@ export interface RasterLayerStyle {
|
|
|
993
1108
|
rasterHueRotate?: Value<number, ["zoom"]>;
|
|
994
1109
|
|
|
995
1110
|
/**
|
|
996
|
-
* The transition affecting any changes to this layer’s rasterHueRotate
|
|
1111
|
+
* The transition affecting any changes to this layer’s rasterHueRotate
|
|
1112
|
+
* property.
|
|
997
1113
|
*/
|
|
998
1114
|
rasterHueRotateTransition?: Transition;
|
|
999
1115
|
/**
|
|
1000
|
-
* Increase or reduce the brightness of the image. The value is the minimum
|
|
1116
|
+
* Increase or reduce the brightness of the image. The value is the minimum
|
|
1117
|
+
* brightness.
|
|
1001
1118
|
*/
|
|
1002
1119
|
rasterBrightnessMin?: Value<number, ["zoom"]>;
|
|
1003
1120
|
|
|
1004
1121
|
/**
|
|
1005
|
-
* The transition affecting any changes to this layer’s rasterBrightnessMin
|
|
1122
|
+
* The transition affecting any changes to this layer’s rasterBrightnessMin
|
|
1123
|
+
* property.
|
|
1006
1124
|
*/
|
|
1007
1125
|
rasterBrightnessMinTransition?: Transition;
|
|
1008
1126
|
/**
|
|
1009
|
-
* Increase or reduce the brightness of the image. The value is the maximum
|
|
1127
|
+
* Increase or reduce the brightness of the image. The value is the maximum
|
|
1128
|
+
* brightness.
|
|
1010
1129
|
*/
|
|
1011
1130
|
rasterBrightnessMax?: Value<number, ["zoom"]>;
|
|
1012
1131
|
|
|
1013
1132
|
/**
|
|
1014
|
-
* The transition affecting any changes to this layer’s rasterBrightnessMax
|
|
1133
|
+
* The transition affecting any changes to this layer’s rasterBrightnessMax
|
|
1134
|
+
* property.
|
|
1015
1135
|
*/
|
|
1016
1136
|
rasterBrightnessMaxTransition?: Transition;
|
|
1017
1137
|
/**
|
|
@@ -1020,7 +1140,8 @@ export interface RasterLayerStyle {
|
|
|
1020
1140
|
rasterSaturation?: Value<number, ["zoom"]>;
|
|
1021
1141
|
|
|
1022
1142
|
/**
|
|
1023
|
-
* The transition affecting any changes to this layer’s rasterSaturation
|
|
1143
|
+
* The transition affecting any changes to this layer’s rasterSaturation
|
|
1144
|
+
* property.
|
|
1024
1145
|
*/
|
|
1025
1146
|
rasterSaturationTransition?: Transition;
|
|
1026
1147
|
/**
|
|
@@ -1033,11 +1154,13 @@ export interface RasterLayerStyle {
|
|
|
1033
1154
|
*/
|
|
1034
1155
|
rasterContrastTransition?: Transition;
|
|
1035
1156
|
/**
|
|
1036
|
-
* The resampling/interpolation method to use for overscaling, also known as
|
|
1157
|
+
* The resampling/interpolation method to use for overscaling, also known as
|
|
1158
|
+
* texture magnification filter
|
|
1037
1159
|
*/
|
|
1038
1160
|
rasterResampling?: Value<"linear" | "nearest", ["zoom"]>;
|
|
1039
1161
|
/**
|
|
1040
|
-
* Fade duration when a new tile is added, or when a video is started or its
|
|
1162
|
+
* Fade duration when a new tile is added, or when a video is started or its
|
|
1163
|
+
* coordinates are updated.
|
|
1041
1164
|
*/
|
|
1042
1165
|
rasterFadeDuration?: Value<number, ["zoom"]>;
|
|
1043
1166
|
}
|
|
@@ -1047,7 +1170,11 @@ export interface HillshadeLayerStyle {
|
|
|
1047
1170
|
*/
|
|
1048
1171
|
visibility?: Value<"visible" | "none", ["global-state"]>;
|
|
1049
1172
|
/**
|
|
1050
|
-
* The direction of the light source(s) used to generate the hillshading with 0
|
|
1173
|
+
* The direction of the light source(s) used to generate the hillshading with 0
|
|
1174
|
+
* as the top of the viewport if `hillshadeIlluminationAnchor` is set to
|
|
1175
|
+
* `viewport` and due north if `hillshadeIlluminationAnchor` is set to `map` .
|
|
1176
|
+
* Only when `hillshadeMethod` is set to `multidirectional` can you specify
|
|
1177
|
+
* multiple light sources.
|
|
1051
1178
|
*/
|
|
1052
1179
|
hillshadeIlluminationDirection?: Value<number, ["zoom"]>;
|
|
1053
1180
|
/**
|
|
@@ -1060,34 +1187,43 @@ export interface HillshadeLayerStyle {
|
|
|
1060
1187
|
hillshadeExaggeration?: Value<number, ["zoom"]>;
|
|
1061
1188
|
|
|
1062
1189
|
/**
|
|
1063
|
-
* The transition affecting any changes to this layer’s hillshadeExaggeration
|
|
1190
|
+
* The transition affecting any changes to this layer’s hillshadeExaggeration
|
|
1191
|
+
* property.
|
|
1064
1192
|
*/
|
|
1065
1193
|
hillshadeExaggerationTransition?: Transition;
|
|
1066
1194
|
/**
|
|
1067
|
-
* The shading color of areas that face away from the light source(s). Only when
|
|
1195
|
+
* The shading color of areas that face away from the light source(s). Only when
|
|
1196
|
+
* `hillshadeMethod` is set to `multidirectional` can you specify multiple light
|
|
1197
|
+
* sources.
|
|
1068
1198
|
*/
|
|
1069
1199
|
hillshadeShadowColor?: Value<string, ["zoom"]>;
|
|
1070
1200
|
|
|
1071
1201
|
/**
|
|
1072
|
-
* The transition affecting any changes to this layer’s hillshadeShadowColor
|
|
1202
|
+
* The transition affecting any changes to this layer’s hillshadeShadowColor
|
|
1203
|
+
* property.
|
|
1073
1204
|
*/
|
|
1074
1205
|
hillshadeShadowColorTransition?: Transition;
|
|
1075
1206
|
/**
|
|
1076
|
-
* The shading color of areas that faces towards the light source(s). Only when
|
|
1207
|
+
* The shading color of areas that faces towards the light source(s). Only when
|
|
1208
|
+
* `hillshadeMethod` is set to `multidirectional` can you specify multiple light
|
|
1209
|
+
* sources.
|
|
1077
1210
|
*/
|
|
1078
1211
|
hillshadeHighlightColor?: Value<string, ["zoom"]>;
|
|
1079
1212
|
|
|
1080
1213
|
/**
|
|
1081
|
-
* The transition affecting any changes to this layer’s hillshadeHighlightColor
|
|
1214
|
+
* The transition affecting any changes to this layer’s hillshadeHighlightColor
|
|
1215
|
+
* property.
|
|
1082
1216
|
*/
|
|
1083
1217
|
hillshadeHighlightColorTransition?: Transition;
|
|
1084
1218
|
/**
|
|
1085
|
-
* The shading color used to accentuate rugged terrain like sharp cliffs and
|
|
1219
|
+
* The shading color used to accentuate rugged terrain like sharp cliffs and
|
|
1220
|
+
* gorges.
|
|
1086
1221
|
*/
|
|
1087
1222
|
hillshadeAccentColor?: Value<string, ["zoom"]>;
|
|
1088
1223
|
|
|
1089
1224
|
/**
|
|
1090
|
-
* The transition affecting any changes to this layer’s hillshadeAccentColor
|
|
1225
|
+
* The transition affecting any changes to this layer’s hillshadeAccentColor
|
|
1226
|
+
* property.
|
|
1091
1227
|
*/
|
|
1092
1228
|
hillshadeAccentColorTransition?: Transition;
|
|
1093
1229
|
}
|
|
@@ -1104,16 +1240,21 @@ export interface BackgroundLayerStyle {
|
|
|
1104
1240
|
backgroundColor?: Value<string, ["zoom"]>;
|
|
1105
1241
|
|
|
1106
1242
|
/**
|
|
1107
|
-
* The transition affecting any changes to this layer’s backgroundColor
|
|
1243
|
+
* The transition affecting any changes to this layer’s backgroundColor
|
|
1244
|
+
* property.
|
|
1108
1245
|
*/
|
|
1109
1246
|
backgroundColorTransition?: Transition;
|
|
1110
1247
|
/**
|
|
1111
|
-
* Name of image in sprite to use for drawing an image background. For seamless
|
|
1248
|
+
* Name of image in sprite to use for drawing an image background. For seamless
|
|
1249
|
+
* patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
|
|
1250
|
+
* Note that zoomDependent expressions will be evaluated only at integer zoom
|
|
1251
|
+
* levels.
|
|
1112
1252
|
*/
|
|
1113
1253
|
backgroundPattern?: Value<ResolvedImageType, ["zoom"]>;
|
|
1114
1254
|
|
|
1115
1255
|
/**
|
|
1116
|
-
* The transition affecting any changes to this layer’s backgroundPattern
|
|
1256
|
+
* The transition affecting any changes to this layer’s backgroundPattern
|
|
1257
|
+
* property.
|
|
1117
1258
|
*/
|
|
1118
1259
|
backgroundPatternTransition?: Transition;
|
|
1119
1260
|
/**
|
|
@@ -1122,7 +1263,8 @@ export interface BackgroundLayerStyle {
|
|
|
1122
1263
|
backgroundOpacity?: Value<number, ["zoom"]>;
|
|
1123
1264
|
|
|
1124
1265
|
/**
|
|
1125
|
-
* The transition affecting any changes to this layer’s backgroundOpacity
|
|
1266
|
+
* The transition affecting any changes to this layer’s backgroundOpacity
|
|
1267
|
+
* property.
|
|
1126
1268
|
*/
|
|
1127
1269
|
backgroundOpacityTransition?: Transition;
|
|
1128
1270
|
}
|
|
@@ -1132,7 +1274,14 @@ export interface LightLayerStyle {
|
|
|
1132
1274
|
*/
|
|
1133
1275
|
anchor?: Value<"map" | "viewport", ["zoom"]>;
|
|
1134
1276
|
/**
|
|
1135
|
-
* Position of the light source relative to lit (extruded) geometries, in [r
|
|
1277
|
+
* Position of the light source relative to lit (extruded) geometries, in [r
|
|
1278
|
+
* radial coordinate, a azimuthal angle, p polar angle] where r indicates the
|
|
1279
|
+
* distance from the center of the base of an object to its light, a indicates
|
|
1280
|
+
* the position of the light relative to 0° (0° when `light.anchor` is set to
|
|
1281
|
+
* `viewport` corresponds to the top of the viewport, or 0° when `light.anchor`
|
|
1282
|
+
* is set to `map` corresponds to due north, and degrees proceed clockwise),
|
|
1283
|
+
* and p indicates the height of the light (from 0°, directly above, to 180°,
|
|
1284
|
+
* directly below).
|
|
1136
1285
|
*/
|
|
1137
1286
|
position?: Value<number[], ["zoom"]>;
|
|
1138
1287
|
|
|
@@ -1150,7 +1299,8 @@ export interface LightLayerStyle {
|
|
|
1150
1299
|
*/
|
|
1151
1300
|
colorTransition?: Transition;
|
|
1152
1301
|
/**
|
|
1153
|
-
* Intensity of lighting (on a scale from 0 to 1). Higher numbers will present
|
|
1302
|
+
* Intensity of lighting (on a scale from 0 to 1). Higher numbers will present
|
|
1303
|
+
* as more extreme contrast.
|
|
1154
1304
|
*/
|
|
1155
1305
|
intensity?: Value<number, ["zoom"]>;
|
|
1156
1306
|
|