@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
|
@@ -12,13 +12,20 @@ export type ExpressionName = "array" | "boolean" | "collator" | "format" | "imag
|
|
|
12
12
|
export type ExpressionField = string | number | boolean | Expression | ExpressionField[] | {
|
|
13
13
|
[key: string]: ExpressionField;
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated
|
|
17
|
+
*/
|
|
15
18
|
export type Expression = [ExpressionName, ...ExpressionField[]];
|
|
16
19
|
type ExpressionParameters = "zoom" | "feature" | "feature-state" | "global-state" | "sky-radial-progress" | "line-progress" | "heatmap-density";
|
|
17
20
|
type ResolvedImageType = ImageSourcePropType | string;
|
|
18
21
|
export type Value<T, AllowedParameters extends ExpressionParameters[] = []> = T | Expression;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated
|
|
24
|
+
*/
|
|
19
25
|
export interface FillLayerStyle {
|
|
20
26
|
/**
|
|
21
|
-
* Sorts features in ascending order based on this value. Features with a higher
|
|
27
|
+
* Sorts features in ascending order based on this value. Features with a higher
|
|
28
|
+
* sort key will appear above features with a lower sort key.
|
|
22
29
|
*/
|
|
23
30
|
fillSortKey?: Value<number, ["zoom", "feature"]>;
|
|
24
31
|
/**
|
|
@@ -30,39 +37,45 @@ export interface FillLayerStyle {
|
|
|
30
37
|
*/
|
|
31
38
|
fillAntialias?: Value<boolean, ["zoom"]>;
|
|
32
39
|
/**
|
|
33
|
-
* The opacity of the entire fill layer. In contrast to the `fillColor
|
|
40
|
+
* The opacity of the entire fill layer. In contrast to the `fillColor` , this
|
|
41
|
+
* value will also affect the 1px stroke around the fill, if the stroke is used.
|
|
34
42
|
*/
|
|
35
43
|
fillOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
36
44
|
/**
|
|
37
|
-
* The transition affecting any changes to this layer
|
|
45
|
+
* The transition affecting any changes to this layer's fillOpacity property.
|
|
38
46
|
*/
|
|
39
47
|
fillOpacityTransition?: Transition;
|
|
40
48
|
/**
|
|
41
|
-
* The color of the filled part of this layer. This color can be specified as
|
|
49
|
+
* The color of the filled part of this layer. This color can be specified as
|
|
50
|
+
* `rgba` with an alpha component and the color's opacity will not affect the
|
|
51
|
+
* opacity of the 1px stroke, if it is used.
|
|
42
52
|
*
|
|
43
53
|
* @disabledBy fillPattern
|
|
44
54
|
*/
|
|
45
55
|
fillColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
46
56
|
/**
|
|
47
|
-
* The transition affecting any changes to this layer
|
|
57
|
+
* The transition affecting any changes to this layer's fillColor property.
|
|
48
58
|
*/
|
|
49
59
|
fillColorTransition?: Transition;
|
|
50
60
|
/**
|
|
51
|
-
* The outline color of the fill. Matches the value of `fillColor` if
|
|
61
|
+
* The outline color of the fill. Matches the value of `fillColor` if
|
|
62
|
+
* unspecified.
|
|
52
63
|
*
|
|
53
64
|
* @disabledBy fillPattern
|
|
54
65
|
*/
|
|
55
66
|
fillOutlineColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
56
67
|
/**
|
|
57
|
-
* The transition affecting any changes to this layer
|
|
68
|
+
* The transition affecting any changes to this layer's fillOutlineColor
|
|
69
|
+
* property.
|
|
58
70
|
*/
|
|
59
71
|
fillOutlineColorTransition?: Transition;
|
|
60
72
|
/**
|
|
61
|
-
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
73
|
+
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
74
|
+
* up, respectively.
|
|
62
75
|
*/
|
|
63
76
|
fillTranslate?: Value<Translation, ["zoom"]>;
|
|
64
77
|
/**
|
|
65
|
-
* The transition affecting any changes to this layer
|
|
78
|
+
* The transition affecting any changes to this layer's fillTranslate property.
|
|
66
79
|
*/
|
|
67
80
|
fillTranslateTransition?: Transition;
|
|
68
81
|
/**
|
|
@@ -72,19 +85,25 @@ export interface FillLayerStyle {
|
|
|
72
85
|
*/
|
|
73
86
|
fillTranslateAnchor?: Value<"map" | "viewport", ["zoom"]>;
|
|
74
87
|
/**
|
|
75
|
-
* Name of image in sprite to use for drawing image fills. For seamless
|
|
88
|
+
* Name of image in sprite to use for drawing image fills. For seamless
|
|
89
|
+
* patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
|
|
90
|
+
* Note that zoomDependent expressions will be evaluated only at integer zoom
|
|
91
|
+
* levels.
|
|
76
92
|
*/
|
|
77
93
|
fillPattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
|
|
78
94
|
/**
|
|
79
|
-
* The transition affecting any changes to this layer
|
|
95
|
+
* The transition affecting any changes to this layer's fillPattern property.
|
|
80
96
|
*/
|
|
81
97
|
fillPatternTransition?: Transition;
|
|
82
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* @deprecated
|
|
101
|
+
*/
|
|
83
102
|
export interface LineLayerStyle {
|
|
84
103
|
/**
|
|
85
104
|
* The display of line endings.
|
|
86
105
|
*/
|
|
87
|
-
lineCap?: Value<"butt" | "round" | "square", ["zoom"]>;
|
|
106
|
+
lineCap?: Value<"butt" | "round" | "square", ["zoom", "feature"]>;
|
|
88
107
|
/**
|
|
89
108
|
* The display of lines when joining.
|
|
90
109
|
*/
|
|
@@ -92,13 +111,14 @@ export interface LineLayerStyle {
|
|
|
92
111
|
/**
|
|
93
112
|
* Used to automatically convert miter joins to bevel joins for sharp angles.
|
|
94
113
|
*/
|
|
95
|
-
lineMiterLimit?: Value<number, ["zoom"]>;
|
|
114
|
+
lineMiterLimit?: Value<number, ["zoom", "feature"]>;
|
|
96
115
|
/**
|
|
97
116
|
* Used to automatically convert round joins to miter joins for shallow angles.
|
|
98
117
|
*/
|
|
99
|
-
lineRoundLimit?: Value<number, ["zoom"]>;
|
|
118
|
+
lineRoundLimit?: Value<number, ["zoom", "feature"]>;
|
|
100
119
|
/**
|
|
101
|
-
* Sorts features in ascending order based on this value. Features with a higher
|
|
120
|
+
* Sorts features in ascending order based on this value. Features with a higher
|
|
121
|
+
* sort key will appear above features with a lower sort key.
|
|
102
122
|
*/
|
|
103
123
|
lineSortKey?: Value<number, ["zoom", "feature"]>;
|
|
104
124
|
/**
|
|
@@ -110,7 +130,7 @@ export interface LineLayerStyle {
|
|
|
110
130
|
*/
|
|
111
131
|
lineOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
112
132
|
/**
|
|
113
|
-
* The transition affecting any changes to this layer
|
|
133
|
+
* The transition affecting any changes to this layer's lineOpacity property.
|
|
114
134
|
*/
|
|
115
135
|
lineOpacityTransition?: Transition;
|
|
116
136
|
/**
|
|
@@ -120,15 +140,16 @@ export interface LineLayerStyle {
|
|
|
120
140
|
*/
|
|
121
141
|
lineColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
122
142
|
/**
|
|
123
|
-
* The transition affecting any changes to this layer
|
|
143
|
+
* The transition affecting any changes to this layer's lineColor property.
|
|
124
144
|
*/
|
|
125
145
|
lineColorTransition?: Transition;
|
|
126
146
|
/**
|
|
127
|
-
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
147
|
+
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
148
|
+
* up, respectively.
|
|
128
149
|
*/
|
|
129
150
|
lineTranslate?: Value<Translation, ["zoom"]>;
|
|
130
151
|
/**
|
|
131
|
-
* The transition affecting any changes to this layer
|
|
152
|
+
* The transition affecting any changes to this layer's lineTranslate property.
|
|
132
153
|
*/
|
|
133
154
|
lineTranslateTransition?: Transition;
|
|
134
155
|
/**
|
|
@@ -142,23 +163,27 @@ export interface LineLayerStyle {
|
|
|
142
163
|
*/
|
|
143
164
|
lineWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
144
165
|
/**
|
|
145
|
-
* The transition affecting any changes to this layer
|
|
166
|
+
* The transition affecting any changes to this layer's lineWidth property.
|
|
146
167
|
*/
|
|
147
168
|
lineWidthTransition?: Transition;
|
|
148
169
|
/**
|
|
149
|
-
* Draws a line casing outside of a line's actual path. Value indicates the
|
|
170
|
+
* Draws a line casing outside of a line's actual path. Value indicates the
|
|
171
|
+
* width of the inner gap.
|
|
150
172
|
*/
|
|
151
173
|
lineGapWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
152
174
|
/**
|
|
153
|
-
* The transition affecting any changes to this layer
|
|
175
|
+
* The transition affecting any changes to this layer's lineGapWidth property.
|
|
154
176
|
*/
|
|
155
177
|
lineGapWidthTransition?: Transition;
|
|
156
178
|
/**
|
|
157
|
-
* The line's offset. For linear features, a positive value offsets the line to
|
|
179
|
+
* The line's offset. For linear features, a positive value offsets the line to
|
|
180
|
+
* the right, relative to the direction of the line, and a negative value to the
|
|
181
|
+
* left. For polygon features, a positive value results in an inset, and a
|
|
182
|
+
* negative value results in an outset.
|
|
158
183
|
*/
|
|
159
184
|
lineOffset?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
160
185
|
/**
|
|
161
|
-
* The transition affecting any changes to this layer
|
|
186
|
+
* The transition affecting any changes to this layer's lineOffset property.
|
|
162
187
|
*/
|
|
163
188
|
lineOffsetTransition?: Transition;
|
|
164
189
|
/**
|
|
@@ -166,34 +191,47 @@ export interface LineLayerStyle {
|
|
|
166
191
|
*/
|
|
167
192
|
lineBlur?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
168
193
|
/**
|
|
169
|
-
* The transition affecting any changes to this layer
|
|
194
|
+
* The transition affecting any changes to this layer's lineBlur property.
|
|
170
195
|
*/
|
|
171
196
|
lineBlurTransition?: Transition;
|
|
172
197
|
/**
|
|
173
|
-
* Specifies the lengths of the alternating dashes and gaps that form the dash
|
|
198
|
+
* Specifies the lengths of the alternating dashes and gaps that form the dash
|
|
199
|
+
* pattern. The lengths are later scaled by the line width. To convert a dash
|
|
200
|
+
* length to pixels, multiply the length by the current line width. GeoJSON
|
|
201
|
+
* sources with `lineMetrics: true` specified won't render dashed lines to the
|
|
202
|
+
* expected scale. ZoomDependent expressions will be evaluated only at integer
|
|
203
|
+
* zoom levels. The only way to create an array value is using
|
|
204
|
+
* `["literal", [...]]` ; arrays cannot be read from or derived from feature
|
|
205
|
+
* properties.
|
|
174
206
|
*
|
|
175
207
|
* @disabledBy linePattern
|
|
176
208
|
*/
|
|
177
209
|
lineDasharray?: Value<number[], ["zoom", "feature"]>;
|
|
178
210
|
/**
|
|
179
|
-
* The transition affecting any changes to this layer
|
|
211
|
+
* The transition affecting any changes to this layer's lineDasharray property.
|
|
180
212
|
*/
|
|
181
213
|
lineDasharrayTransition?: Transition;
|
|
182
214
|
/**
|
|
183
|
-
* Name of image in sprite to use for drawing image lines. For seamless
|
|
215
|
+
* Name of image in sprite to use for drawing image lines. For seamless
|
|
216
|
+
* patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that
|
|
217
|
+
* zoomDependent expressions will be evaluated only at integer zoom levels.
|
|
184
218
|
*/
|
|
185
219
|
linePattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
|
|
186
220
|
/**
|
|
187
|
-
* The transition affecting any changes to this layer
|
|
221
|
+
* The transition affecting any changes to this layer's linePattern property.
|
|
188
222
|
*/
|
|
189
223
|
linePatternTransition?: Transition;
|
|
190
224
|
/**
|
|
191
|
-
* Defines a gradient with which to color a line feature. Can only be used with
|
|
225
|
+
* Defines a gradient with which to color a line feature. Can only be used with
|
|
226
|
+
* GeoJSON sources that specify `"lineMetrics": true` .
|
|
192
227
|
*
|
|
193
228
|
* @disabledBy lineDasharray, linePattern
|
|
194
229
|
*/
|
|
195
230
|
lineGradient?: Value<string, ["line-progress"]>;
|
|
196
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* @deprecated
|
|
234
|
+
*/
|
|
197
235
|
export interface SymbolLayerStyle {
|
|
198
236
|
/**
|
|
199
237
|
* Label placement relative to its geometry.
|
|
@@ -204,19 +242,33 @@ export interface SymbolLayerStyle {
|
|
|
204
242
|
*/
|
|
205
243
|
symbolSpacing?: Value<number, ["zoom"]>;
|
|
206
244
|
/**
|
|
207
|
-
* If true, the symbols will not cross tile edges to avoid mutual collisions.
|
|
245
|
+
* If true, the symbols will not cross tile edges to avoid mutual collisions.
|
|
246
|
+
* Recommended in layers that don't have enough padding in the vector tile to
|
|
247
|
+
* prevent collisions, or if it is a point symbol layer placed after a line
|
|
248
|
+
* symbol layer. When using a client that supports global collision detection,
|
|
249
|
+
* like MapLibre GL JS version 0.42.0 or greater, enabling this property is not
|
|
250
|
+
* needed to prevent clipped labels at tile boundaries.
|
|
208
251
|
*/
|
|
209
252
|
symbolAvoidEdges?: Value<boolean, ["zoom"]>;
|
|
210
253
|
/**
|
|
211
|
-
* Sorts features in ascending order based on this value. Features with lower
|
|
254
|
+
* Sorts features in ascending order based on this value. Features with lower
|
|
255
|
+
* sort keys are drawn and placed first. When `iconAllowOverlap` or
|
|
256
|
+
* `textAllowOverlap` is `false` , features with a lower sort key will have
|
|
257
|
+
* priority during placement. When `iconAllowOverlap` or `textAllowOverlap` is
|
|
258
|
+
* set to `true` , features with a higher sort key will overlap over features
|
|
259
|
+
* with a lower sort key.
|
|
212
260
|
*/
|
|
213
261
|
symbolSortKey?: Value<number, ["zoom", "feature"]>;
|
|
214
262
|
/**
|
|
215
|
-
* Determines whether overlapping symbols in the same layer are rendered in the
|
|
263
|
+
* Determines whether overlapping symbols in the same layer are rendered in the
|
|
264
|
+
* order that they appear in the data source or by their yPosition relative to
|
|
265
|
+
* the viewport. To control the order and prioritization of symbols otherwise,
|
|
266
|
+
* use `symbolSortKey` .
|
|
216
267
|
*/
|
|
217
268
|
symbolZOrder?: Value<"auto" | "viewport-y" | "source", ["zoom"]>;
|
|
218
269
|
/**
|
|
219
|
-
* If true, the icon will be visible even if it collides with other previously
|
|
270
|
+
* If true, the icon will be visible even if it collides with other previously
|
|
271
|
+
* drawn symbols.
|
|
220
272
|
*
|
|
221
273
|
* @requires iconImage
|
|
222
274
|
*
|
|
@@ -230,19 +282,23 @@ export interface SymbolLayerStyle {
|
|
|
230
282
|
*/
|
|
231
283
|
iconIgnorePlacement?: Value<boolean, ["zoom"]>;
|
|
232
284
|
/**
|
|
233
|
-
* If true, text will display without their corresponding icons when the icon
|
|
285
|
+
* If true, text will display without their corresponding icons when the icon
|
|
286
|
+
* collides with other symbols and the text does not.
|
|
234
287
|
*
|
|
235
288
|
* @requires iconImage, textField
|
|
236
289
|
*/
|
|
237
290
|
iconOptional?: Value<boolean, ["zoom"]>;
|
|
238
291
|
/**
|
|
239
|
-
* In combination with `symbolPlacement
|
|
292
|
+
* In combination with `symbolPlacement` , determines the rotation behavior of
|
|
293
|
+
* icons.
|
|
240
294
|
*
|
|
241
295
|
* @requires iconImage
|
|
242
296
|
*/
|
|
243
297
|
iconRotationAlignment?: Value<"map" | "viewport" | "auto", ["zoom"]>;
|
|
244
298
|
/**
|
|
245
|
-
* Scales the original size of the icon by the provided factor. The new pixel
|
|
299
|
+
* Scales the original size of the icon by the provided factor. The new pixel
|
|
300
|
+
* size of the image will be the original pixel size multiplied by `iconSize` .
|
|
301
|
+
* 1 is the original size; 3 triples the size of the image.
|
|
246
302
|
*
|
|
247
303
|
* @requires iconImage
|
|
248
304
|
*/
|
|
@@ -254,7 +310,8 @@ export interface SymbolLayerStyle {
|
|
|
254
310
|
*/
|
|
255
311
|
iconTextFit?: Value<"none" | "width" | "height" | "both", ["zoom"]>;
|
|
256
312
|
/**
|
|
257
|
-
* Size of the additional area added to dimensions determined by `iconTextFit
|
|
313
|
+
* Size of the additional area added to dimensions determined by `iconTextFit` ,
|
|
314
|
+
* in clockwise order: top, right, bottom, left.
|
|
258
315
|
*
|
|
259
316
|
* @requires iconImage, textField
|
|
260
317
|
*/
|
|
@@ -270,19 +327,25 @@ export interface SymbolLayerStyle {
|
|
|
270
327
|
*/
|
|
271
328
|
iconRotate?: Value<number, ["zoom", "feature"]>;
|
|
272
329
|
/**
|
|
273
|
-
* Size of additional area round the icon bounding box used for detecting symbol
|
|
330
|
+
* Size of additional area round the icon bounding box used for detecting symbol
|
|
331
|
+
* collisions.
|
|
274
332
|
*
|
|
275
333
|
* @requires iconImage
|
|
276
334
|
*/
|
|
277
335
|
iconPadding?: Value<number[], ["zoom", "feature"]>;
|
|
278
336
|
/**
|
|
279
|
-
* If true, the icon may be flipped to prevent it from being rendered
|
|
337
|
+
* If true, the icon may be flipped to prevent it from being rendered
|
|
338
|
+
* upsideDown.
|
|
280
339
|
*
|
|
281
340
|
* @requires iconImage
|
|
282
341
|
*/
|
|
283
342
|
iconKeepUpright?: Value<boolean, ["zoom"]>;
|
|
284
343
|
/**
|
|
285
|
-
* Offset distance of icon from its anchor. Positive values indicate right and
|
|
344
|
+
* Offset distance of icon from its anchor. Positive values indicate right and
|
|
345
|
+
* down, while negative values indicate left and up. Each component is
|
|
346
|
+
* multiplied by the value of `iconSize` to obtain the final offset in pixels.
|
|
347
|
+
* When combined with `iconRotate` the offset will be as if the rotated
|
|
348
|
+
* direction was up.
|
|
286
349
|
*
|
|
287
350
|
* @requires iconImage
|
|
288
351
|
*/
|
|
@@ -309,7 +372,8 @@ export interface SymbolLayerStyle {
|
|
|
309
372
|
*/
|
|
310
373
|
textPitchAlignment?: Value<"map" | "viewport" | "auto", ["zoom"]>;
|
|
311
374
|
/**
|
|
312
|
-
* In combination with `symbolPlacement
|
|
375
|
+
* In combination with `symbolPlacement` , determines the rotation behavior of
|
|
376
|
+
* the individual glyphs forming the text.
|
|
313
377
|
*
|
|
314
378
|
* @requires textField
|
|
315
379
|
*/
|
|
@@ -317,11 +381,15 @@ export interface SymbolLayerStyle {
|
|
|
317
381
|
"zoom"
|
|
318
382
|
]>;
|
|
319
383
|
/**
|
|
320
|
-
* Value to use for a text label. If a plain `string` is provided, it will be
|
|
384
|
+
* Value to use for a text label. If a plain `string` is provided, it will be
|
|
385
|
+
* treated as a `formatted` with default/inherited formatting options.
|
|
321
386
|
*/
|
|
322
387
|
textField?: Value<FormattedString, ["zoom", "feature"]>;
|
|
323
388
|
/**
|
|
324
|
-
* Fonts to use for displaying text. If the `glyphs` root property is specified,
|
|
389
|
+
* Fonts to use for displaying text. If the `glyphs` root property is specified,
|
|
390
|
+
* this array is joined together and interpreted as a font stack name.
|
|
391
|
+
* Otherwise, it is interpreted as a cascading fallback list of local font
|
|
392
|
+
* names.
|
|
325
393
|
*
|
|
326
394
|
* @requires textField
|
|
327
395
|
*/
|
|
@@ -360,13 +428,20 @@ export interface SymbolLayerStyle {
|
|
|
360
428
|
"feature"
|
|
361
429
|
]>;
|
|
362
430
|
/**
|
|
363
|
-
* Radial offset of text, in the direction of the symbol's anchor. Useful in
|
|
431
|
+
* Radial offset of text, in the direction of the symbol's anchor. Useful in
|
|
432
|
+
* combination with `textVariableAnchor` , which defaults to using the
|
|
433
|
+
* twoDimensional `textOffset` if present.
|
|
364
434
|
*
|
|
365
435
|
* @requires textField
|
|
366
436
|
*/
|
|
367
437
|
textRadialOffset?: Value<number, ["zoom", "feature"]>;
|
|
368
438
|
/**
|
|
369
|
-
* To increase the chance of placing highPriority labels on the map, you can
|
|
439
|
+
* To increase the chance of placing highPriority labels on the map, you can
|
|
440
|
+
* provide an array of `textAnchor` locations: the renderer will attempt to
|
|
441
|
+
* place the label at each location, in order, before moving onto the next
|
|
442
|
+
* label. Use `textJustify: auto` to choose justification based on anchor
|
|
443
|
+
* position. To apply an offset, use the `textRadialOffset` or the
|
|
444
|
+
* twoDimensional `textOffset` .
|
|
370
445
|
*
|
|
371
446
|
* @requires textField
|
|
372
447
|
*/
|
|
@@ -391,7 +466,12 @@ export interface SymbolLayerStyle {
|
|
|
391
466
|
*/
|
|
392
467
|
textMaxAngle?: Value<number, ["zoom"]>;
|
|
393
468
|
/**
|
|
394
|
-
* The property allows control over a symbol's orientation. Note that the
|
|
469
|
+
* The property allows control over a symbol's orientation. Note that the
|
|
470
|
+
* property values act as a hint, so that a symbol whose language doesn’t
|
|
471
|
+
* support the provided orientation will be laid out in its natural orientation.
|
|
472
|
+
* Example: English point symbol will be rendered horizontally even if array
|
|
473
|
+
* value contains single 'vertical' enum value. The order of elements in an
|
|
474
|
+
* array define priority order for the placement of an orientation variant.
|
|
395
475
|
*
|
|
396
476
|
* @requires textField
|
|
397
477
|
*/
|
|
@@ -403,19 +483,22 @@ export interface SymbolLayerStyle {
|
|
|
403
483
|
*/
|
|
404
484
|
textRotate?: Value<number, ["zoom", "feature"]>;
|
|
405
485
|
/**
|
|
406
|
-
* Size of the additional area around the text bounding box used for detecting
|
|
486
|
+
* Size of the additional area around the text bounding box used for detecting
|
|
487
|
+
* symbol collisions.
|
|
407
488
|
*
|
|
408
489
|
* @requires textField
|
|
409
490
|
*/
|
|
410
491
|
textPadding?: Value<number, ["zoom"]>;
|
|
411
492
|
/**
|
|
412
|
-
* If true, the text may be flipped vertically to prevent it from being rendered
|
|
493
|
+
* If true, the text may be flipped vertically to prevent it from being rendered
|
|
494
|
+
* upsideDown.
|
|
413
495
|
*
|
|
414
496
|
* @requires textField
|
|
415
497
|
*/
|
|
416
498
|
textKeepUpright?: Value<boolean, ["zoom"]>;
|
|
417
499
|
/**
|
|
418
|
-
* Specifies how to capitalize text, similar to the CSS `textTransform`
|
|
500
|
+
* Specifies how to capitalize text, similar to the CSS `textTransform`
|
|
501
|
+
* property.
|
|
419
502
|
*
|
|
420
503
|
* @requires textField
|
|
421
504
|
*/
|
|
@@ -424,7 +507,11 @@ export interface SymbolLayerStyle {
|
|
|
424
507
|
"feature"
|
|
425
508
|
]>;
|
|
426
509
|
/**
|
|
427
|
-
* Offset distance of text from its anchor. Positive values indicate right and
|
|
510
|
+
* Offset distance of text from its anchor. Positive values indicate right and
|
|
511
|
+
* down, while negative values indicate left and up. If used with
|
|
512
|
+
* textVariableAnchor, input values will be taken as absolute values. Offsets
|
|
513
|
+
* along the x and yAxis will be applied automatically based on the anchor
|
|
514
|
+
* position.
|
|
428
515
|
*
|
|
429
516
|
* @requires textField
|
|
430
517
|
*
|
|
@@ -432,7 +519,8 @@ export interface SymbolLayerStyle {
|
|
|
432
519
|
*/
|
|
433
520
|
textOffset?: Value<number[], ["zoom", "feature"]>;
|
|
434
521
|
/**
|
|
435
|
-
* If true, the text will be visible even if it collides with other previously
|
|
522
|
+
* If true, the text will be visible even if it collides with other previously
|
|
523
|
+
* drawn symbols.
|
|
436
524
|
*
|
|
437
525
|
* @requires textField
|
|
438
526
|
*
|
|
@@ -446,7 +534,8 @@ export interface SymbolLayerStyle {
|
|
|
446
534
|
*/
|
|
447
535
|
textIgnorePlacement?: Value<boolean, ["zoom"]>;
|
|
448
536
|
/**
|
|
449
|
-
* If true, icons will display without their corresponding text when the text
|
|
537
|
+
* If true, icons will display without their corresponding text when the text
|
|
538
|
+
* collides with other symbols and the icon does not.
|
|
450
539
|
*
|
|
451
540
|
* @requires textField, iconImage
|
|
452
541
|
*/
|
|
@@ -462,7 +551,7 @@ export interface SymbolLayerStyle {
|
|
|
462
551
|
*/
|
|
463
552
|
iconOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
464
553
|
/**
|
|
465
|
-
* The transition affecting any changes to this layer
|
|
554
|
+
* The transition affecting any changes to this layer's iconOpacity property.
|
|
466
555
|
*/
|
|
467
556
|
iconOpacityTransition?: Transition;
|
|
468
557
|
/**
|
|
@@ -472,7 +561,7 @@ export interface SymbolLayerStyle {
|
|
|
472
561
|
*/
|
|
473
562
|
iconColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
474
563
|
/**
|
|
475
|
-
* The transition affecting any changes to this layer
|
|
564
|
+
* The transition affecting any changes to this layer's iconColor property.
|
|
476
565
|
*/
|
|
477
566
|
iconColorTransition?: Transition;
|
|
478
567
|
/**
|
|
@@ -482,19 +571,21 @@ export interface SymbolLayerStyle {
|
|
|
482
571
|
*/
|
|
483
572
|
iconHaloColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
484
573
|
/**
|
|
485
|
-
* The transition affecting any changes to this layer
|
|
574
|
+
* The transition affecting any changes to this layer's iconHaloColor property.
|
|
486
575
|
*/
|
|
487
576
|
iconHaloColorTransition?: Transition;
|
|
488
577
|
/**
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
578
|
+
* Distance of halo to the icon outline.
|
|
579
|
+
*
|
|
580
|
+
* The unit is in pixels only for SDF sprites that were created with a blur
|
|
581
|
+
* radius of 8, multiplied by the display density. I.e., the radius needs to be
|
|
582
|
+
* 16 for `@2x` sprites, etc.
|
|
583
|
+
*
|
|
584
|
+
* @requires iconImage
|
|
585
|
+
*/
|
|
495
586
|
iconHaloWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
496
587
|
/**
|
|
497
|
-
* The transition affecting any changes to this layer
|
|
588
|
+
* The transition affecting any changes to this layer's iconHaloWidth property.
|
|
498
589
|
*/
|
|
499
590
|
iconHaloWidthTransition?: Transition;
|
|
500
591
|
/**
|
|
@@ -504,17 +595,19 @@ export interface SymbolLayerStyle {
|
|
|
504
595
|
*/
|
|
505
596
|
iconHaloBlur?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
506
597
|
/**
|
|
507
|
-
* The transition affecting any changes to this layer
|
|
598
|
+
* The transition affecting any changes to this layer's iconHaloBlur property.
|
|
508
599
|
*/
|
|
509
600
|
iconHaloBlurTransition?: Transition;
|
|
510
601
|
/**
|
|
511
|
-
* Distance that the icon's anchor is moved from its original placement.
|
|
602
|
+
* Distance that the icon's anchor is moved from its original placement.
|
|
603
|
+
* Positive values indicate right and down, while negative values indicate left
|
|
604
|
+
* and up.
|
|
512
605
|
*
|
|
513
606
|
* @requires iconImage
|
|
514
607
|
*/
|
|
515
608
|
iconTranslate?: Value<Translation, ["zoom"]>;
|
|
516
609
|
/**
|
|
517
|
-
* The transition affecting any changes to this layer
|
|
610
|
+
* The transition affecting any changes to this layer's iconTranslate property.
|
|
518
611
|
*/
|
|
519
612
|
iconTranslateTransition?: Transition;
|
|
520
613
|
/**
|
|
@@ -530,7 +623,7 @@ export interface SymbolLayerStyle {
|
|
|
530
623
|
*/
|
|
531
624
|
textOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
532
625
|
/**
|
|
533
|
-
* The transition affecting any changes to this layer
|
|
626
|
+
* The transition affecting any changes to this layer's textOpacity property.
|
|
534
627
|
*/
|
|
535
628
|
textOpacityTransition?: Transition;
|
|
536
629
|
/**
|
|
@@ -540,7 +633,7 @@ export interface SymbolLayerStyle {
|
|
|
540
633
|
*/
|
|
541
634
|
textColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
542
635
|
/**
|
|
543
|
-
* The transition affecting any changes to this layer
|
|
636
|
+
* The transition affecting any changes to this layer's textColor property.
|
|
544
637
|
*/
|
|
545
638
|
textColorTransition?: Transition;
|
|
546
639
|
/**
|
|
@@ -550,17 +643,18 @@ export interface SymbolLayerStyle {
|
|
|
550
643
|
*/
|
|
551
644
|
textHaloColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
552
645
|
/**
|
|
553
|
-
* The transition affecting any changes to this layer
|
|
646
|
+
* The transition affecting any changes to this layer's textHaloColor property.
|
|
554
647
|
*/
|
|
555
648
|
textHaloColorTransition?: Transition;
|
|
556
649
|
/**
|
|
557
|
-
* Distance of halo to the font outline. Max text halo width is 1/4 of the
|
|
650
|
+
* Distance of halo to the font outline. Max text halo width is 1/4 of the
|
|
651
|
+
* fontSize.
|
|
558
652
|
*
|
|
559
653
|
* @requires textField
|
|
560
654
|
*/
|
|
561
655
|
textHaloWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
562
656
|
/**
|
|
563
|
-
* The transition affecting any changes to this layer
|
|
657
|
+
* The transition affecting any changes to this layer's textHaloWidth property.
|
|
564
658
|
*/
|
|
565
659
|
textHaloWidthTransition?: Transition;
|
|
566
660
|
/**
|
|
@@ -570,17 +664,19 @@ export interface SymbolLayerStyle {
|
|
|
570
664
|
*/
|
|
571
665
|
textHaloBlur?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
572
666
|
/**
|
|
573
|
-
* The transition affecting any changes to this layer
|
|
667
|
+
* The transition affecting any changes to this layer's textHaloBlur property.
|
|
574
668
|
*/
|
|
575
669
|
textHaloBlurTransition?: Transition;
|
|
576
670
|
/**
|
|
577
|
-
* Distance that the text's anchor is moved from its original placement.
|
|
671
|
+
* Distance that the text's anchor is moved from its original placement.
|
|
672
|
+
* Positive values indicate right and down, while negative values indicate left
|
|
673
|
+
* and up.
|
|
578
674
|
*
|
|
579
675
|
* @requires textField
|
|
580
676
|
*/
|
|
581
677
|
textTranslate?: Value<Translation, ["zoom"]>;
|
|
582
678
|
/**
|
|
583
|
-
* The transition affecting any changes to this layer
|
|
679
|
+
* The transition affecting any changes to this layer's textTranslate property.
|
|
584
680
|
*/
|
|
585
681
|
textTranslateTransition?: Transition;
|
|
586
682
|
/**
|
|
@@ -590,9 +686,13 @@ export interface SymbolLayerStyle {
|
|
|
590
686
|
*/
|
|
591
687
|
textTranslateAnchor?: Value<"map" | "viewport", ["zoom"]>;
|
|
592
688
|
}
|
|
689
|
+
/**
|
|
690
|
+
* @deprecated
|
|
691
|
+
*/
|
|
593
692
|
export interface CircleLayerStyle {
|
|
594
693
|
/**
|
|
595
|
-
* Sorts features in ascending order based on this value. Features with a higher
|
|
694
|
+
* Sorts features in ascending order based on this value. Features with a higher
|
|
695
|
+
* sort key will appear above features with a lower sort key.
|
|
596
696
|
*/
|
|
597
697
|
circleSortKey?: Value<number, ["zoom", "feature"]>;
|
|
598
698
|
/**
|
|
@@ -604,7 +704,7 @@ export interface CircleLayerStyle {
|
|
|
604
704
|
*/
|
|
605
705
|
circleRadius?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
606
706
|
/**
|
|
607
|
-
* The transition affecting any changes to this layer
|
|
707
|
+
* The transition affecting any changes to this layer's circleRadius property.
|
|
608
708
|
*/
|
|
609
709
|
circleRadiusTransition?: Transition;
|
|
610
710
|
/**
|
|
@@ -612,15 +712,16 @@ export interface CircleLayerStyle {
|
|
|
612
712
|
*/
|
|
613
713
|
circleColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
614
714
|
/**
|
|
615
|
-
* The transition affecting any changes to this layer
|
|
715
|
+
* The transition affecting any changes to this layer's circleColor property.
|
|
616
716
|
*/
|
|
617
717
|
circleColorTransition?: Transition;
|
|
618
718
|
/**
|
|
619
|
-
* Amount to blur the circle. 1 blurs the circle such that only the centerpoint
|
|
719
|
+
* Amount to blur the circle. 1 blurs the circle such that only the centerpoint
|
|
720
|
+
* is full opacity.
|
|
620
721
|
*/
|
|
621
722
|
circleBlur?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
622
723
|
/**
|
|
623
|
-
* The transition affecting any changes to this layer
|
|
724
|
+
* The transition affecting any changes to this layer's circleBlur property.
|
|
624
725
|
*/
|
|
625
726
|
circleBlurTransition?: Transition;
|
|
626
727
|
/**
|
|
@@ -628,15 +729,17 @@ export interface CircleLayerStyle {
|
|
|
628
729
|
*/
|
|
629
730
|
circleOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
630
731
|
/**
|
|
631
|
-
* The transition affecting any changes to this layer
|
|
732
|
+
* The transition affecting any changes to this layer's circleOpacity property.
|
|
632
733
|
*/
|
|
633
734
|
circleOpacityTransition?: Transition;
|
|
634
735
|
/**
|
|
635
|
-
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
736
|
+
* The geometry's offset. Values are [x, y] where negatives indicate left and
|
|
737
|
+
* up, respectively.
|
|
636
738
|
*/
|
|
637
739
|
circleTranslate?: Value<Translation, ["zoom"]>;
|
|
638
740
|
/**
|
|
639
|
-
* The transition affecting any changes to this layer
|
|
741
|
+
* The transition affecting any changes to this layer's circleTranslate
|
|
742
|
+
* property.
|
|
640
743
|
*/
|
|
641
744
|
circleTranslateTransition?: Transition;
|
|
642
745
|
/**
|
|
@@ -654,11 +757,13 @@ export interface CircleLayerStyle {
|
|
|
654
757
|
*/
|
|
655
758
|
circlePitchAlignment?: Value<"map" | "viewport", ["zoom"]>;
|
|
656
759
|
/**
|
|
657
|
-
* The width of the circle's stroke. Strokes are placed outside of the
|
|
760
|
+
* The width of the circle's stroke. Strokes are placed outside of the
|
|
761
|
+
* `circleRadius` .
|
|
658
762
|
*/
|
|
659
763
|
circleStrokeWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
660
764
|
/**
|
|
661
|
-
* The transition affecting any changes to this layer
|
|
765
|
+
* The transition affecting any changes to this layer's circleStrokeWidth
|
|
766
|
+
* property.
|
|
662
767
|
*/
|
|
663
768
|
circleStrokeWidthTransition?: Transition;
|
|
664
769
|
/**
|
|
@@ -666,7 +771,8 @@ export interface CircleLayerStyle {
|
|
|
666
771
|
*/
|
|
667
772
|
circleStrokeColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
668
773
|
/**
|
|
669
|
-
* The transition affecting any changes to this layer
|
|
774
|
+
* The transition affecting any changes to this layer's circleStrokeColor
|
|
775
|
+
* property.
|
|
670
776
|
*/
|
|
671
777
|
circleStrokeColorTransition?: Transition;
|
|
672
778
|
/**
|
|
@@ -674,37 +780,47 @@ export interface CircleLayerStyle {
|
|
|
674
780
|
*/
|
|
675
781
|
circleStrokeOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
676
782
|
/**
|
|
677
|
-
* The transition affecting any changes to this layer
|
|
783
|
+
* The transition affecting any changes to this layer's circleStrokeOpacity
|
|
784
|
+
* property.
|
|
678
785
|
*/
|
|
679
786
|
circleStrokeOpacityTransition?: Transition;
|
|
680
787
|
}
|
|
788
|
+
/**
|
|
789
|
+
* @deprecated
|
|
790
|
+
*/
|
|
681
791
|
export interface HeatmapLayerStyle {
|
|
682
792
|
/**
|
|
683
793
|
* Whether this layer is displayed.
|
|
684
794
|
*/
|
|
685
795
|
visibility?: Value<"visible" | "none", ["global-state"]>;
|
|
686
796
|
/**
|
|
687
|
-
* Radius of influence of one heatmap point in pixels. Increasing the value
|
|
797
|
+
* Radius of influence of one heatmap point in pixels. Increasing the value
|
|
798
|
+
* makes the heatmap smoother, but less detailed.
|
|
688
799
|
*/
|
|
689
800
|
heatmapRadius?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
690
801
|
/**
|
|
691
|
-
* The transition affecting any changes to this layer
|
|
802
|
+
* The transition affecting any changes to this layer's heatmapRadius property.
|
|
692
803
|
*/
|
|
693
804
|
heatmapRadiusTransition?: Transition;
|
|
694
805
|
/**
|
|
695
|
-
* A measure of how much an individual point contributes to the heatmap. A value
|
|
806
|
+
* A measure of how much an individual point contributes to the heatmap. A value
|
|
807
|
+
* of 10 would be equivalent to having 10 points of weight 1 in the same spot.
|
|
808
|
+
* Especially useful when combined with clustering.
|
|
696
809
|
*/
|
|
697
810
|
heatmapWeight?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
698
811
|
/**
|
|
699
|
-
* Similar to `heatmapWeight` but controls the intensity of the heatmap
|
|
812
|
+
* Similar to `heatmapWeight` but controls the intensity of the heatmap
|
|
813
|
+
* globally. Primarily used for adjusting the heatmap based on zoom level.
|
|
700
814
|
*/
|
|
701
815
|
heatmapIntensity?: Value<number, ["zoom"]>;
|
|
702
816
|
/**
|
|
703
|
-
* The transition affecting any changes to this layer
|
|
817
|
+
* The transition affecting any changes to this layer's heatmapIntensity
|
|
818
|
+
* property.
|
|
704
819
|
*/
|
|
705
820
|
heatmapIntensityTransition?: Transition;
|
|
706
821
|
/**
|
|
707
|
-
* Defines the color of each pixel based on its density value in a heatmap.
|
|
822
|
+
* Defines the color of each pixel based on its density value in a heatmap.
|
|
823
|
+
* Should be an expression that uses `["heatmapDensity"]` as input.
|
|
708
824
|
*/
|
|
709
825
|
heatmapColor?: Value<string, ["heatmap-density"]>;
|
|
710
826
|
/**
|
|
@@ -712,39 +828,51 @@ export interface HeatmapLayerStyle {
|
|
|
712
828
|
*/
|
|
713
829
|
heatmapOpacity?: Value<number, ["zoom"]>;
|
|
714
830
|
/**
|
|
715
|
-
* The transition affecting any changes to this layer
|
|
831
|
+
* The transition affecting any changes to this layer's heatmapOpacity property.
|
|
716
832
|
*/
|
|
717
833
|
heatmapOpacityTransition?: Transition;
|
|
718
834
|
}
|
|
835
|
+
/**
|
|
836
|
+
* @deprecated
|
|
837
|
+
*/
|
|
719
838
|
export interface FillExtrusionLayerStyle {
|
|
720
839
|
/**
|
|
721
840
|
* Whether this layer is displayed.
|
|
722
841
|
*/
|
|
723
842
|
visibility?: Value<"visible" | "none", ["global-state"]>;
|
|
724
843
|
/**
|
|
725
|
-
* The opacity of the entire fill extrusion layer. This is rendered on a
|
|
844
|
+
* The opacity of the entire fill extrusion layer. This is rendered on a
|
|
845
|
+
* perLayer, not perFeature, basis, and dataDriven styling is not available.
|
|
726
846
|
*/
|
|
727
847
|
fillExtrusionOpacity?: Value<number, ["zoom"]>;
|
|
728
848
|
/**
|
|
729
|
-
* The transition affecting any changes to this layer
|
|
849
|
+
* The transition affecting any changes to this layer's fillExtrusionOpacity
|
|
850
|
+
* property.
|
|
730
851
|
*/
|
|
731
852
|
fillExtrusionOpacityTransition?: Transition;
|
|
732
853
|
/**
|
|
733
|
-
* The base color of the extruded fill. The extrusion's surfaces will be shaded
|
|
854
|
+
* The base color of the extruded fill. The extrusion's surfaces will be shaded
|
|
855
|
+
* differently based on this color in combination with the root `light`
|
|
856
|
+
* settings. If this color is specified as `rgba` with an alpha component, the
|
|
857
|
+
* alpha component will be ignored; use `fillExtrusionOpacity` to set layer
|
|
858
|
+
* opacity.
|
|
734
859
|
*
|
|
735
860
|
* @disabledBy fillExtrusionPattern
|
|
736
861
|
*/
|
|
737
862
|
fillExtrusionColor?: Value<string, ["zoom", "feature", "feature-state"]>;
|
|
738
863
|
/**
|
|
739
|
-
* The transition affecting any changes to this layer
|
|
864
|
+
* The transition affecting any changes to this layer's fillExtrusionColor
|
|
865
|
+
* property.
|
|
740
866
|
*/
|
|
741
867
|
fillExtrusionColorTransition?: Transition;
|
|
742
868
|
/**
|
|
743
|
-
* The geometry's offset. Values are [x, y] where negatives indicate left and up
|
|
869
|
+
* The geometry's offset. Values are [x, y] where negatives indicate left and up
|
|
870
|
+
* (on the flat plane), respectively.
|
|
744
871
|
*/
|
|
745
872
|
fillExtrusionTranslate?: Value<Translation, ["zoom"]>;
|
|
746
873
|
/**
|
|
747
|
-
* The transition affecting any changes to this layer
|
|
874
|
+
* The transition affecting any changes to this layer's fillExtrusionTranslate
|
|
875
|
+
* property.
|
|
748
876
|
*/
|
|
749
877
|
fillExtrusionTranslateTransition?: Transition;
|
|
750
878
|
/**
|
|
@@ -754,11 +882,15 @@ export interface FillExtrusionLayerStyle {
|
|
|
754
882
|
*/
|
|
755
883
|
fillExtrusionTranslateAnchor?: Value<"map" | "viewport", ["zoom"]>;
|
|
756
884
|
/**
|
|
757
|
-
* Name of image in sprite to use for drawing images on extruded fills. For
|
|
885
|
+
* Name of image in sprite to use for drawing images on extruded fills. For
|
|
886
|
+
* seamless patterns, image width and height must be a factor of two (2, 4, 8,
|
|
887
|
+
* ..., 512). Note that zoomDependent expressions will be evaluated only at
|
|
888
|
+
* integer zoom levels.
|
|
758
889
|
*/
|
|
759
890
|
fillExtrusionPattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
|
|
760
891
|
/**
|
|
761
|
-
* The transition affecting any changes to this layer
|
|
892
|
+
* The transition affecting any changes to this layer's fillExtrusionPattern
|
|
893
|
+
* property.
|
|
762
894
|
*/
|
|
763
895
|
fillExtrusionPatternTransition?: Transition;
|
|
764
896
|
/**
|
|
@@ -766,24 +898,31 @@ export interface FillExtrusionLayerStyle {
|
|
|
766
898
|
*/
|
|
767
899
|
fillExtrusionHeight?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
768
900
|
/**
|
|
769
|
-
* The transition affecting any changes to this layer
|
|
901
|
+
* The transition affecting any changes to this layer's fillExtrusionHeight
|
|
902
|
+
* property.
|
|
770
903
|
*/
|
|
771
904
|
fillExtrusionHeightTransition?: Transition;
|
|
772
905
|
/**
|
|
773
|
-
* The height with which to extrude the base of this layer. Must be less than or
|
|
906
|
+
* The height with which to extrude the base of this layer. Must be less than or
|
|
907
|
+
* equal to `fillExtrusionHeight` .
|
|
774
908
|
*
|
|
775
909
|
* @requires fillExtrusionHeight
|
|
776
910
|
*/
|
|
777
911
|
fillExtrusionBase?: Value<number, ["zoom", "feature", "feature-state"]>;
|
|
778
912
|
/**
|
|
779
|
-
* The transition affecting any changes to this layer
|
|
913
|
+
* The transition affecting any changes to this layer's fillExtrusionBase
|
|
914
|
+
* property.
|
|
780
915
|
*/
|
|
781
916
|
fillExtrusionBaseTransition?: Transition;
|
|
782
917
|
/**
|
|
783
|
-
* Whether to apply a vertical gradient to the sides of a fillExtrusion layer.
|
|
918
|
+
* Whether to apply a vertical gradient to the sides of a fillExtrusion layer.
|
|
919
|
+
* If true, sides will be shaded slightly darker farther down.
|
|
784
920
|
*/
|
|
785
921
|
fillExtrusionVerticalGradient?: Value<boolean, ["zoom"]>;
|
|
786
922
|
}
|
|
923
|
+
/**
|
|
924
|
+
* @deprecated
|
|
925
|
+
*/
|
|
787
926
|
export interface RasterLayerStyle {
|
|
788
927
|
/**
|
|
789
928
|
* Whether this layer is displayed.
|
|
@@ -794,7 +933,7 @@ export interface RasterLayerStyle {
|
|
|
794
933
|
*/
|
|
795
934
|
rasterOpacity?: Value<number, ["zoom"]>;
|
|
796
935
|
/**
|
|
797
|
-
* The transition affecting any changes to this layer
|
|
936
|
+
* The transition affecting any changes to this layer's rasterOpacity property.
|
|
798
937
|
*/
|
|
799
938
|
rasterOpacityTransition?: Transition;
|
|
800
939
|
/**
|
|
@@ -802,23 +941,28 @@ export interface RasterLayerStyle {
|
|
|
802
941
|
*/
|
|
803
942
|
rasterHueRotate?: Value<number, ["zoom"]>;
|
|
804
943
|
/**
|
|
805
|
-
* The transition affecting any changes to this layer
|
|
944
|
+
* The transition affecting any changes to this layer's rasterHueRotate
|
|
945
|
+
* property.
|
|
806
946
|
*/
|
|
807
947
|
rasterHueRotateTransition?: Transition;
|
|
808
948
|
/**
|
|
809
|
-
* Increase or reduce the brightness of the image. The value is the minimum
|
|
949
|
+
* Increase or reduce the brightness of the image. The value is the minimum
|
|
950
|
+
* brightness.
|
|
810
951
|
*/
|
|
811
952
|
rasterBrightnessMin?: Value<number, ["zoom"]>;
|
|
812
953
|
/**
|
|
813
|
-
* The transition affecting any changes to this layer
|
|
954
|
+
* The transition affecting any changes to this layer's rasterBrightnessMin
|
|
955
|
+
* property.
|
|
814
956
|
*/
|
|
815
957
|
rasterBrightnessMinTransition?: Transition;
|
|
816
958
|
/**
|
|
817
|
-
* Increase or reduce the brightness of the image. The value is the maximum
|
|
959
|
+
* Increase or reduce the brightness of the image. The value is the maximum
|
|
960
|
+
* brightness.
|
|
818
961
|
*/
|
|
819
962
|
rasterBrightnessMax?: Value<number, ["zoom"]>;
|
|
820
963
|
/**
|
|
821
|
-
* The transition affecting any changes to this layer
|
|
964
|
+
* The transition affecting any changes to this layer's rasterBrightnessMax
|
|
965
|
+
* property.
|
|
822
966
|
*/
|
|
823
967
|
rasterBrightnessMaxTransition?: Transition;
|
|
824
968
|
/**
|
|
@@ -826,7 +970,8 @@ export interface RasterLayerStyle {
|
|
|
826
970
|
*/
|
|
827
971
|
rasterSaturation?: Value<number, ["zoom"]>;
|
|
828
972
|
/**
|
|
829
|
-
* The transition affecting any changes to this layer
|
|
973
|
+
* The transition affecting any changes to this layer's rasterSaturation
|
|
974
|
+
* property.
|
|
830
975
|
*/
|
|
831
976
|
rasterSaturationTransition?: Transition;
|
|
832
977
|
/**
|
|
@@ -834,25 +979,35 @@ export interface RasterLayerStyle {
|
|
|
834
979
|
*/
|
|
835
980
|
rasterContrast?: Value<number, ["zoom"]>;
|
|
836
981
|
/**
|
|
837
|
-
* The transition affecting any changes to this layer
|
|
982
|
+
* The transition affecting any changes to this layer's rasterContrast property.
|
|
838
983
|
*/
|
|
839
984
|
rasterContrastTransition?: Transition;
|
|
840
985
|
/**
|
|
841
|
-
* The resampling/interpolation method to use for overscaling, also known as
|
|
986
|
+
* The resampling/interpolation method to use for overscaling, also known as
|
|
987
|
+
* texture magnification filter. It is advised to use the generic `resampling`
|
|
988
|
+
* paint property instead.
|
|
842
989
|
*/
|
|
843
990
|
rasterResampling?: Value<"linear" | "nearest", ["zoom"]>;
|
|
844
991
|
/**
|
|
845
|
-
* Fade duration when a new tile is added, or when a video is started or its
|
|
992
|
+
* Fade duration when a new tile is added, or when a video is started or its
|
|
993
|
+
* coordinates are updated.
|
|
846
994
|
*/
|
|
847
995
|
rasterFadeDuration?: Value<number, ["zoom"]>;
|
|
848
996
|
}
|
|
997
|
+
/**
|
|
998
|
+
* @deprecated
|
|
999
|
+
*/
|
|
849
1000
|
export interface HillshadeLayerStyle {
|
|
850
1001
|
/**
|
|
851
1002
|
* Whether this layer is displayed.
|
|
852
1003
|
*/
|
|
853
1004
|
visibility?: Value<"visible" | "none", ["global-state"]>;
|
|
854
1005
|
/**
|
|
855
|
-
* The direction of the light source(s) used to generate the hillshading with 0
|
|
1006
|
+
* The direction of the light source(s) used to generate the hillshading with 0
|
|
1007
|
+
* as the top of the viewport if `hillshadeIlluminationAnchor` is set to
|
|
1008
|
+
* `viewport` and due north if `hillshadeIlluminationAnchor` is set to `map` .
|
|
1009
|
+
* Only when `hillshadeMethod` is set to `multidirectional` can you specify
|
|
1010
|
+
* multiple light sources.
|
|
856
1011
|
*/
|
|
857
1012
|
hillshadeIlluminationDirection?: Value<number, ["zoom"]>;
|
|
858
1013
|
/**
|
|
@@ -864,34 +1019,46 @@ export interface HillshadeLayerStyle {
|
|
|
864
1019
|
*/
|
|
865
1020
|
hillshadeExaggeration?: Value<number, ["zoom"]>;
|
|
866
1021
|
/**
|
|
867
|
-
* The transition affecting any changes to this layer
|
|
1022
|
+
* The transition affecting any changes to this layer's hillshadeExaggeration
|
|
1023
|
+
* property.
|
|
868
1024
|
*/
|
|
869
1025
|
hillshadeExaggerationTransition?: Transition;
|
|
870
1026
|
/**
|
|
871
|
-
* The shading color of areas that face away from the light source(s). Only when
|
|
1027
|
+
* The shading color of areas that face away from the light source(s). Only when
|
|
1028
|
+
* `hillshadeMethod` is set to `multidirectional` can you specify multiple light
|
|
1029
|
+
* sources.
|
|
872
1030
|
*/
|
|
873
1031
|
hillshadeShadowColor?: Value<string, ["zoom"]>;
|
|
874
1032
|
/**
|
|
875
|
-
* The transition affecting any changes to this layer
|
|
1033
|
+
* The transition affecting any changes to this layer's hillshadeShadowColor
|
|
1034
|
+
* property.
|
|
876
1035
|
*/
|
|
877
1036
|
hillshadeShadowColorTransition?: Transition;
|
|
878
1037
|
/**
|
|
879
|
-
* The shading color of areas that faces towards the light source(s). Only when
|
|
1038
|
+
* The shading color of areas that faces towards the light source(s). Only when
|
|
1039
|
+
* `hillshadeMethod` is set to `multidirectional` can you specify multiple light
|
|
1040
|
+
* sources.
|
|
880
1041
|
*/
|
|
881
1042
|
hillshadeHighlightColor?: Value<string, ["zoom"]>;
|
|
882
1043
|
/**
|
|
883
|
-
* The transition affecting any changes to this layer
|
|
1044
|
+
* The transition affecting any changes to this layer's hillshadeHighlightColor
|
|
1045
|
+
* property.
|
|
884
1046
|
*/
|
|
885
1047
|
hillshadeHighlightColorTransition?: Transition;
|
|
886
1048
|
/**
|
|
887
|
-
* The shading color used to accentuate rugged terrain like sharp cliffs and
|
|
1049
|
+
* The shading color used to accentuate rugged terrain like sharp cliffs and
|
|
1050
|
+
* gorges.
|
|
888
1051
|
*/
|
|
889
1052
|
hillshadeAccentColor?: Value<string, ["zoom"]>;
|
|
890
1053
|
/**
|
|
891
|
-
* The transition affecting any changes to this layer
|
|
1054
|
+
* The transition affecting any changes to this layer's hillshadeAccentColor
|
|
1055
|
+
* property.
|
|
892
1056
|
*/
|
|
893
1057
|
hillshadeAccentColorTransition?: Transition;
|
|
894
1058
|
}
|
|
1059
|
+
/**
|
|
1060
|
+
* @deprecated
|
|
1061
|
+
*/
|
|
895
1062
|
export interface BackgroundLayerStyle {
|
|
896
1063
|
/**
|
|
897
1064
|
* Whether this layer is displayed.
|
|
@@ -904,15 +1071,20 @@ export interface BackgroundLayerStyle {
|
|
|
904
1071
|
*/
|
|
905
1072
|
backgroundColor?: Value<string, ["zoom"]>;
|
|
906
1073
|
/**
|
|
907
|
-
* The transition affecting any changes to this layer
|
|
1074
|
+
* The transition affecting any changes to this layer's backgroundColor
|
|
1075
|
+
* property.
|
|
908
1076
|
*/
|
|
909
1077
|
backgroundColorTransition?: Transition;
|
|
910
1078
|
/**
|
|
911
|
-
* Name of image in sprite to use for drawing an image background. For seamless
|
|
1079
|
+
* Name of image in sprite to use for drawing an image background. For seamless
|
|
1080
|
+
* patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
|
|
1081
|
+
* Note that zoomDependent expressions will be evaluated only at integer zoom
|
|
1082
|
+
* levels.
|
|
912
1083
|
*/
|
|
913
1084
|
backgroundPattern?: Value<ResolvedImageType, ["zoom"]>;
|
|
914
1085
|
/**
|
|
915
|
-
* The transition affecting any changes to this layer
|
|
1086
|
+
* The transition affecting any changes to this layer's backgroundPattern
|
|
1087
|
+
* property.
|
|
916
1088
|
*/
|
|
917
1089
|
backgroundPatternTransition?: Transition;
|
|
918
1090
|
/**
|
|
@@ -920,21 +1092,32 @@ export interface BackgroundLayerStyle {
|
|
|
920
1092
|
*/
|
|
921
1093
|
backgroundOpacity?: Value<number, ["zoom"]>;
|
|
922
1094
|
/**
|
|
923
|
-
* The transition affecting any changes to this layer
|
|
1095
|
+
* The transition affecting any changes to this layer's backgroundOpacity
|
|
1096
|
+
* property.
|
|
924
1097
|
*/
|
|
925
1098
|
backgroundOpacityTransition?: Transition;
|
|
926
1099
|
}
|
|
1100
|
+
/**
|
|
1101
|
+
* @deprecated
|
|
1102
|
+
*/
|
|
927
1103
|
export interface LightLayerStyle {
|
|
928
1104
|
/**
|
|
929
1105
|
* Whether extruded geometries are lit relative to the map or viewport.
|
|
930
1106
|
*/
|
|
931
1107
|
anchor?: Value<"map" | "viewport", ["zoom"]>;
|
|
932
1108
|
/**
|
|
933
|
-
* Position of the light source relative to lit (extruded) geometries, in [r
|
|
1109
|
+
* Position of the light source relative to lit (extruded) geometries, in [r
|
|
1110
|
+
* radial coordinate, a azimuthal angle, p polar angle] where r indicates the
|
|
1111
|
+
* distance from the center of the base of an object to its light, a indicates
|
|
1112
|
+
* the position of the light relative to 0° (0° when `light.anchor` is set to
|
|
1113
|
+
* `viewport` corresponds to the top of the viewport, or 0° when `light.anchor`
|
|
1114
|
+
* is set to `map` corresponds to due north, and degrees proceed clockwise),
|
|
1115
|
+
* and p indicates the height of the light (from 0°, directly above, to 180°,
|
|
1116
|
+
* directly below).
|
|
934
1117
|
*/
|
|
935
1118
|
position?: Value<number[], ["zoom"]>;
|
|
936
1119
|
/**
|
|
937
|
-
* The transition affecting any changes to this layer
|
|
1120
|
+
* The transition affecting any changes to this layer's position property.
|
|
938
1121
|
*/
|
|
939
1122
|
positionTransition?: Transition;
|
|
940
1123
|
/**
|
|
@@ -942,15 +1125,16 @@ export interface LightLayerStyle {
|
|
|
942
1125
|
*/
|
|
943
1126
|
color?: Value<string, ["zoom"]>;
|
|
944
1127
|
/**
|
|
945
|
-
* The transition affecting any changes to this layer
|
|
1128
|
+
* The transition affecting any changes to this layer's color property.
|
|
946
1129
|
*/
|
|
947
1130
|
colorTransition?: Transition;
|
|
948
1131
|
/**
|
|
949
|
-
* Intensity of lighting (on a scale from 0 to 1). Higher numbers will present
|
|
1132
|
+
* Intensity of lighting (on a scale from 0 to 1). Higher numbers will present
|
|
1133
|
+
* as more extreme contrast.
|
|
950
1134
|
*/
|
|
951
1135
|
intensity?: Value<number, ["zoom"]>;
|
|
952
1136
|
/**
|
|
953
|
-
* The transition affecting any changes to this layer
|
|
1137
|
+
* The transition affecting any changes to this layer's intensity property.
|
|
954
1138
|
*/
|
|
955
1139
|
intensityTransition?: Transition;
|
|
956
1140
|
}
|