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