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