@maplibre/maplibre-react-native 11.0.0-beta.8 → 11.0.0
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/MapLibreReactNative.podspec +1 -1
- package/README.md +0 -5
- package/android/build.gradle +3 -1
- package/android/gradle.properties +2 -2
- package/android/src/main/java/org/maplibre/reactnative/MLRNPackage.kt +14 -1
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerView.kt +35 -29
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerViewManager.kt +8 -1
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MarkerViewManager.kt +8 -5
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/pointannotation/MLRNPointAnnotation.kt +45 -25
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/pointannotation/MLRNPointAnnotationManager.kt +2 -1
- package/android/src/main/java/org/maplibre/reactnative/components/layer/MLRNLayer.kt +8 -8
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyle.kt +60 -0
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFactory.kt +3005 -0
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleValue.kt +159 -0
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.kt +234 -128
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.kt +37 -3
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewModule.kt +3 -1
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNLogModule.kt +2 -0
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNNetworkModule.kt +0 -42
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNOfflineModule.kt +27 -4
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNTransformRequestModule.kt +144 -0
- package/android/src/main/java/org/maplibre/reactnative/modules/TransformRequestInterceptor.kt +184 -0
- package/ios/components/annotations/point-annotation/MLRNPointAnnotation.h +3 -2
- package/ios/components/annotations/point-annotation/MLRNPointAnnotation.m +65 -2
- package/ios/components/annotations/point-annotation/MLRNPointAnnotationComponentView.mm +27 -19
- package/ios/components/camera/MLRNCameraComponentView.mm +5 -4
- package/ios/components/images/MLRNImageLoader.h +27 -0
- package/ios/components/images/MLRNImageLoader.m +85 -0
- package/ios/components/images/MLRNImageQueue.h +2 -2
- package/ios/components/images/MLRNImageQueue.m +2 -2
- package/ios/components/images/MLRNImageQueueOperation.h +2 -2
- package/ios/components/images/MLRNImageQueueOperation.m +3 -3
- package/ios/components/images/MLRNImages.h +0 -3
- package/ios/components/images/MLRNImages.m +6 -6
- package/ios/components/images/MLRNImagesComponentView.mm +0 -3
- package/ios/components/images/MLRNImagesModule.h +6 -0
- package/ios/components/images/MLRNImagesModule.mm +23 -0
- package/ios/components/layer/MLRNLayer.h +0 -3
- package/ios/components/layer/MLRNLayer.m +0 -1
- package/ios/components/layer/MLRNLayerComponentView.mm +12 -11
- package/ios/components/layer/style/MLRNStyle.h +1 -3
- package/ios/components/layer/style/MLRNStyle.m +68 -71
- package/ios/components/map-view/MLRNMapView.h +8 -1
- package/ios/components/map-view/MLRNMapView.m +106 -24
- package/ios/components/map-view/MLRNMapViewComponentView.mm +29 -5
- package/ios/components/sources/geojson-source/MLRNGeoJSONSource.h +0 -3
- package/ios/components/sources/image-source/MLRNImageSourceComponentView.mm +1 -1
- package/ios/components/sources/tile-sources/raster-source/MLRNRasterSourceComponentView.mm +2 -3
- package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceComponentView.mm +2 -3
- package/ios/modules/logging/MLRNLogging.h +4 -0
- package/ios/modules/logging/MLRNLogging.m +8 -0
- package/ios/modules/network/MLRNNetworkModule.mm +0 -10
- package/ios/modules/offline/MLRNOfflineModule.h +1 -2
- package/ios/modules/offline/MLRNOfflineModule.mm +9 -9
- package/ios/modules/transform-request/MLRNTransformRequest.h +38 -0
- package/ios/modules/transform-request/MLRNTransformRequest.m +413 -0
- package/ios/modules/transform-request/MLRNTransformRequestModule.h +9 -0
- package/ios/modules/transform-request/MLRNTransformRequestModule.mm +72 -0
- package/ios/utils/MLRNUtils.h +0 -14
- package/ios/utils/MLRNUtils.m +0 -71
- 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 +17 -3
- package/lib/commonjs/components/annotations/marker/Marker.js.map +1 -1
- package/lib/commonjs/components/annotations/marker/MarkerViewNativeComponent.ts +10 -0
- package/lib/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +3 -2
- package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js +20 -17
- package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
- package/lib/commonjs/components/camera/Camera.js +52 -3
- package/lib/commonjs/components/camera/Camera.js.map +1 -1
- package/lib/commonjs/components/images/Images.js +12 -2
- package/lib/commonjs/components/images/Images.js.map +1 -1
- package/lib/commonjs/components/images/NativeImagesModule.js +10 -0
- package/lib/commonjs/components/images/NativeImagesModule.js.map +1 -0
- package/lib/commonjs/components/layer/Layer.js +18 -8
- package/lib/commonjs/components/layer/Layer.js.map +1 -1
- package/lib/commonjs/components/map/AndroidTextureMapViewNativeComponent.ts +7 -2
- package/lib/commonjs/components/map/Map.js +29 -4
- package/lib/commonjs/components/map/Map.js.map +1 -1
- package/lib/commonjs/components/map/MapViewNativeComponent.ts +6 -1
- package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js +6 -5
- 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 +8 -5
- 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/index.js +7 -0
- package/lib/commonjs/index.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/NativeNetworkModule.js.map +1 -1
- package/lib/commonjs/modules/network/NetworkManager.js +6 -44
- package/lib/commonjs/modules/network/NetworkManager.js.map +1 -1
- package/lib/commonjs/modules/offline/OfflineManager.js +109 -62
- package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -1
- package/lib/commonjs/modules/static-map/StaticMapManager.js +13 -5
- package/lib/commonjs/modules/static-map/StaticMapManager.js.map +1 -1
- package/lib/commonjs/modules/transform-request/NativeTransformRequestModule.js +9 -0
- package/lib/commonjs/modules/transform-request/NativeTransformRequestModule.js.map +1 -0
- package/lib/commonjs/modules/transform-request/TransformRequestManager.js +233 -0
- package/lib/commonjs/modules/transform-request/TransformRequestManager.js.map +1 -0
- package/lib/commonjs/plugin/ios.js +28 -15
- 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/types/PressableSourceProps.js.map +1 -0
- 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/commonjs/utils/getStylePropertyType.js +1 -1
- 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 +17 -3
- package/lib/module/components/annotations/marker/Marker.js.map +1 -1
- package/lib/module/components/annotations/marker/MarkerViewNativeComponent.ts +10 -0
- package/lib/module/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +3 -2
- package/lib/module/components/annotations/view-annotation/ViewAnnotation.js +20 -17
- package/lib/module/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
- package/lib/module/components/camera/Camera.js +53 -4
- package/lib/module/components/camera/Camera.js.map +1 -1
- package/lib/module/components/images/Images.js +12 -2
- package/lib/module/components/images/Images.js.map +1 -1
- package/lib/module/components/images/NativeImagesModule.js +7 -0
- package/lib/module/components/images/NativeImagesModule.js.map +1 -0
- package/lib/module/components/layer/Layer.js +18 -8
- package/lib/module/components/layer/Layer.js.map +1 -1
- package/lib/module/components/map/AndroidTextureMapViewNativeComponent.ts +7 -2
- package/lib/module/components/map/Map.js +30 -5
- package/lib/module/components/map/Map.js.map +1 -1
- package/lib/module/components/map/MapViewNativeComponent.ts +6 -1
- package/lib/module/components/sources/geojson-source/GeoJSONSource.js +7 -6
- 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 +9 -6
- 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/index.js +1 -0
- package/lib/module/index.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/NativeNetworkModule.js.map +1 -1
- package/lib/module/modules/network/NetworkManager.js +6 -44
- package/lib/module/modules/network/NetworkManager.js.map +1 -1
- package/lib/module/modules/offline/OfflineManager.js +109 -62
- package/lib/module/modules/offline/OfflineManager.js.map +1 -1
- package/lib/module/modules/static-map/StaticMapManager.js +13 -5
- package/lib/module/modules/static-map/StaticMapManager.js.map +1 -1
- package/lib/module/modules/transform-request/NativeTransformRequestModule.js +5 -0
- package/lib/module/modules/transform-request/NativeTransformRequestModule.js.map +1 -0
- package/lib/module/modules/transform-request/TransformRequestManager.js +230 -0
- package/lib/module/modules/transform-request/TransformRequestManager.js.map +1 -0
- package/lib/module/plugin/ios.js +28 -15
- 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/types/PressableSourceProps.js.map +1 -0
- 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/module/utils/getStylePropertyType.js +1 -1
- package/lib/typescript/commonjs/components/annotations/LayerAnnotation.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/annotations/callout/Callout.d.ts +3 -2
- package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/annotations/callout/CalloutNativeComponent.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/components/annotations/marker/Marker.d.ts +29 -22
- package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/annotations/marker/MarkerViewNativeComponent.d.ts +10 -0
- package/lib/typescript/commonjs/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +3 -2
- package/lib/typescript/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/annotations/view-annotation/ViewAnnotation.d.ts +35 -29
- package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/camera/Camera.d.ts +85 -43
- package/lib/typescript/commonjs/components/camera/Camera.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/camera/CameraNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/camera/NativeCameraModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/images/Images.d.ts +20 -12
- package/lib/typescript/commonjs/components/images/Images.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/images/ImagesNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/images/NativeImagesModule.d.ts +6 -0
- package/lib/typescript/commonjs/components/images/NativeImagesModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/layer/Layer.d.ts +18 -8
- package/lib/typescript/commonjs/components/layer/Layer.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/layer/LayerNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/map/AndroidTextureMapViewNativeComponent.d.ts +5 -1
- package/lib/typescript/commonjs/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/map/Map.d.ts +151 -75
- package/lib/typescript/commonjs/components/map/Map.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/components/map/MapViewNativeComponent.d.ts +5 -1
- package/lib/typescript/commonjs/components/map/MapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/map/NativeMapViewModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/sources/geojson-source/GeoJSONSource.d.ts +47 -44
- package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/sources/image-source/ImageSource.d.ts +5 -3
- package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/sources/raster-source/RasterSource.d.ts +20 -15
- package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts +75 -0
- package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/components/user-location/NativeUserLocation.d.ts +9 -6
- package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocation.d.ts +4 -2
- package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationPuck.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/hooks → hooks}/useCurrentPosition.d.ts +2 -2
- package/lib/typescript/commonjs/hooks/useCurrentPosition.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useFrozenId.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useNativeBridge.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/index.d.ts → index.d.ts} +3 -2
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/location/NativeLocationModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/modules → modules}/log/LogManager.d.ts +5 -4
- package/lib/typescript/commonjs/modules/log/LogManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/log/NativeLogModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/modules → modules}/network/NativeNetworkModule.d.ts +0 -2
- package/lib/typescript/commonjs/modules/network/NativeNetworkModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts +24 -0
- package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/offline/NativeOfflineModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/modules → modules}/offline/OfflineManager.d.ts +110 -63
- package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/offline/OfflinePack.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/static-map/NativeStaticMapModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/modules → modules}/static-map/StaticMapManager.d.ts +15 -7
- package/lib/typescript/commonjs/modules/static-map/StaticMapManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/transform-request/NativeTransformRequestModule.d.ts +15 -0
- package/lib/typescript/commonjs/modules/transform-request/NativeTransformRequestModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts +213 -0
- package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/plugin/MapLibrePluginProps.d.ts +10 -15
- package/lib/typescript/commonjs/plugin/MapLibrePluginProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugin/android.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/plugin → plugin}/ios.d.ts +2 -2
- package/lib/typescript/commonjs/plugin/ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugin/withMapLibre.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/Anchor.d.ts +16 -0
- package/lib/typescript/commonjs/types/Anchor.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/BaseProps.d.ts +7 -0
- package/lib/typescript/commonjs/types/BaseProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/LngLat.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/types → types}/LngLatBounds.d.ts +2 -1
- package/lib/typescript/commonjs/types/LngLatBounds.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/types → types}/MapLibreRNStyles.d.ts +316 -132
- package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/PixelPoint.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/PixelPointBounds.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/types/PressEvent.d.ts +3 -0
- package/lib/typescript/commonjs/types/PressEvent.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/types → types}/PressEventWithFeatures.d.ts +3 -0
- package/lib/typescript/commonjs/types/PressEventWithFeatures.d.ts.map +1 -0
- package/lib/typescript/{module/src/types/sources → commonjs/types}/PressableSourceProps.d.ts +6 -4
- package/lib/typescript/commonjs/types/PressableSourceProps.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/types/ViewPadding.d.ts +3 -0
- package/lib/typescript/commonjs/types/ViewPadding.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/codegen/UnsafeMixed.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/BridgeValue.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/StyleValue.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/commonjs/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/utils/animated/Animated.d.ts +1 -1
- package/lib/typescript/commonjs/utils/animated/Animated.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedCoordinatesArray.d.ts +6 -6
- package/lib/typescript/commonjs/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedGeoJSON.d.ts +2 -1
- package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedPoint.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
- package/lib/typescript/commonjs/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/utils/convertStyleSpec.d.ts +4 -4
- package/lib/typescript/commonjs/utils/convertStyleSpec.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/findNodeHandle.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/getNativeFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/getStylePropertyType.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/index.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/LayerAnnotation.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/annotations/callout/Callout.d.ts +3 -2
- package/lib/typescript/module/components/annotations/callout/Callout.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/callout/CalloutNativeComponent.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/components/annotations/marker/Marker.d.ts +29 -22
- package/lib/typescript/module/components/annotations/marker/Marker.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/annotations/marker/MarkerViewNativeComponent.d.ts +10 -0
- package/lib/typescript/module/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +3 -2
- package/lib/typescript/module/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/annotations/view-annotation/ViewAnnotation.d.ts +35 -29
- package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/camera/Camera.d.ts +85 -43
- package/lib/typescript/module/components/camera/Camera.d.ts.map +1 -0
- package/lib/typescript/module/components/camera/CameraNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/camera/NativeCameraModule.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/images/Images.d.ts +20 -12
- package/lib/typescript/module/components/images/Images.d.ts.map +1 -0
- package/lib/typescript/module/components/images/ImagesNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/images/NativeImagesModule.d.ts +6 -0
- package/lib/typescript/module/components/images/NativeImagesModule.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/layer/Layer.d.ts +18 -8
- package/lib/typescript/module/components/layer/Layer.d.ts.map +1 -0
- package/lib/typescript/module/components/layer/LayerNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/map/AndroidTextureMapViewNativeComponent.d.ts +5 -1
- package/lib/typescript/module/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/map/Map.d.ts +151 -75
- package/lib/typescript/module/components/map/Map.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/components/map/MapViewNativeComponent.d.ts +5 -1
- package/lib/typescript/module/components/map/MapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/map/NativeMapViewModule.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/sources/geojson-source/GeoJSONSource.d.ts +47 -44
- package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/sources/image-source/ImageSource.d.ts +5 -3
- package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/sources/raster-source/RasterSource.d.ts +20 -15
- package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts +75 -0
- package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/components/user-location/NativeUserLocation.d.ts +9 -6
- package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/user-location/UserLocation.d.ts +4 -2
- package/lib/typescript/module/components/user-location/UserLocation.d.ts.map +1 -0
- package/lib/typescript/module/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/user-location/UserLocationPuck.d.ts.map +1 -0
- package/lib/typescript/module/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
- package/lib/typescript/module/{src/hooks → hooks}/useCurrentPosition.d.ts +2 -2
- package/lib/typescript/module/hooks/useCurrentPosition.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useFrozenId.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useNativeBridge.d.ts.map +1 -0
- package/lib/typescript/module/{src/index.d.ts → index.d.ts} +3 -2
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/location/NativeLocationModule.d.ts.map +1 -0
- package/lib/typescript/module/{src/modules → modules}/log/LogManager.d.ts +5 -4
- package/lib/typescript/module/modules/log/LogManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/log/NativeLogModule.d.ts.map +1 -0
- package/lib/typescript/module/{src/modules → modules}/network/NativeNetworkModule.d.ts +0 -2
- package/lib/typescript/module/modules/network/NativeNetworkModule.d.ts.map +1 -0
- package/lib/typescript/module/modules/network/NetworkManager.d.ts +24 -0
- package/lib/typescript/module/modules/network/NetworkManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/offline/NativeOfflineModule.d.ts.map +1 -0
- package/lib/typescript/module/{src/modules → modules}/offline/OfflineManager.d.ts +110 -63
- package/lib/typescript/module/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/offline/OfflinePack.d.ts.map +1 -0
- package/lib/typescript/module/modules/static-map/NativeStaticMapModule.d.ts.map +1 -0
- package/lib/typescript/module/{src/modules → modules}/static-map/StaticMapManager.d.ts +15 -7
- package/lib/typescript/module/modules/static-map/StaticMapManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/transform-request/NativeTransformRequestModule.d.ts +15 -0
- package/lib/typescript/module/modules/transform-request/NativeTransformRequestModule.d.ts.map +1 -0
- package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts +213 -0
- package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/plugin/MapLibrePluginProps.d.ts +10 -15
- package/lib/typescript/module/plugin/MapLibrePluginProps.d.ts.map +1 -0
- package/lib/typescript/module/plugin/android.d.ts.map +1 -0
- package/lib/typescript/module/{src/plugin → plugin}/ios.d.ts +2 -2
- package/lib/typescript/module/plugin/ios.d.ts.map +1 -0
- package/lib/typescript/module/plugin/withMapLibre.d.ts.map +1 -0
- package/lib/typescript/module/types/Anchor.d.ts +16 -0
- package/lib/typescript/module/types/Anchor.d.ts.map +1 -0
- package/lib/typescript/module/types/BaseProps.d.ts +7 -0
- package/lib/typescript/module/types/BaseProps.d.ts.map +1 -0
- package/lib/typescript/module/types/LngLat.d.ts.map +1 -0
- package/lib/typescript/module/{src/types → types}/LngLatBounds.d.ts +2 -1
- package/lib/typescript/module/types/LngLatBounds.d.ts.map +1 -0
- package/lib/typescript/module/{src/types → types}/MapLibreRNStyles.d.ts +316 -132
- package/lib/typescript/module/types/MapLibreRNStyles.d.ts.map +1 -0
- package/lib/typescript/module/types/PixelPoint.d.ts.map +1 -0
- package/lib/typescript/module/types/PixelPointBounds.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/types/PressEvent.d.ts +3 -0
- package/lib/typescript/module/types/PressEvent.d.ts.map +1 -0
- package/lib/typescript/module/{src/types → types}/PressEventWithFeatures.d.ts +3 -0
- package/lib/typescript/module/types/PressEventWithFeatures.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src/types/sources → module/types}/PressableSourceProps.d.ts +6 -4
- package/lib/typescript/module/types/PressableSourceProps.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/types/ViewPadding.d.ts +3 -0
- package/lib/typescript/module/types/ViewPadding.d.ts.map +1 -0
- package/lib/typescript/module/types/codegen/UnsafeMixed.d.ts.map +1 -0
- package/lib/typescript/module/utils/BridgeValue.d.ts.map +1 -0
- package/lib/typescript/module/utils/StyleValue.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/module/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/utils/animated/Animated.d.ts +1 -1
- package/lib/typescript/module/utils/animated/Animated.d.ts.map +1 -0
- package/lib/typescript/module/{src/utils → utils}/animated/AnimatedCoordinatesArray.d.ts +6 -6
- package/lib/typescript/module/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
- package/lib/typescript/module/{src/utils → utils}/animated/AnimatedGeoJSON.d.ts +2 -1
- package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AnimatedPoint.d.ts.map +1 -0
- package/lib/typescript/module/{src/utils → utils}/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
- package/lib/typescript/module/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/utils/convertStyleSpec.d.ts +4 -4
- package/lib/typescript/module/utils/convertStyleSpec.d.ts.map +1 -0
- package/lib/typescript/module/utils/findNodeHandle.d.ts.map +1 -0
- package/lib/typescript/module/utils/getNativeFilter.d.ts.map +1 -0
- package/lib/typescript/module/utils/getStylePropertyType.d.ts.map +1 -0
- package/lib/typescript/module/utils/index.d.ts.map +1 -0
- package/package.json +19 -40
- package/src/components/annotations/callout/Callout.tsx +3 -2
- package/src/components/annotations/marker/Marker.tsx +47 -30
- package/src/components/annotations/marker/MarkerViewNativeComponent.ts +10 -0
- package/src/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +3 -2
- package/src/components/annotations/view-annotation/ViewAnnotation.tsx +53 -47
- package/src/components/camera/Camera.tsx +148 -110
- package/src/components/images/Images.tsx +20 -12
- package/src/components/images/NativeImagesModule.ts +11 -0
- package/src/components/layer/Layer.tsx +18 -8
- package/src/components/map/AndroidTextureMapViewNativeComponent.ts +7 -2
- package/src/components/map/Map.tsx +296 -229
- package/src/components/map/MapViewNativeComponent.ts +6 -1
- package/src/components/sources/geojson-source/GeoJSONSource.tsx +105 -103
- 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 +66 -58
- 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/index.ts +12 -3
- package/src/modules/log/LogManager.ts +5 -4
- package/src/modules/network/NativeNetworkModule.ts +0 -4
- package/src/modules/network/NetworkManager.ts +6 -52
- package/src/modules/offline/OfflineManager.ts +109 -62
- package/src/modules/static-map/StaticMapManager.ts +15 -7
- package/src/modules/transform-request/NativeTransformRequestModule.ts +41 -0
- package/src/modules/transform-request/TransformRequestManager.ts +304 -0
- package/src/plugin/MapLibrePluginProps.ts +10 -15
- package/src/plugin/ios.ts +43 -21
- package/src/types/Anchor.ts +5 -6
- package/src/types/BaseProps.ts +3 -0
- package/src/types/LngLatBounds.ts +2 -1
- package/src/types/MapLibreRNStyles.ts +326 -192
- package/src/types/PressEvent.ts +3 -0
- package/src/types/PressEventWithFeatures.ts +3 -0
- package/src/types/{sources/PressableSourceProps.ts → PressableSourceProps.ts} +6 -4
- package/src/types/ViewPadding.ts +3 -0
- 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
- package/src/utils/getStylePropertyType.ts +1 -1
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyle.java +0 -76
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFactory.java +0 -2285
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFunctionParser.java +0 -94
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleValue.java +0 -207
- package/android/src/main/java/org/maplibre/reactnative/events/AndroidCallbackEvent.java +0 -34
- package/android/src/main/java/org/maplibre/reactnative/http/RequestHeadersInterceptor.kt +0 -65
- package/android/src/main/res/layout/annotation.xml +0 -17
- package/ios/modules/network/MLRNNetworkHTTPHeaders.h +0 -14
- package/ios/modules/network/MLRNNetworkHTTPHeaders.m +0 -97
- package/lib/commonjs/types/sources/PressableSourceProps.js.map +0 -1
- package/lib/module/types/sources/PressableSourceProps.js.map +0 -1
- package/lib/typescript/commonjs/src/components/annotations/LayerAnnotation.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/annotations/callout/Callout.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/annotations/callout/CalloutNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/annotations/marker/Marker.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/annotations/view-annotation/ViewAnnotation.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/camera/Camera.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/camera/CameraNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/camera/NativeCameraModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/images/Images.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/images/ImagesNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/layer/Layer.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/layer/LayerNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/map/Map.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/map/MapViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/map/NativeMapViewModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/geojson-source/GeoJSONSource.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/image-source/ImageSource.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/raster-source/RasterSource.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/vector-source/VectorSource.d.ts +0 -66
- package/lib/typescript/commonjs/src/components/sources/vector-source/VectorSource.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/user-location/NativeUserLocation.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/user-location/UserLocation.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/user-location/UserLocationNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/user-location/UserLocationPuck.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/user-location/UserLocationPuckHeading.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/hooks/useCurrentPosition.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/hooks/useFrozenId.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/location/NativeLocationModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/log/LogManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/log/NativeLogModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/network/NativeNetworkModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/network/NetworkManager.d.ts +0 -56
- package/lib/typescript/commonjs/src/modules/network/NetworkManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/offline/NativeOfflineModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/offline/OfflineManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/static-map/NativeStaticMapModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/static-map/StaticMapManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/plugin/android.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/plugin/ios.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/Anchor.d.ts +0 -17
- package/lib/typescript/commonjs/src/types/Anchor.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/BaseProps.d.ts +0 -4
- package/lib/typescript/commonjs/src/types/BaseProps.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/LngLat.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/LngLatBounds.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/PixelPoint.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/PixelPointBounds.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/PressEvent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/PressEventWithFeatures.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/ViewPadding.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/codegen/UnsafeMixed.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/sources/PressableSourceProps.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedGeoJSON.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/convertStyleSpec.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/findNodeHandle.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/getNativeFilter.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +0 -1
- package/lib/typescript/module/src/components/annotations/LayerAnnotation.d.ts.map +0 -1
- package/lib/typescript/module/src/components/annotations/callout/Callout.d.ts.map +0 -1
- package/lib/typescript/module/src/components/annotations/callout/CalloutNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/annotations/marker/Marker.d.ts.map +0 -1
- package/lib/typescript/module/src/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/annotations/view-annotation/ViewAnnotation.d.ts.map +0 -1
- package/lib/typescript/module/src/components/camera/Camera.d.ts.map +0 -1
- package/lib/typescript/module/src/components/camera/CameraNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/camera/NativeCameraModule.d.ts.map +0 -1
- package/lib/typescript/module/src/components/images/Images.d.ts.map +0 -1
- package/lib/typescript/module/src/components/images/ImagesNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/layer/Layer.d.ts.map +0 -1
- package/lib/typescript/module/src/components/layer/LayerNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/map/Map.d.ts.map +0 -1
- package/lib/typescript/module/src/components/map/MapViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/map/NativeMapViewModule.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/geojson-source/GeoJSONSource.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/image-source/ImageSource.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/raster-source/RasterSource.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/vector-source/VectorSource.d.ts +0 -66
- package/lib/typescript/module/src/components/sources/vector-source/VectorSource.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/user-location/NativeUserLocation.d.ts.map +0 -1
- package/lib/typescript/module/src/components/user-location/UserLocation.d.ts.map +0 -1
- package/lib/typescript/module/src/components/user-location/UserLocationNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/user-location/UserLocationPuck.d.ts.map +0 -1
- package/lib/typescript/module/src/components/user-location/UserLocationPuckHeading.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/useCurrentPosition.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/useFrozenId.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +0 -1
- package/lib/typescript/module/src/index.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/location/LocationManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/location/NativeLocationModule.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/log/LogManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/log/NativeLogModule.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/network/NativeNetworkModule.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/network/NetworkManager.d.ts +0 -56
- package/lib/typescript/module/src/modules/network/NetworkManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/offline/NativeOfflineModule.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/offline/OfflineManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/static-map/NativeStaticMapModule.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/static-map/StaticMapManager.d.ts.map +0 -1
- package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts.map +0 -1
- package/lib/typescript/module/src/plugin/android.d.ts.map +0 -1
- package/lib/typescript/module/src/plugin/ios.d.ts.map +0 -1
- package/lib/typescript/module/src/plugin/withMapLibre.d.ts.map +0 -1
- package/lib/typescript/module/src/types/Anchor.d.ts +0 -17
- package/lib/typescript/module/src/types/Anchor.d.ts.map +0 -1
- package/lib/typescript/module/src/types/BaseProps.d.ts +0 -4
- package/lib/typescript/module/src/types/BaseProps.d.ts.map +0 -1
- package/lib/typescript/module/src/types/LngLat.d.ts.map +0 -1
- package/lib/typescript/module/src/types/LngLatBounds.d.ts.map +0 -1
- package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts.map +0 -1
- package/lib/typescript/module/src/types/PixelPoint.d.ts.map +0 -1
- package/lib/typescript/module/src/types/PixelPointBounds.d.ts.map +0 -1
- package/lib/typescript/module/src/types/PressEvent.d.ts.map +0 -1
- package/lib/typescript/module/src/types/PressEventWithFeatures.d.ts.map +0 -1
- package/lib/typescript/module/src/types/ViewPadding.d.ts.map +0 -1
- package/lib/typescript/module/src/types/codegen/UnsafeMixed.d.ts.map +0 -1
- package/lib/typescript/module/src/types/sources/PressableSourceProps.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/StyleValue.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/animated/AnimatedGeoJSON.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/convertStyleSpec.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/findNodeHandle.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/getNativeFilter.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/getStylePropertyType.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/index.d.ts.map +0 -1
- /package/android/src/main/res/drawable-xxhdpi/{red_marker.png → default_marker.png} +0 -0
- /package/ios/{components/images → utils}/MLRNImageUtils.h +0 -0
- /package/ios/{components/images → utils}/MLRNImageUtils.m +0 -0
- /package/lib/commonjs/types/{sources/PressableSourceProps.js → PressableSourceProps.js} +0 -0
- /package/lib/module/types/{sources/PressableSourceProps.js → PressableSourceProps.js} +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/annotations/LayerAnnotation.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/annotations/callout/CalloutNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/camera/CameraNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/camera/NativeCameraModule.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/images/ImagesNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/layer/LayerNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/map/NativeMapViewModule.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/sources/geojson-source/NativeGeoJSONSourceModule.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/sources/image-source/ImageSourceNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/sources/raster-source/RasterSourceNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/sources/vector-source/NativeVectorSourceModule.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/sources/vector-source/VectorSourceNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocationNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocationPuck.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocationPuckHeading.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/hooks → hooks}/useFrozenId.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/hooks → hooks}/useNativeBridge.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/modules → modules}/location/LocationManager.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/modules → modules}/location/NativeLocationModule.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/modules → modules}/log/NativeLogModule.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/modules → modules}/offline/NativeOfflineModule.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/modules → modules}/offline/OfflinePack.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/modules → modules}/static-map/NativeStaticMapModule.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/plugin → plugin}/android.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/plugin → plugin}/withMapLibre.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/types → types}/LngLat.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/types → types}/PixelPoint.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/types → types}/PixelPointBounds.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/types → types}/codegen/UnsafeMixed.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/BridgeValue.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/StyleValue.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedExtractCoordinateFromArray.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedPoint.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/findNodeHandle.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/getNativeFilter.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/getStylePropertyType.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/index.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/annotations/LayerAnnotation.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/annotations/callout/CalloutNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/camera/CameraNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/camera/NativeCameraModule.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/images/ImagesNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/layer/LayerNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/map/NativeMapViewModule.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/sources/geojson-source/NativeGeoJSONSourceModule.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/sources/image-source/ImageSourceNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/sources/raster-source/RasterSourceNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/sources/vector-source/NativeVectorSourceModule.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/sources/vector-source/VectorSourceNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/user-location/UserLocationNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/user-location/UserLocationPuck.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/user-location/UserLocationPuckHeading.d.ts +0 -0
- /package/lib/typescript/module/{src/hooks → hooks}/useFrozenId.d.ts +0 -0
- /package/lib/typescript/module/{src/hooks → hooks}/useNativeBridge.d.ts +0 -0
- /package/lib/typescript/module/{src/modules → modules}/location/LocationManager.d.ts +0 -0
- /package/lib/typescript/module/{src/modules → modules}/location/NativeLocationModule.d.ts +0 -0
- /package/lib/typescript/module/{src/modules → modules}/log/NativeLogModule.d.ts +0 -0
- /package/lib/typescript/module/{src/modules → modules}/offline/NativeOfflineModule.d.ts +0 -0
- /package/lib/typescript/module/{src/modules → modules}/offline/OfflinePack.d.ts +0 -0
- /package/lib/typescript/module/{src/modules → modules}/static-map/NativeStaticMapModule.d.ts +0 -0
- /package/lib/typescript/module/{src/plugin → plugin}/android.d.ts +0 -0
- /package/lib/typescript/module/{src/plugin → plugin}/withMapLibre.d.ts +0 -0
- /package/lib/typescript/module/{src/types → types}/LngLat.d.ts +0 -0
- /package/lib/typescript/module/{src/types → types}/PixelPoint.d.ts +0 -0
- /package/lib/typescript/module/{src/types → types}/PixelPointBounds.d.ts +0 -0
- /package/lib/typescript/module/{src/types → types}/codegen/UnsafeMixed.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/BridgeValue.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/StyleValue.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/animated/AnimatedExtractCoordinateFromArray.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/animated/AnimatedPoint.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/findNodeHandle.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/getNativeFilter.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/getStylePropertyType.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/index.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// DO NOT MODIFY
|
|
2
|
-
// This file is auto-generated from scripts/templates/
|
|
2
|
+
// This file is auto-generated from scripts/src/templates/renderMapLibreRNStyles.ts
|
|
3
3
|
|
|
4
4
|
import { type ImageSourcePropType } from "react-native";
|
|
5
5
|
|
|
@@ -115,6 +115,9 @@ export type ExpressionField =
|
|
|
115
115
|
| ExpressionField[]
|
|
116
116
|
| { [key: string]: ExpressionField };
|
|
117
117
|
|
|
118
|
+
/**
|
|
119
|
+
* @deprecated
|
|
120
|
+
*/
|
|
118
121
|
export type Expression = [ExpressionName, ...ExpressionField[]];
|
|
119
122
|
|
|
120
123
|
type ExpressionParameters =
|
|
@@ -134,9 +137,13 @@ export type Value<T, AllowedParameters extends ExpressionParameters[] = []> =
|
|
|
134
137
|
| T
|
|
135
138
|
| Expression;
|
|
136
139
|
|
|
140
|
+
/**
|
|
141
|
+
* @deprecated
|
|
142
|
+
*/
|
|
137
143
|
export interface FillLayerStyle {
|
|
138
144
|
/**
|
|
139
|
-
* Sorts features in ascending order based on this value. Features with a higher
|
|
145
|
+
* Sorts features in ascending order based on this value. Features with a higher
|
|
146
|
+
* sort key will appear above features with a lower sort key.
|
|
140
147
|
*/
|
|
141
148
|
fillSortKey?: Value<number, ["zoom", "feature"]>;
|
|
142
149
|
/**
|
|
@@ -148,43 +155,45 @@ export interface FillLayerStyle {
|
|
|
148
155
|
*/
|
|
149
156
|
fillAntialias?: Value<boolean, ["zoom"]>;
|
|
150
157
|
/**
|
|
151
|
-
* The opacity of the entire fill layer. In contrast to the `fillColor
|
|
158
|
+
* The opacity of the entire fill layer. In contrast to the `fillColor` , this
|
|
159
|
+
* value will also affect the 1px stroke around the fill, if the stroke is used.
|
|
152
160
|
*/
|
|
153
161
|
fillOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
154
|
-
|
|
155
162
|
/**
|
|
156
|
-
* The transition affecting any changes to this layer
|
|
163
|
+
* The transition affecting any changes to this layer's fillOpacity property.
|
|
157
164
|
*/
|
|
158
165
|
fillOpacityTransition?: Transition;
|
|
159
166
|
/**
|
|
160
|
-
* The color of the filled part of this layer. This color can be specified as
|
|
167
|
+
* The color of the filled part of this layer. This color can be specified as
|
|
168
|
+
* `rgba` with an alpha component and the color's opacity will not affect the
|
|
169
|
+
* opacity of the 1px stroke, if it is used.
|
|
161
170
|
*
|
|
162
171
|
* @disabledBy fillPattern
|
|
163
172
|
*/
|
|
164
173
|
fillColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
165
|
-
|
|
166
174
|
/**
|
|
167
|
-
* The transition affecting any changes to this layer
|
|
175
|
+
* The transition affecting any changes to this layer's fillColor property.
|
|
168
176
|
*/
|
|
169
177
|
fillColorTransition?: Transition;
|
|
170
178
|
/**
|
|
171
|
-
* The outline color of the fill. Matches the value of `fillColor` if
|
|
179
|
+
* The outline color of the fill. Matches the value of `fillColor` if
|
|
180
|
+
* unspecified.
|
|
172
181
|
*
|
|
173
182
|
* @disabledBy fillPattern
|
|
174
183
|
*/
|
|
175
184
|
fillOutlineColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
176
|
-
|
|
177
185
|
/**
|
|
178
|
-
* The transition affecting any changes to this layer
|
|
186
|
+
* The transition affecting any changes to this layer's fillOutlineColor
|
|
187
|
+
* property.
|
|
179
188
|
*/
|
|
180
189
|
fillOutlineColorTransition?: Transition;
|
|
181
190
|
/**
|
|
182
|
-
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
191
|
+
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
192
|
+
* up, respectively.
|
|
183
193
|
*/
|
|
184
194
|
fillTranslate?: Value<Translation, ["zoom"]>;
|
|
185
|
-
|
|
186
195
|
/**
|
|
187
|
-
* The transition affecting any changes to this layer
|
|
196
|
+
* The transition affecting any changes to this layer's fillTranslate property.
|
|
188
197
|
*/
|
|
189
198
|
fillTranslateTransition?: Transition;
|
|
190
199
|
/**
|
|
@@ -194,20 +203,26 @@ export interface FillLayerStyle {
|
|
|
194
203
|
*/
|
|
195
204
|
fillTranslateAnchor?: Value<"map" | "viewport", ["zoom"]>;
|
|
196
205
|
/**
|
|
197
|
-
* Name of image in sprite to use for drawing image fills. For seamless
|
|
206
|
+
* Name of image in sprite to use for drawing image fills. For seamless
|
|
207
|
+
* patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
|
|
208
|
+
* Note that zoomDependent expressions will be evaluated only at integer zoom
|
|
209
|
+
* levels.
|
|
198
210
|
*/
|
|
199
211
|
fillPattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
|
|
200
|
-
|
|
201
212
|
/**
|
|
202
|
-
* The transition affecting any changes to this layer
|
|
213
|
+
* The transition affecting any changes to this layer's fillPattern property.
|
|
203
214
|
*/
|
|
204
215
|
fillPatternTransition?: Transition;
|
|
205
216
|
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @deprecated
|
|
220
|
+
*/
|
|
206
221
|
export interface LineLayerStyle {
|
|
207
222
|
/**
|
|
208
223
|
* The display of line endings.
|
|
209
224
|
*/
|
|
210
|
-
lineCap?: Value<"butt" | "round" | "square", ["zoom"]>;
|
|
225
|
+
lineCap?: Value<"butt" | "round" | "square", ["zoom", "feature"]>;
|
|
211
226
|
/**
|
|
212
227
|
* The display of lines when joining.
|
|
213
228
|
*/
|
|
@@ -215,13 +230,14 @@ export interface LineLayerStyle {
|
|
|
215
230
|
/**
|
|
216
231
|
* Used to automatically convert miter joins to bevel joins for sharp angles.
|
|
217
232
|
*/
|
|
218
|
-
lineMiterLimit?: Value<number, ["zoom"]>;
|
|
233
|
+
lineMiterLimit?: Value<number, ["zoom", "feature"]>;
|
|
219
234
|
/**
|
|
220
235
|
* Used to automatically convert round joins to miter joins for shallow angles.
|
|
221
236
|
*/
|
|
222
|
-
lineRoundLimit?: Value<number, ["zoom"]>;
|
|
237
|
+
lineRoundLimit?: Value<number, ["zoom", "feature"]>;
|
|
223
238
|
/**
|
|
224
|
-
* Sorts features in ascending order based on this value. Features with a higher
|
|
239
|
+
* Sorts features in ascending order based on this value. Features with a higher
|
|
240
|
+
* sort key will appear above features with a lower sort key.
|
|
225
241
|
*/
|
|
226
242
|
lineSortKey?: Value<number, ["zoom", "feature"]>;
|
|
227
243
|
/**
|
|
@@ -232,9 +248,8 @@ export interface LineLayerStyle {
|
|
|
232
248
|
* The opacity at which the line will be drawn.
|
|
233
249
|
*/
|
|
234
250
|
lineOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
235
|
-
|
|
236
251
|
/**
|
|
237
|
-
* The transition affecting any changes to this layer
|
|
252
|
+
* The transition affecting any changes to this layer's lineOpacity property.
|
|
238
253
|
*/
|
|
239
254
|
lineOpacityTransition?: Transition;
|
|
240
255
|
/**
|
|
@@ -243,18 +258,17 @@ export interface LineLayerStyle {
|
|
|
243
258
|
* @disabledBy linePattern
|
|
244
259
|
*/
|
|
245
260
|
lineColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
246
|
-
|
|
247
261
|
/**
|
|
248
|
-
* The transition affecting any changes to this layer
|
|
262
|
+
* The transition affecting any changes to this layer's lineColor property.
|
|
249
263
|
*/
|
|
250
264
|
lineColorTransition?: Transition;
|
|
251
265
|
/**
|
|
252
|
-
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
266
|
+
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
267
|
+
* up, respectively.
|
|
253
268
|
*/
|
|
254
269
|
lineTranslate?: Value<Translation, ["zoom"]>;
|
|
255
|
-
|
|
256
270
|
/**
|
|
257
|
-
* The transition affecting any changes to this layer
|
|
271
|
+
* The transition affecting any changes to this layer's lineTranslate property.
|
|
258
272
|
*/
|
|
259
273
|
lineTranslateTransition?: Transition;
|
|
260
274
|
/**
|
|
@@ -267,65 +281,77 @@ export interface LineLayerStyle {
|
|
|
267
281
|
* Stroke thickness.
|
|
268
282
|
*/
|
|
269
283
|
lineWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
270
|
-
|
|
271
284
|
/**
|
|
272
|
-
* The transition affecting any changes to this layer
|
|
285
|
+
* The transition affecting any changes to this layer's lineWidth property.
|
|
273
286
|
*/
|
|
274
287
|
lineWidthTransition?: Transition;
|
|
275
288
|
/**
|
|
276
|
-
* Draws a line casing outside of a line's actual path. Value indicates the
|
|
289
|
+
* Draws a line casing outside of a line's actual path. Value indicates the
|
|
290
|
+
* width of the inner gap.
|
|
277
291
|
*/
|
|
278
292
|
lineGapWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
279
|
-
|
|
280
293
|
/**
|
|
281
|
-
* The transition affecting any changes to this layer
|
|
294
|
+
* The transition affecting any changes to this layer's lineGapWidth property.
|
|
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
|
-
|
|
289
304
|
/**
|
|
290
|
-
* The transition affecting any changes to this layer
|
|
305
|
+
* The transition affecting any changes to this layer's lineOffset property.
|
|
291
306
|
*/
|
|
292
307
|
lineOffsetTransition?: Transition;
|
|
293
308
|
/**
|
|
294
309
|
* Blur applied to the line, in pixels.
|
|
295
310
|
*/
|
|
296
311
|
lineBlur?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
297
|
-
|
|
298
312
|
/**
|
|
299
|
-
* The transition affecting any changes to this layer
|
|
313
|
+
* The transition affecting any changes to this layer's lineBlur property.
|
|
300
314
|
*/
|
|
301
315
|
lineBlurTransition?: Transition;
|
|
302
316
|
/**
|
|
303
|
-
* Specifies the lengths of the alternating dashes and gaps that form the dash
|
|
317
|
+
* Specifies the lengths of the alternating dashes and gaps that form the dash
|
|
318
|
+
* pattern. The lengths are later scaled by the line width. To convert a dash
|
|
319
|
+
* length to pixels, multiply the length by the current line width. GeoJSON
|
|
320
|
+
* sources with `lineMetrics: true` specified won't render dashed lines to the
|
|
321
|
+
* expected scale. ZoomDependent expressions will be evaluated only at integer
|
|
322
|
+
* zoom levels. The only way to create an array value is using
|
|
323
|
+
* `["literal", [...]]` ; arrays cannot be read from or derived from feature
|
|
324
|
+
* properties.
|
|
304
325
|
*
|
|
305
326
|
* @disabledBy linePattern
|
|
306
327
|
*/
|
|
307
328
|
lineDasharray?: Value<number[], ["zoom", "feature"]>;
|
|
308
|
-
|
|
309
329
|
/**
|
|
310
|
-
* The transition affecting any changes to this layer
|
|
330
|
+
* The transition affecting any changes to this layer's lineDasharray property.
|
|
311
331
|
*/
|
|
312
332
|
lineDasharrayTransition?: Transition;
|
|
313
333
|
/**
|
|
314
|
-
* Name of image in sprite to use for drawing image lines. For seamless
|
|
334
|
+
* Name of image in sprite to use for drawing image lines. For seamless
|
|
335
|
+
* patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that
|
|
336
|
+
* zoomDependent expressions will be evaluated only at integer zoom levels.
|
|
315
337
|
*/
|
|
316
338
|
linePattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
|
|
317
|
-
|
|
318
339
|
/**
|
|
319
|
-
* The transition affecting any changes to this layer
|
|
340
|
+
* The transition affecting any changes to this layer's linePattern property.
|
|
320
341
|
*/
|
|
321
342
|
linePatternTransition?: Transition;
|
|
322
343
|
/**
|
|
323
|
-
* Defines a gradient with which to color a line feature. Can only be used with
|
|
344
|
+
* Defines a gradient with which to color a line feature. Can only be used with
|
|
345
|
+
* GeoJSON sources that specify `"lineMetrics": true` .
|
|
324
346
|
*
|
|
325
347
|
* @disabledBy lineDasharray, linePattern
|
|
326
348
|
*/
|
|
327
349
|
lineGradient?: Value<string, ["line-progress"]>;
|
|
328
350
|
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* @deprecated
|
|
354
|
+
*/
|
|
329
355
|
export interface SymbolLayerStyle {
|
|
330
356
|
/**
|
|
331
357
|
* Label placement relative to its geometry.
|
|
@@ -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
|
*/
|
|
@@ -621,9 +698,8 @@ export interface SymbolLayerStyle {
|
|
|
621
698
|
* @requires iconImage
|
|
622
699
|
*/
|
|
623
700
|
iconOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
624
|
-
|
|
625
701
|
/**
|
|
626
|
-
* The transition affecting any changes to this layer
|
|
702
|
+
* The transition affecting any changes to this layer's iconOpacity property.
|
|
627
703
|
*/
|
|
628
704
|
iconOpacityTransition?: Transition;
|
|
629
705
|
/**
|
|
@@ -632,9 +708,8 @@ export interface SymbolLayerStyle {
|
|
|
632
708
|
* @requires iconImage
|
|
633
709
|
*/
|
|
634
710
|
iconColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
635
|
-
|
|
636
711
|
/**
|
|
637
|
-
* The transition affecting any changes to this layer
|
|
712
|
+
* The transition affecting any changes to this layer's iconColor property.
|
|
638
713
|
*/
|
|
639
714
|
iconColorTransition?: Transition;
|
|
640
715
|
/**
|
|
@@ -643,22 +718,22 @@ export interface SymbolLayerStyle {
|
|
|
643
718
|
* @requires iconImage
|
|
644
719
|
*/
|
|
645
720
|
iconHaloColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
646
|
-
|
|
647
721
|
/**
|
|
648
|
-
* The transition affecting any changes to this layer
|
|
722
|
+
* The transition affecting any changes to this layer's iconHaloColor property.
|
|
649
723
|
*/
|
|
650
724
|
iconHaloColorTransition?: Transition;
|
|
651
725
|
/**
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
The unit is in pixels only for SDF sprites that were created with a blur
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
726
|
+
* Distance of halo to the icon outline.
|
|
727
|
+
*
|
|
728
|
+
* The unit is in pixels only for SDF sprites that were created with a blur
|
|
729
|
+
* radius of 8, multiplied by the display density. I.e., the radius needs to be
|
|
730
|
+
* 16 for `@2x` sprites, etc.
|
|
731
|
+
*
|
|
732
|
+
* @requires iconImage
|
|
733
|
+
*/
|
|
658
734
|
iconHaloWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
659
|
-
|
|
660
735
|
/**
|
|
661
|
-
* The transition affecting any changes to this layer
|
|
736
|
+
* The transition affecting any changes to this layer's iconHaloWidth property.
|
|
662
737
|
*/
|
|
663
738
|
iconHaloWidthTransition?: Transition;
|
|
664
739
|
/**
|
|
@@ -667,20 +742,20 @@ The unit is in pixels only for SDF sprites that were created with a blur radius
|
|
|
667
742
|
* @requires iconImage
|
|
668
743
|
*/
|
|
669
744
|
iconHaloBlur?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
670
|
-
|
|
671
745
|
/**
|
|
672
|
-
* The transition affecting any changes to this layer
|
|
746
|
+
* The transition affecting any changes to this layer's iconHaloBlur property.
|
|
673
747
|
*/
|
|
674
748
|
iconHaloBlurTransition?: Transition;
|
|
675
749
|
/**
|
|
676
|
-
* Distance that the icon's anchor is moved from its original placement.
|
|
750
|
+
* Distance that the icon's anchor is moved from its original placement.
|
|
751
|
+
* Positive values indicate right and down, while negative values indicate left
|
|
752
|
+
* and up.
|
|
677
753
|
*
|
|
678
754
|
* @requires iconImage
|
|
679
755
|
*/
|
|
680
756
|
iconTranslate?: Value<Translation, ["zoom"]>;
|
|
681
|
-
|
|
682
757
|
/**
|
|
683
|
-
* The transition affecting any changes to this layer
|
|
758
|
+
* The transition affecting any changes to this layer's iconTranslate property.
|
|
684
759
|
*/
|
|
685
760
|
iconTranslateTransition?: Transition;
|
|
686
761
|
/**
|
|
@@ -695,9 +770,8 @@ The unit is in pixels only for SDF sprites that were created with a blur radius
|
|
|
695
770
|
* @requires textField
|
|
696
771
|
*/
|
|
697
772
|
textOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
698
|
-
|
|
699
773
|
/**
|
|
700
|
-
* The transition affecting any changes to this layer
|
|
774
|
+
* The transition affecting any changes to this layer's textOpacity property.
|
|
701
775
|
*/
|
|
702
776
|
textOpacityTransition?: Transition;
|
|
703
777
|
/**
|
|
@@ -706,9 +780,8 @@ The unit is in pixels only for SDF sprites that were created with a blur radius
|
|
|
706
780
|
* @requires textField
|
|
707
781
|
*/
|
|
708
782
|
textColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
709
|
-
|
|
710
783
|
/**
|
|
711
|
-
* The transition affecting any changes to this layer
|
|
784
|
+
* The transition affecting any changes to this layer's textColor property.
|
|
712
785
|
*/
|
|
713
786
|
textColorTransition?: Transition;
|
|
714
787
|
/**
|
|
@@ -717,20 +790,19 @@ The unit is in pixels only for SDF sprites that were created with a blur radius
|
|
|
717
790
|
* @requires textField
|
|
718
791
|
*/
|
|
719
792
|
textHaloColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
720
|
-
|
|
721
793
|
/**
|
|
722
|
-
* The transition affecting any changes to this layer
|
|
794
|
+
* The transition affecting any changes to this layer's textHaloColor property.
|
|
723
795
|
*/
|
|
724
796
|
textHaloColorTransition?: Transition;
|
|
725
797
|
/**
|
|
726
|
-
* Distance of halo to the font outline. Max text halo width is 1/4 of the
|
|
798
|
+
* Distance of halo to the font outline. Max text halo width is 1/4 of the
|
|
799
|
+
* fontSize.
|
|
727
800
|
*
|
|
728
801
|
* @requires textField
|
|
729
802
|
*/
|
|
730
803
|
textHaloWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
731
|
-
|
|
732
804
|
/**
|
|
733
|
-
* The transition affecting any changes to this layer
|
|
805
|
+
* The transition affecting any changes to this layer's textHaloWidth property.
|
|
734
806
|
*/
|
|
735
807
|
textHaloWidthTransition?: Transition;
|
|
736
808
|
/**
|
|
@@ -739,20 +811,20 @@ The unit is in pixels only for SDF sprites that were created with a blur radius
|
|
|
739
811
|
* @requires textField
|
|
740
812
|
*/
|
|
741
813
|
textHaloBlur?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
742
|
-
|
|
743
814
|
/**
|
|
744
|
-
* The transition affecting any changes to this layer
|
|
815
|
+
* The transition affecting any changes to this layer's textHaloBlur property.
|
|
745
816
|
*/
|
|
746
817
|
textHaloBlurTransition?: Transition;
|
|
747
818
|
/**
|
|
748
|
-
* Distance that the text's anchor is moved from its original placement.
|
|
819
|
+
* Distance that the text's anchor is moved from its original placement.
|
|
820
|
+
* Positive values indicate right and down, while negative values indicate left
|
|
821
|
+
* and up.
|
|
749
822
|
*
|
|
750
823
|
* @requires textField
|
|
751
824
|
*/
|
|
752
825
|
textTranslate?: Value<Translation, ["zoom"]>;
|
|
753
|
-
|
|
754
826
|
/**
|
|
755
|
-
* The transition affecting any changes to this layer
|
|
827
|
+
* The transition affecting any changes to this layer's textTranslate property.
|
|
756
828
|
*/
|
|
757
829
|
textTranslateTransition?: Transition;
|
|
758
830
|
/**
|
|
@@ -762,9 +834,14 @@ The unit is in pixels only for SDF sprites that were created with a blur radius
|
|
|
762
834
|
*/
|
|
763
835
|
textTranslateAnchor?: Value<"map" | "viewport", ["zoom"]>;
|
|
764
836
|
}
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* @deprecated
|
|
840
|
+
*/
|
|
765
841
|
export interface CircleLayerStyle {
|
|
766
842
|
/**
|
|
767
|
-
* Sorts features in ascending order based on this value. Features with a higher
|
|
843
|
+
* Sorts features in ascending order based on this value. Features with a higher
|
|
844
|
+
* sort key will appear above features with a lower sort key.
|
|
768
845
|
*/
|
|
769
846
|
circleSortKey?: Value<number, ["zoom", "feature"]>;
|
|
770
847
|
/**
|
|
@@ -775,45 +852,43 @@ export interface CircleLayerStyle {
|
|
|
775
852
|
* Circle radius.
|
|
776
853
|
*/
|
|
777
854
|
circleRadius?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
778
|
-
|
|
779
855
|
/**
|
|
780
|
-
* The transition affecting any changes to this layer
|
|
856
|
+
* The transition affecting any changes to this layer's circleRadius property.
|
|
781
857
|
*/
|
|
782
858
|
circleRadiusTransition?: Transition;
|
|
783
859
|
/**
|
|
784
860
|
* The fill color of the circle.
|
|
785
861
|
*/
|
|
786
862
|
circleColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
787
|
-
|
|
788
863
|
/**
|
|
789
|
-
* The transition affecting any changes to this layer
|
|
864
|
+
* The transition affecting any changes to this layer's circleColor property.
|
|
790
865
|
*/
|
|
791
866
|
circleColorTransition?: Transition;
|
|
792
867
|
/**
|
|
793
|
-
* Amount to blur the circle. 1 blurs the circle such that only the centerpoint
|
|
868
|
+
* Amount to blur the circle. 1 blurs the circle such that only the centerpoint
|
|
869
|
+
* is full opacity.
|
|
794
870
|
*/
|
|
795
871
|
circleBlur?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
796
|
-
|
|
797
872
|
/**
|
|
798
|
-
* The transition affecting any changes to this layer
|
|
873
|
+
* The transition affecting any changes to this layer's circleBlur property.
|
|
799
874
|
*/
|
|
800
875
|
circleBlurTransition?: Transition;
|
|
801
876
|
/**
|
|
802
877
|
* The opacity at which the circle will be drawn.
|
|
803
878
|
*/
|
|
804
879
|
circleOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
805
|
-
|
|
806
880
|
/**
|
|
807
|
-
* The transition affecting any changes to this layer
|
|
881
|
+
* The transition affecting any changes to this layer's circleOpacity property.
|
|
808
882
|
*/
|
|
809
883
|
circleOpacityTransition?: Transition;
|
|
810
884
|
/**
|
|
811
|
-
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
885
|
+
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
886
|
+
* up, respectively.
|
|
812
887
|
*/
|
|
813
888
|
circleTranslate?: Value<Translation, ["zoom"]>;
|
|
814
|
-
|
|
815
889
|
/**
|
|
816
|
-
* The transition affecting any changes to this layer
|
|
890
|
+
* The transition affecting any changes to this layer's circleTranslate
|
|
891
|
+
* property.
|
|
817
892
|
*/
|
|
818
893
|
circleTranslateTransition?: Transition;
|
|
819
894
|
/**
|
|
@@ -831,106 +906,124 @@ export interface CircleLayerStyle {
|
|
|
831
906
|
*/
|
|
832
907
|
circlePitchAlignment?: Value<"map" | "viewport", ["zoom"]>;
|
|
833
908
|
/**
|
|
834
|
-
* The width of the circle's stroke. Strokes are placed outside of the
|
|
909
|
+
* The width of the circle's stroke. Strokes are placed outside of the
|
|
910
|
+
* `circleRadius` .
|
|
835
911
|
*/
|
|
836
912
|
circleStrokeWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
837
|
-
|
|
838
913
|
/**
|
|
839
|
-
* The transition affecting any changes to this layer
|
|
914
|
+
* The transition affecting any changes to this layer's circleStrokeWidth
|
|
915
|
+
* property.
|
|
840
916
|
*/
|
|
841
917
|
circleStrokeWidthTransition?: Transition;
|
|
842
918
|
/**
|
|
843
919
|
* The stroke color of the circle.
|
|
844
920
|
*/
|
|
845
921
|
circleStrokeColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
846
|
-
|
|
847
922
|
/**
|
|
848
|
-
* The transition affecting any changes to this layer
|
|
923
|
+
* The transition affecting any changes to this layer's circleStrokeColor
|
|
924
|
+
* property.
|
|
849
925
|
*/
|
|
850
926
|
circleStrokeColorTransition?: Transition;
|
|
851
927
|
/**
|
|
852
928
|
* The opacity of the circle's stroke.
|
|
853
929
|
*/
|
|
854
930
|
circleStrokeOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
855
|
-
|
|
856
931
|
/**
|
|
857
|
-
* The transition affecting any changes to this layer
|
|
932
|
+
* The transition affecting any changes to this layer's circleStrokeOpacity
|
|
933
|
+
* property.
|
|
858
934
|
*/
|
|
859
935
|
circleStrokeOpacityTransition?: Transition;
|
|
860
936
|
}
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* @deprecated
|
|
940
|
+
*/
|
|
861
941
|
export interface HeatmapLayerStyle {
|
|
862
942
|
/**
|
|
863
943
|
* Whether this layer is displayed.
|
|
864
944
|
*/
|
|
865
945
|
visibility?: Value<"visible" | "none", ["global-state"]>;
|
|
866
946
|
/**
|
|
867
|
-
* Radius of influence of one heatmap point in pixels. Increasing the value
|
|
947
|
+
* Radius of influence of one heatmap point in pixels. Increasing the value
|
|
948
|
+
* makes the heatmap smoother, but less detailed.
|
|
868
949
|
*/
|
|
869
950
|
heatmapRadius?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
870
|
-
|
|
871
951
|
/**
|
|
872
|
-
* The transition affecting any changes to this layer
|
|
952
|
+
* The transition affecting any changes to this layer's heatmapRadius property.
|
|
873
953
|
*/
|
|
874
954
|
heatmapRadiusTransition?: Transition;
|
|
875
955
|
/**
|
|
876
|
-
* A measure of how much an individual point contributes to the heatmap. A value
|
|
956
|
+
* A measure of how much an individual point contributes to the heatmap. A value
|
|
957
|
+
* of 10 would be equivalent to having 10 points of weight 1 in the same spot.
|
|
958
|
+
* Especially useful when combined with clustering.
|
|
877
959
|
*/
|
|
878
960
|
heatmapWeight?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
879
961
|
/**
|
|
880
|
-
* Similar to `heatmapWeight` but controls the intensity of the heatmap
|
|
962
|
+
* Similar to `heatmapWeight` but controls the intensity of the heatmap
|
|
963
|
+
* globally. Primarily used for adjusting the heatmap based on zoom level.
|
|
881
964
|
*/
|
|
882
965
|
heatmapIntensity?: Value<number, ["zoom"]>;
|
|
883
|
-
|
|
884
966
|
/**
|
|
885
|
-
* The transition affecting any changes to this layer
|
|
967
|
+
* The transition affecting any changes to this layer's heatmapIntensity
|
|
968
|
+
* property.
|
|
886
969
|
*/
|
|
887
970
|
heatmapIntensityTransition?: Transition;
|
|
888
971
|
/**
|
|
889
|
-
* Defines the color of each pixel based on its density value in a heatmap.
|
|
972
|
+
* Defines the color of each pixel based on its density value in a heatmap.
|
|
973
|
+
* Should be an expression that uses `["heatmapDensity"]` as input.
|
|
890
974
|
*/
|
|
891
975
|
heatmapColor?: Value<string, ["heatmap-density"]>;
|
|
892
976
|
/**
|
|
893
977
|
* The global opacity at which the heatmap layer will be drawn.
|
|
894
978
|
*/
|
|
895
979
|
heatmapOpacity?: Value<number, ["zoom"]>;
|
|
896
|
-
|
|
897
980
|
/**
|
|
898
|
-
* The transition affecting any changes to this layer
|
|
981
|
+
* The transition affecting any changes to this layer's heatmapOpacity property.
|
|
899
982
|
*/
|
|
900
983
|
heatmapOpacityTransition?: Transition;
|
|
901
984
|
}
|
|
985
|
+
|
|
986
|
+
/**
|
|
987
|
+
* @deprecated
|
|
988
|
+
*/
|
|
902
989
|
export interface FillExtrusionLayerStyle {
|
|
903
990
|
/**
|
|
904
991
|
* Whether this layer is displayed.
|
|
905
992
|
*/
|
|
906
993
|
visibility?: Value<"visible" | "none", ["global-state"]>;
|
|
907
994
|
/**
|
|
908
|
-
* The opacity of the entire fill extrusion layer. This is rendered on a
|
|
995
|
+
* The opacity of the entire fill extrusion layer. This is rendered on a
|
|
996
|
+
* perLayer, not perFeature, basis, and dataDriven styling is not available.
|
|
909
997
|
*/
|
|
910
998
|
fillExtrusionOpacity?: Value<number, ["zoom"]>;
|
|
911
|
-
|
|
912
999
|
/**
|
|
913
|
-
* The transition affecting any changes to this layer
|
|
1000
|
+
* The transition affecting any changes to this layer's fillExtrusionOpacity
|
|
1001
|
+
* property.
|
|
914
1002
|
*/
|
|
915
1003
|
fillExtrusionOpacityTransition?: Transition;
|
|
916
1004
|
/**
|
|
917
|
-
* The base color of the extruded fill. The extrusion's surfaces will be shaded
|
|
1005
|
+
* The base color of the extruded fill. The extrusion's surfaces will be shaded
|
|
1006
|
+
* differently based on this color in combination with the root `light`
|
|
1007
|
+
* settings. If this color is specified as `rgba` with an alpha component, the
|
|
1008
|
+
* alpha component will be ignored; use `fillExtrusionOpacity` to set layer
|
|
1009
|
+
* opacity.
|
|
918
1010
|
*
|
|
919
1011
|
* @disabledBy fillExtrusionPattern
|
|
920
1012
|
*/
|
|
921
1013
|
fillExtrusionColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
922
|
-
|
|
923
1014
|
/**
|
|
924
|
-
* The transition affecting any changes to this layer
|
|
1015
|
+
* The transition affecting any changes to this layer's fillExtrusionColor
|
|
1016
|
+
* property.
|
|
925
1017
|
*/
|
|
926
1018
|
fillExtrusionColorTransition?: Transition;
|
|
927
1019
|
/**
|
|
928
|
-
* The geometry's offset. Values are [x, y] where negatives indicate left and up
|
|
1020
|
+
* The geometry's offset. Values are [x, y] where negatives indicate left and up
|
|
1021
|
+
* (on the flat plane), respectively.
|
|
929
1022
|
*/
|
|
930
1023
|
fillExtrusionTranslate?: Value<Translation, ["zoom"]>;
|
|
931
|
-
|
|
932
1024
|
/**
|
|
933
|
-
* The transition affecting any changes to this layer
|
|
1025
|
+
* The transition affecting any changes to this layer's fillExtrusionTranslate
|
|
1026
|
+
* property.
|
|
934
1027
|
*/
|
|
935
1028
|
fillExtrusionTranslateTransition?: Transition;
|
|
936
1029
|
/**
|
|
@@ -940,39 +1033,48 @@ export interface FillExtrusionLayerStyle {
|
|
|
940
1033
|
*/
|
|
941
1034
|
fillExtrusionTranslateAnchor?: Value<"map" | "viewport", ["zoom"]>;
|
|
942
1035
|
/**
|
|
943
|
-
* Name of image in sprite to use for drawing images on extruded fills. For
|
|
1036
|
+
* Name of image in sprite to use for drawing images on extruded fills. For
|
|
1037
|
+
* seamless patterns, image width and height must be a factor of two (2, 4, 8,
|
|
1038
|
+
* ..., 512). Note that zoomDependent expressions will be evaluated only at
|
|
1039
|
+
* integer zoom levels.
|
|
944
1040
|
*/
|
|
945
1041
|
fillExtrusionPattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
|
|
946
|
-
|
|
947
1042
|
/**
|
|
948
|
-
* The transition affecting any changes to this layer
|
|
1043
|
+
* The transition affecting any changes to this layer's fillExtrusionPattern
|
|
1044
|
+
* property.
|
|
949
1045
|
*/
|
|
950
1046
|
fillExtrusionPatternTransition?: Transition;
|
|
951
1047
|
/**
|
|
952
1048
|
* The height with which to extrude this layer.
|
|
953
1049
|
*/
|
|
954
1050
|
fillExtrusionHeight?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
955
|
-
|
|
956
1051
|
/**
|
|
957
|
-
* The transition affecting any changes to this layer
|
|
1052
|
+
* The transition affecting any changes to this layer's fillExtrusionHeight
|
|
1053
|
+
* property.
|
|
958
1054
|
*/
|
|
959
1055
|
fillExtrusionHeightTransition?: Transition;
|
|
960
1056
|
/**
|
|
961
|
-
* The height with which to extrude the base of this layer. Must be less than or
|
|
1057
|
+
* The height with which to extrude the base of this layer. Must be less than or
|
|
1058
|
+
* equal to `fillExtrusionHeight` .
|
|
962
1059
|
*
|
|
963
1060
|
* @requires fillExtrusionHeight
|
|
964
1061
|
*/
|
|
965
1062
|
fillExtrusionBase?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
966
|
-
|
|
967
1063
|
/**
|
|
968
|
-
* The transition affecting any changes to this layer
|
|
1064
|
+
* The transition affecting any changes to this layer's fillExtrusionBase
|
|
1065
|
+
* property.
|
|
969
1066
|
*/
|
|
970
1067
|
fillExtrusionBaseTransition?: Transition;
|
|
971
1068
|
/**
|
|
972
|
-
* Whether to apply a vertical gradient to the sides of a fillExtrusion layer.
|
|
1069
|
+
* Whether to apply a vertical gradient to the sides of a fillExtrusion layer.
|
|
1070
|
+
* If true, sides will be shaded slightly darker farther down.
|
|
973
1071
|
*/
|
|
974
1072
|
fillExtrusionVerticalGradient?: Value<boolean, ["zoom"]>;
|
|
975
1073
|
}
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* @deprecated
|
|
1077
|
+
*/
|
|
976
1078
|
export interface RasterLayerStyle {
|
|
977
1079
|
/**
|
|
978
1080
|
* Whether this layer is displayed.
|
|
@@ -982,72 +1084,83 @@ export interface RasterLayerStyle {
|
|
|
982
1084
|
* The opacity at which the image will be drawn.
|
|
983
1085
|
*/
|
|
984
1086
|
rasterOpacity?: Value<number, ["zoom"]>;
|
|
985
|
-
|
|
986
1087
|
/**
|
|
987
|
-
* The transition affecting any changes to this layer
|
|
1088
|
+
* The transition affecting any changes to this layer's rasterOpacity property.
|
|
988
1089
|
*/
|
|
989
1090
|
rasterOpacityTransition?: Transition;
|
|
990
1091
|
/**
|
|
991
1092
|
* Rotates hues around the color wheel.
|
|
992
1093
|
*/
|
|
993
1094
|
rasterHueRotate?: Value<number, ["zoom"]>;
|
|
994
|
-
|
|
995
1095
|
/**
|
|
996
|
-
* The transition affecting any changes to this layer
|
|
1096
|
+
* The transition affecting any changes to this layer's rasterHueRotate
|
|
1097
|
+
* property.
|
|
997
1098
|
*/
|
|
998
1099
|
rasterHueRotateTransition?: Transition;
|
|
999
1100
|
/**
|
|
1000
|
-
* Increase or reduce the brightness of the image. The value is the minimum
|
|
1101
|
+
* Increase or reduce the brightness of the image. The value is the minimum
|
|
1102
|
+
* brightness.
|
|
1001
1103
|
*/
|
|
1002
1104
|
rasterBrightnessMin?: Value<number, ["zoom"]>;
|
|
1003
|
-
|
|
1004
1105
|
/**
|
|
1005
|
-
* The transition affecting any changes to this layer
|
|
1106
|
+
* The transition affecting any changes to this layer's rasterBrightnessMin
|
|
1107
|
+
* property.
|
|
1006
1108
|
*/
|
|
1007
1109
|
rasterBrightnessMinTransition?: Transition;
|
|
1008
1110
|
/**
|
|
1009
|
-
* Increase or reduce the brightness of the image. The value is the maximum
|
|
1111
|
+
* Increase or reduce the brightness of the image. The value is the maximum
|
|
1112
|
+
* brightness.
|
|
1010
1113
|
*/
|
|
1011
1114
|
rasterBrightnessMax?: Value<number, ["zoom"]>;
|
|
1012
|
-
|
|
1013
1115
|
/**
|
|
1014
|
-
* The transition affecting any changes to this layer
|
|
1116
|
+
* The transition affecting any changes to this layer's rasterBrightnessMax
|
|
1117
|
+
* property.
|
|
1015
1118
|
*/
|
|
1016
1119
|
rasterBrightnessMaxTransition?: Transition;
|
|
1017
1120
|
/**
|
|
1018
1121
|
* Increase or reduce the saturation of the image.
|
|
1019
1122
|
*/
|
|
1020
1123
|
rasterSaturation?: Value<number, ["zoom"]>;
|
|
1021
|
-
|
|
1022
1124
|
/**
|
|
1023
|
-
* The transition affecting any changes to this layer
|
|
1125
|
+
* The transition affecting any changes to this layer's rasterSaturation
|
|
1126
|
+
* property.
|
|
1024
1127
|
*/
|
|
1025
1128
|
rasterSaturationTransition?: Transition;
|
|
1026
1129
|
/**
|
|
1027
1130
|
* Increase or reduce the contrast of the image.
|
|
1028
1131
|
*/
|
|
1029
1132
|
rasterContrast?: Value<number, ["zoom"]>;
|
|
1030
|
-
|
|
1031
1133
|
/**
|
|
1032
|
-
* The transition affecting any changes to this layer
|
|
1134
|
+
* The transition affecting any changes to this layer's rasterContrast property.
|
|
1033
1135
|
*/
|
|
1034
1136
|
rasterContrastTransition?: Transition;
|
|
1035
1137
|
/**
|
|
1036
|
-
* The resampling/interpolation method to use for overscaling, also known as
|
|
1138
|
+
* The resampling/interpolation method to use for overscaling, also known as
|
|
1139
|
+
* texture magnification filter. It is advised to use the generic `resampling`
|
|
1140
|
+
* paint property instead.
|
|
1037
1141
|
*/
|
|
1038
1142
|
rasterResampling?: Value<"linear" | "nearest", ["zoom"]>;
|
|
1039
1143
|
/**
|
|
1040
|
-
* Fade duration when a new tile is added, or when a video is started or its
|
|
1144
|
+
* Fade duration when a new tile is added, or when a video is started or its
|
|
1145
|
+
* coordinates are updated.
|
|
1041
1146
|
*/
|
|
1042
1147
|
rasterFadeDuration?: Value<number, ["zoom"]>;
|
|
1043
1148
|
}
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* @deprecated
|
|
1152
|
+
*/
|
|
1044
1153
|
export interface HillshadeLayerStyle {
|
|
1045
1154
|
/**
|
|
1046
1155
|
* Whether this layer is displayed.
|
|
1047
1156
|
*/
|
|
1048
1157
|
visibility?: Value<"visible" | "none", ["global-state"]>;
|
|
1049
1158
|
/**
|
|
1050
|
-
* The direction of the light source(s) used to generate the hillshading with 0
|
|
1159
|
+
* The direction of the light source(s) used to generate the hillshading with 0
|
|
1160
|
+
* as the top of the viewport if `hillshadeIlluminationAnchor` is set to
|
|
1161
|
+
* `viewport` and due north if `hillshadeIlluminationAnchor` is set to `map` .
|
|
1162
|
+
* Only when `hillshadeMethod` is set to `multidirectional` can you specify
|
|
1163
|
+
* multiple light sources.
|
|
1051
1164
|
*/
|
|
1052
1165
|
hillshadeIlluminationDirection?: Value<number, ["zoom"]>;
|
|
1053
1166
|
/**
|
|
@@ -1058,39 +1171,48 @@ export interface HillshadeLayerStyle {
|
|
|
1058
1171
|
* Intensity of the hillshade
|
|
1059
1172
|
*/
|
|
1060
1173
|
hillshadeExaggeration?: Value<number, ["zoom"]>;
|
|
1061
|
-
|
|
1062
1174
|
/**
|
|
1063
|
-
* The transition affecting any changes to this layer
|
|
1175
|
+
* The transition affecting any changes to this layer's hillshadeExaggeration
|
|
1176
|
+
* property.
|
|
1064
1177
|
*/
|
|
1065
1178
|
hillshadeExaggerationTransition?: Transition;
|
|
1066
1179
|
/**
|
|
1067
|
-
* The shading color of areas that face away from the light source(s). Only when
|
|
1180
|
+
* The shading color of areas that face away from the light source(s). Only when
|
|
1181
|
+
* `hillshadeMethod` is set to `multidirectional` can you specify multiple light
|
|
1182
|
+
* sources.
|
|
1068
1183
|
*/
|
|
1069
1184
|
hillshadeShadowColor?: Value<string, ["zoom"]>;
|
|
1070
|
-
|
|
1071
1185
|
/**
|
|
1072
|
-
* The transition affecting any changes to this layer
|
|
1186
|
+
* The transition affecting any changes to this layer's hillshadeShadowColor
|
|
1187
|
+
* property.
|
|
1073
1188
|
*/
|
|
1074
1189
|
hillshadeShadowColorTransition?: Transition;
|
|
1075
1190
|
/**
|
|
1076
|
-
* The shading color of areas that faces towards the light source(s). Only when
|
|
1191
|
+
* The shading color of areas that faces towards the light source(s). Only when
|
|
1192
|
+
* `hillshadeMethod` is set to `multidirectional` can you specify multiple light
|
|
1193
|
+
* sources.
|
|
1077
1194
|
*/
|
|
1078
1195
|
hillshadeHighlightColor?: Value<string, ["zoom"]>;
|
|
1079
|
-
|
|
1080
1196
|
/**
|
|
1081
|
-
* The transition affecting any changes to this layer
|
|
1197
|
+
* The transition affecting any changes to this layer's hillshadeHighlightColor
|
|
1198
|
+
* property.
|
|
1082
1199
|
*/
|
|
1083
1200
|
hillshadeHighlightColorTransition?: Transition;
|
|
1084
1201
|
/**
|
|
1085
|
-
* The shading color used to accentuate rugged terrain like sharp cliffs and
|
|
1202
|
+
* The shading color used to accentuate rugged terrain like sharp cliffs and
|
|
1203
|
+
* gorges.
|
|
1086
1204
|
*/
|
|
1087
1205
|
hillshadeAccentColor?: Value<string, ["zoom"]>;
|
|
1088
|
-
|
|
1089
1206
|
/**
|
|
1090
|
-
* The transition affecting any changes to this layer
|
|
1207
|
+
* The transition affecting any changes to this layer's hillshadeAccentColor
|
|
1208
|
+
* property.
|
|
1091
1209
|
*/
|
|
1092
1210
|
hillshadeAccentColorTransition?: Transition;
|
|
1093
1211
|
}
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* @deprecated
|
|
1215
|
+
*/
|
|
1094
1216
|
export interface BackgroundLayerStyle {
|
|
1095
1217
|
/**
|
|
1096
1218
|
* Whether this layer is displayed.
|
|
@@ -1102,60 +1224,72 @@ export interface BackgroundLayerStyle {
|
|
|
1102
1224
|
* @disabledBy backgroundPattern
|
|
1103
1225
|
*/
|
|
1104
1226
|
backgroundColor?: Value<string, ["zoom"]>;
|
|
1105
|
-
|
|
1106
1227
|
/**
|
|
1107
|
-
* The transition affecting any changes to this layer
|
|
1228
|
+
* The transition affecting any changes to this layer's backgroundColor
|
|
1229
|
+
* property.
|
|
1108
1230
|
*/
|
|
1109
1231
|
backgroundColorTransition?: Transition;
|
|
1110
1232
|
/**
|
|
1111
|
-
* Name of image in sprite to use for drawing an image background. For seamless
|
|
1233
|
+
* Name of image in sprite to use for drawing an image background. For seamless
|
|
1234
|
+
* patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
|
|
1235
|
+
* Note that zoomDependent expressions will be evaluated only at integer zoom
|
|
1236
|
+
* levels.
|
|
1112
1237
|
*/
|
|
1113
1238
|
backgroundPattern?: Value<ResolvedImageType, ["zoom"]>;
|
|
1114
|
-
|
|
1115
1239
|
/**
|
|
1116
|
-
* The transition affecting any changes to this layer
|
|
1240
|
+
* The transition affecting any changes to this layer's backgroundPattern
|
|
1241
|
+
* property.
|
|
1117
1242
|
*/
|
|
1118
1243
|
backgroundPatternTransition?: Transition;
|
|
1119
1244
|
/**
|
|
1120
1245
|
* The opacity at which the background will be drawn.
|
|
1121
1246
|
*/
|
|
1122
1247
|
backgroundOpacity?: Value<number, ["zoom"]>;
|
|
1123
|
-
|
|
1124
1248
|
/**
|
|
1125
|
-
* The transition affecting any changes to this layer
|
|
1249
|
+
* The transition affecting any changes to this layer's backgroundOpacity
|
|
1250
|
+
* property.
|
|
1126
1251
|
*/
|
|
1127
1252
|
backgroundOpacityTransition?: Transition;
|
|
1128
1253
|
}
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* @deprecated
|
|
1257
|
+
*/
|
|
1129
1258
|
export interface LightLayerStyle {
|
|
1130
1259
|
/**
|
|
1131
1260
|
* Whether extruded geometries are lit relative to the map or viewport.
|
|
1132
1261
|
*/
|
|
1133
1262
|
anchor?: Value<"map" | "viewport", ["zoom"]>;
|
|
1134
1263
|
/**
|
|
1135
|
-
* Position of the light source relative to lit (extruded) geometries, in [r
|
|
1264
|
+
* Position of the light source relative to lit (extruded) geometries, in [r
|
|
1265
|
+
* radial coordinate, a azimuthal angle, p polar angle] where r indicates the
|
|
1266
|
+
* distance from the center of the base of an object to its light, a indicates
|
|
1267
|
+
* the position of the light relative to 0° (0° when `light.anchor` is set to
|
|
1268
|
+
* `viewport` corresponds to the top of the viewport, or 0° when `light.anchor`
|
|
1269
|
+
* is set to `map` corresponds to due north, and degrees proceed clockwise),
|
|
1270
|
+
* and p indicates the height of the light (from 0°, directly above, to 180°,
|
|
1271
|
+
* directly below).
|
|
1136
1272
|
*/
|
|
1137
1273
|
position?: Value<number[], ["zoom"]>;
|
|
1138
|
-
|
|
1139
1274
|
/**
|
|
1140
|
-
* The transition affecting any changes to this layer
|
|
1275
|
+
* The transition affecting any changes to this layer's position property.
|
|
1141
1276
|
*/
|
|
1142
1277
|
positionTransition?: Transition;
|
|
1143
1278
|
/**
|
|
1144
1279
|
* Color tint for lighting extruded geometries.
|
|
1145
1280
|
*/
|
|
1146
1281
|
color?: Value<string, ["zoom"]>;
|
|
1147
|
-
|
|
1148
1282
|
/**
|
|
1149
|
-
* The transition affecting any changes to this layer
|
|
1283
|
+
* The transition affecting any changes to this layer's color property.
|
|
1150
1284
|
*/
|
|
1151
1285
|
colorTransition?: Transition;
|
|
1152
1286
|
/**
|
|
1153
|
-
* Intensity of lighting (on a scale from 0 to 1). Higher numbers will present
|
|
1287
|
+
* Intensity of lighting (on a scale from 0 to 1). Higher numbers will present
|
|
1288
|
+
* as more extreme contrast.
|
|
1154
1289
|
*/
|
|
1155
1290
|
intensity?: Value<number, ["zoom"]>;
|
|
1156
|
-
|
|
1157
1291
|
/**
|
|
1158
|
-
* The transition affecting any changes to this layer
|
|
1292
|
+
* The transition affecting any changes to this layer's intensity property.
|
|
1159
1293
|
*/
|
|
1160
1294
|
intensityTransition?: Transition;
|
|
1161
1295
|
}
|