@maplibre/maplibre-react-native 11.0.0-beta.9 → 11.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MapLibreReactNative.podspec +1 -1
- package/README.md +0 -5
- package/android/build.gradle +3 -1
- package/android/gradle.properties +2 -2
- package/android/src/main/java/org/maplibre/reactnative/MLRNPackage.kt +14 -1
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerView.kt +35 -29
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerViewManager.kt +8 -1
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MarkerViewManager.kt +8 -5
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/pointannotation/MLRNPointAnnotation.kt +45 -25
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/pointannotation/MLRNPointAnnotationManager.kt +2 -1
- package/android/src/main/java/org/maplibre/reactnative/components/layer/MLRNLayer.kt +8 -8
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyle.kt +60 -0
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFactory.kt +3005 -0
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleValue.kt +159 -0
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.kt +234 -128
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.kt +37 -3
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewModule.kt +3 -1
- package/android/src/main/java/org/maplibre/reactnative/components/sources/geojsonsource/MLRNGeoJSONSourceManager.kt +4 -15
- 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 +24 -6
- 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 +0 -2
- 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 +28 -2
- package/ios/components/sources/geojson-source/MLRNGeoJSONSource.h +0 -3
- package/ios/modules/logging/MLRNLogging.h +4 -0
- package/ios/modules/logging/MLRNLogging.m +8 -0
- package/ios/modules/network/MLRNNetworkModule.mm +0 -10
- package/ios/modules/offline/MLRNOfflineModule.h +1 -2
- package/ios/modules/offline/MLRNOfflineModule.mm +9 -9
- package/ios/modules/transform-request/MLRNTransformRequest.h +38 -0
- package/ios/modules/transform-request/MLRNTransformRequest.m +413 -0
- package/ios/modules/transform-request/MLRNTransformRequestModule.h +9 -0
- package/ios/modules/transform-request/MLRNTransformRequestModule.mm +72 -0
- package/ios/utils/MLRNUtils.h +0 -14
- package/ios/utils/MLRNUtils.m +0 -71
- package/lib/commonjs/components/annotations/callout/Callout.js +2 -1
- package/lib/commonjs/components/annotations/callout/Callout.js.map +1 -1
- package/lib/commonjs/components/annotations/marker/Marker.js +17 -3
- package/lib/commonjs/components/annotations/marker/Marker.js.map +1 -1
- package/lib/commonjs/components/annotations/marker/MarkerViewNativeComponent.ts +10 -0
- package/lib/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +3 -2
- package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js +20 -17
- package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
- package/lib/commonjs/components/camera/Camera.js +52 -3
- package/lib/commonjs/components/camera/Camera.js.map +1 -1
- package/lib/commonjs/components/images/Images.js +12 -2
- package/lib/commonjs/components/images/Images.js.map +1 -1
- package/lib/commonjs/components/images/NativeImagesModule.js +10 -0
- package/lib/commonjs/components/images/NativeImagesModule.js.map +1 -0
- package/lib/commonjs/components/layer/Layer.js +18 -8
- package/lib/commonjs/components/layer/Layer.js.map +1 -1
- package/lib/commonjs/components/map/AndroidTextureMapViewNativeComponent.ts +7 -2
- package/lib/commonjs/components/map/Map.js +29 -4
- package/lib/commonjs/components/map/Map.js.map +1 -1
- package/lib/commonjs/components/map/MapViewNativeComponent.ts +6 -1
- package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js +6 -5
- package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
- package/lib/commonjs/components/sources/image-source/ImageSource.js +3 -2
- package/lib/commonjs/components/sources/image-source/ImageSource.js.map +1 -1
- package/lib/commonjs/components/sources/raster-source/RasterSource.js +4 -3
- package/lib/commonjs/components/sources/raster-source/RasterSource.js.map +1 -1
- package/lib/commonjs/components/sources/vector-source/VectorSource.js +8 -5
- package/lib/commonjs/components/sources/vector-source/VectorSource.js.map +1 -1
- package/lib/commonjs/components/user-location/NativeUserLocation.js.map +1 -1
- package/lib/commonjs/components/user-location/UserLocation.js.map +1 -1
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modules/log/LogManager.js +5 -4
- package/lib/commonjs/modules/log/LogManager.js.map +1 -1
- package/lib/commonjs/modules/network/NativeNetworkModule.js.map +1 -1
- package/lib/commonjs/modules/network/NetworkManager.js +6 -44
- package/lib/commonjs/modules/network/NetworkManager.js.map +1 -1
- package/lib/commonjs/modules/offline/OfflineManager.js +109 -62
- package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -1
- package/lib/commonjs/modules/static-map/StaticMapManager.js +13 -5
- package/lib/commonjs/modules/static-map/StaticMapManager.js.map +1 -1
- package/lib/commonjs/modules/transform-request/NativeTransformRequestModule.js +9 -0
- package/lib/commonjs/modules/transform-request/NativeTransformRequestModule.js.map +1 -0
- package/lib/commonjs/modules/transform-request/TransformRequestManager.js +233 -0
- package/lib/commonjs/modules/transform-request/TransformRequestManager.js.map +1 -0
- package/lib/commonjs/plugin/ios.js +28 -15
- package/lib/commonjs/plugin/ios.js.map +1 -1
- package/lib/commonjs/types/Anchor.js +5 -6
- package/lib/commonjs/types/Anchor.js.map +1 -1
- package/lib/commonjs/types/PressableSourceProps.js.map +1 -0
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +6 -6
- package/lib/commonjs/utils/animated/AnimatedGeoJSON.js +2 -1
- package/lib/commonjs/utils/animated/AnimatedGeoJSON.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
- package/lib/commonjs/utils/convertStyleSpec.js +4 -4
- package/lib/commonjs/utils/getStylePropertyType.js +1 -1
- package/lib/module/components/annotations/callout/Callout.js +2 -1
- package/lib/module/components/annotations/callout/Callout.js.map +1 -1
- package/lib/module/components/annotations/marker/Marker.js +17 -3
- package/lib/module/components/annotations/marker/Marker.js.map +1 -1
- package/lib/module/components/annotations/marker/MarkerViewNativeComponent.ts +10 -0
- package/lib/module/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +3 -2
- package/lib/module/components/annotations/view-annotation/ViewAnnotation.js +20 -17
- package/lib/module/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
- package/lib/module/components/camera/Camera.js +53 -4
- package/lib/module/components/camera/Camera.js.map +1 -1
- package/lib/module/components/images/Images.js +12 -2
- package/lib/module/components/images/Images.js.map +1 -1
- package/lib/module/components/images/NativeImagesModule.js +7 -0
- package/lib/module/components/images/NativeImagesModule.js.map +1 -0
- package/lib/module/components/layer/Layer.js +18 -8
- package/lib/module/components/layer/Layer.js.map +1 -1
- package/lib/module/components/map/AndroidTextureMapViewNativeComponent.ts +7 -2
- package/lib/module/components/map/Map.js +30 -5
- package/lib/module/components/map/Map.js.map +1 -1
- package/lib/module/components/map/MapViewNativeComponent.ts +6 -1
- package/lib/module/components/sources/geojson-source/GeoJSONSource.js +7 -6
- package/lib/module/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
- package/lib/module/components/sources/image-source/ImageSource.js +3 -2
- package/lib/module/components/sources/image-source/ImageSource.js.map +1 -1
- package/lib/module/components/sources/raster-source/RasterSource.js +4 -3
- package/lib/module/components/sources/raster-source/RasterSource.js.map +1 -1
- package/lib/module/components/sources/vector-source/VectorSource.js +9 -6
- package/lib/module/components/sources/vector-source/VectorSource.js.map +1 -1
- package/lib/module/components/user-location/NativeUserLocation.js.map +1 -1
- package/lib/module/components/user-location/UserLocation.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/modules/log/LogManager.js +5 -4
- package/lib/module/modules/log/LogManager.js.map +1 -1
- package/lib/module/modules/network/NativeNetworkModule.js.map +1 -1
- package/lib/module/modules/network/NetworkManager.js +6 -44
- package/lib/module/modules/network/NetworkManager.js.map +1 -1
- package/lib/module/modules/offline/OfflineManager.js +109 -62
- package/lib/module/modules/offline/OfflineManager.js.map +1 -1
- package/lib/module/modules/static-map/StaticMapManager.js +13 -5
- package/lib/module/modules/static-map/StaticMapManager.js.map +1 -1
- package/lib/module/modules/transform-request/NativeTransformRequestModule.js +5 -0
- package/lib/module/modules/transform-request/NativeTransformRequestModule.js.map +1 -0
- package/lib/module/modules/transform-request/TransformRequestManager.js +230 -0
- package/lib/module/modules/transform-request/TransformRequestManager.js.map +1 -0
- package/lib/module/plugin/ios.js +28 -15
- package/lib/module/plugin/ios.js.map +1 -1
- package/lib/module/types/Anchor.js +5 -6
- package/lib/module/types/Anchor.js.map +1 -1
- package/lib/module/types/PressableSourceProps.js.map +1 -0
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +2 -2
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js +6 -6
- package/lib/module/utils/animated/AnimatedGeoJSON.js +2 -1
- package/lib/module/utils/animated/AnimatedGeoJSON.js.map +1 -1
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
- package/lib/module/utils/convertStyleSpec.js +4 -4
- package/lib/module/utils/getStylePropertyType.js +1 -1
- package/lib/typescript/commonjs/components/annotations/LayerAnnotation.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/annotations/callout/Callout.d.ts +3 -2
- package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/annotations/callout/CalloutNativeComponent.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/components/annotations/marker/Marker.d.ts +29 -22
- package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/annotations/marker/MarkerViewNativeComponent.d.ts +10 -0
- package/lib/typescript/commonjs/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +3 -2
- package/lib/typescript/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/annotations/view-annotation/ViewAnnotation.d.ts +35 -29
- package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/camera/Camera.d.ts +85 -43
- package/lib/typescript/commonjs/components/camera/Camera.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/camera/CameraNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/camera/NativeCameraModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/images/Images.d.ts +20 -12
- package/lib/typescript/commonjs/components/images/Images.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/images/ImagesNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/images/NativeImagesModule.d.ts +6 -0
- package/lib/typescript/commonjs/components/images/NativeImagesModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/layer/Layer.d.ts +18 -8
- package/lib/typescript/commonjs/components/layer/Layer.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/layer/LayerNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/map/AndroidTextureMapViewNativeComponent.d.ts +5 -1
- package/lib/typescript/commonjs/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/map/Map.d.ts +151 -75
- package/lib/typescript/commonjs/components/map/Map.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/components/map/MapViewNativeComponent.d.ts +5 -1
- package/lib/typescript/commonjs/components/map/MapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/map/NativeMapViewModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/sources/geojson-source/GeoJSONSource.d.ts +47 -44
- package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/sources/image-source/ImageSource.d.ts +5 -3
- package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/sources/raster-source/RasterSource.d.ts +20 -15
- package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts +75 -0
- package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/components/user-location/NativeUserLocation.d.ts +9 -6
- package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocation.d.ts +4 -2
- package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationPuck.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/hooks → hooks}/useCurrentPosition.d.ts +2 -2
- package/lib/typescript/commonjs/hooks/useCurrentPosition.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useFrozenId.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useNativeBridge.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/index.d.ts → index.d.ts} +3 -2
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/location/NativeLocationModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/modules → modules}/log/LogManager.d.ts +5 -4
- package/lib/typescript/commonjs/modules/log/LogManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/log/NativeLogModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/modules → modules}/network/NativeNetworkModule.d.ts +0 -2
- package/lib/typescript/commonjs/modules/network/NativeNetworkModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts +24 -0
- package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/offline/NativeOfflineModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/modules → modules}/offline/OfflineManager.d.ts +110 -63
- package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/offline/OfflinePack.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/static-map/NativeStaticMapModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/modules → modules}/static-map/StaticMapManager.d.ts +15 -7
- package/lib/typescript/commonjs/modules/static-map/StaticMapManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/transform-request/NativeTransformRequestModule.d.ts +15 -0
- package/lib/typescript/commonjs/modules/transform-request/NativeTransformRequestModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts +213 -0
- package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/plugin/MapLibrePluginProps.d.ts +10 -15
- package/lib/typescript/commonjs/plugin/MapLibrePluginProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugin/android.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/plugin → plugin}/ios.d.ts +2 -2
- package/lib/typescript/commonjs/plugin/ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugin/withMapLibre.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/Anchor.d.ts +16 -0
- package/lib/typescript/commonjs/types/Anchor.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/BaseProps.d.ts +7 -0
- package/lib/typescript/commonjs/types/BaseProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/LngLat.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/types → types}/LngLatBounds.d.ts +2 -1
- package/lib/typescript/commonjs/types/LngLatBounds.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/types → types}/MapLibreRNStyles.d.ts +316 -132
- package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/PixelPoint.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/PixelPointBounds.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/types/PressEvent.d.ts +3 -0
- package/lib/typescript/commonjs/types/PressEvent.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/types → types}/PressEventWithFeatures.d.ts +3 -0
- package/lib/typescript/commonjs/types/PressEventWithFeatures.d.ts.map +1 -0
- package/lib/typescript/{module/src/types/sources → commonjs/types}/PressableSourceProps.d.ts +6 -4
- package/lib/typescript/commonjs/types/PressableSourceProps.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/types/ViewPadding.d.ts +3 -0
- package/lib/typescript/commonjs/types/ViewPadding.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/codegen/UnsafeMixed.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/BridgeValue.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/StyleValue.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/commonjs/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/utils/animated/Animated.d.ts +1 -1
- package/lib/typescript/commonjs/utils/animated/Animated.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedCoordinatesArray.d.ts +6 -6
- package/lib/typescript/commonjs/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedGeoJSON.d.ts +2 -1
- package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedPoint.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
- package/lib/typescript/commonjs/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/utils/convertStyleSpec.d.ts +4 -4
- package/lib/typescript/commonjs/utils/convertStyleSpec.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/findNodeHandle.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/getNativeFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/getStylePropertyType.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/index.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/LayerAnnotation.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/annotations/callout/Callout.d.ts +3 -2
- package/lib/typescript/module/components/annotations/callout/Callout.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/callout/CalloutNativeComponent.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/components/annotations/marker/Marker.d.ts +29 -22
- package/lib/typescript/module/components/annotations/marker/Marker.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/annotations/marker/MarkerViewNativeComponent.d.ts +10 -0
- package/lib/typescript/module/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +3 -2
- package/lib/typescript/module/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/annotations/view-annotation/ViewAnnotation.d.ts +35 -29
- package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/camera/Camera.d.ts +85 -43
- package/lib/typescript/module/components/camera/Camera.d.ts.map +1 -0
- package/lib/typescript/module/components/camera/CameraNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/camera/NativeCameraModule.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/images/Images.d.ts +20 -12
- package/lib/typescript/module/components/images/Images.d.ts.map +1 -0
- package/lib/typescript/module/components/images/ImagesNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/images/NativeImagesModule.d.ts +6 -0
- package/lib/typescript/module/components/images/NativeImagesModule.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/layer/Layer.d.ts +18 -8
- package/lib/typescript/module/components/layer/Layer.d.ts.map +1 -0
- package/lib/typescript/module/components/layer/LayerNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/map/AndroidTextureMapViewNativeComponent.d.ts +5 -1
- package/lib/typescript/module/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/map/Map.d.ts +151 -75
- package/lib/typescript/module/components/map/Map.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/components/map/MapViewNativeComponent.d.ts +5 -1
- package/lib/typescript/module/components/map/MapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/map/NativeMapViewModule.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/sources/geojson-source/GeoJSONSource.d.ts +47 -44
- package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/sources/image-source/ImageSource.d.ts +5 -3
- package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/sources/raster-source/RasterSource.d.ts +20 -15
- package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts +75 -0
- package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/components/user-location/NativeUserLocation.d.ts +9 -6
- package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/user-location/UserLocation.d.ts +4 -2
- package/lib/typescript/module/components/user-location/UserLocation.d.ts.map +1 -0
- package/lib/typescript/module/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/user-location/UserLocationPuck.d.ts.map +1 -0
- package/lib/typescript/module/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
- package/lib/typescript/module/{src/hooks → hooks}/useCurrentPosition.d.ts +2 -2
- package/lib/typescript/module/hooks/useCurrentPosition.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useFrozenId.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useNativeBridge.d.ts.map +1 -0
- package/lib/typescript/module/{src/index.d.ts → index.d.ts} +3 -2
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/location/NativeLocationModule.d.ts.map +1 -0
- package/lib/typescript/module/{src/modules → modules}/log/LogManager.d.ts +5 -4
- package/lib/typescript/module/modules/log/LogManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/log/NativeLogModule.d.ts.map +1 -0
- package/lib/typescript/module/{src/modules → modules}/network/NativeNetworkModule.d.ts +0 -2
- package/lib/typescript/module/modules/network/NativeNetworkModule.d.ts.map +1 -0
- package/lib/typescript/module/modules/network/NetworkManager.d.ts +24 -0
- package/lib/typescript/module/modules/network/NetworkManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/offline/NativeOfflineModule.d.ts.map +1 -0
- package/lib/typescript/module/{src/modules → modules}/offline/OfflineManager.d.ts +110 -63
- package/lib/typescript/module/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/offline/OfflinePack.d.ts.map +1 -0
- package/lib/typescript/module/modules/static-map/NativeStaticMapModule.d.ts.map +1 -0
- package/lib/typescript/module/{src/modules → modules}/static-map/StaticMapManager.d.ts +15 -7
- package/lib/typescript/module/modules/static-map/StaticMapManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/transform-request/NativeTransformRequestModule.d.ts +15 -0
- package/lib/typescript/module/modules/transform-request/NativeTransformRequestModule.d.ts.map +1 -0
- package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts +213 -0
- package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/plugin/MapLibrePluginProps.d.ts +10 -15
- package/lib/typescript/module/plugin/MapLibrePluginProps.d.ts.map +1 -0
- package/lib/typescript/module/plugin/android.d.ts.map +1 -0
- package/lib/typescript/module/{src/plugin → plugin}/ios.d.ts +2 -2
- package/lib/typescript/module/plugin/ios.d.ts.map +1 -0
- package/lib/typescript/module/plugin/withMapLibre.d.ts.map +1 -0
- package/lib/typescript/module/types/Anchor.d.ts +16 -0
- package/lib/typescript/module/types/Anchor.d.ts.map +1 -0
- package/lib/typescript/module/types/BaseProps.d.ts +7 -0
- package/lib/typescript/module/types/BaseProps.d.ts.map +1 -0
- package/lib/typescript/module/types/LngLat.d.ts.map +1 -0
- package/lib/typescript/module/{src/types → types}/LngLatBounds.d.ts +2 -1
- package/lib/typescript/module/types/LngLatBounds.d.ts.map +1 -0
- package/lib/typescript/module/{src/types → types}/MapLibreRNStyles.d.ts +316 -132
- package/lib/typescript/module/types/MapLibreRNStyles.d.ts.map +1 -0
- package/lib/typescript/module/types/PixelPoint.d.ts.map +1 -0
- package/lib/typescript/module/types/PixelPointBounds.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/types/PressEvent.d.ts +3 -0
- package/lib/typescript/module/types/PressEvent.d.ts.map +1 -0
- package/lib/typescript/module/{src/types → types}/PressEventWithFeatures.d.ts +3 -0
- package/lib/typescript/module/types/PressEventWithFeatures.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src/types/sources → module/types}/PressableSourceProps.d.ts +6 -4
- package/lib/typescript/module/types/PressableSourceProps.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/types/ViewPadding.d.ts +3 -0
- package/lib/typescript/module/types/ViewPadding.d.ts.map +1 -0
- package/lib/typescript/module/types/codegen/UnsafeMixed.d.ts.map +1 -0
- package/lib/typescript/module/utils/BridgeValue.d.ts.map +1 -0
- package/lib/typescript/module/utils/StyleValue.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/module/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/utils/animated/Animated.d.ts +1 -1
- package/lib/typescript/module/utils/animated/Animated.d.ts.map +1 -0
- package/lib/typescript/module/{src/utils → utils}/animated/AnimatedCoordinatesArray.d.ts +6 -6
- package/lib/typescript/module/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
- package/lib/typescript/module/{src/utils → utils}/animated/AnimatedGeoJSON.d.ts +2 -1
- package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AnimatedPoint.d.ts.map +1 -0
- package/lib/typescript/module/{src/utils → utils}/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
- package/lib/typescript/module/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/utils/convertStyleSpec.d.ts +4 -4
- package/lib/typescript/module/utils/convertStyleSpec.d.ts.map +1 -0
- package/lib/typescript/module/utils/findNodeHandle.d.ts.map +1 -0
- package/lib/typescript/module/utils/getNativeFilter.d.ts.map +1 -0
- package/lib/typescript/module/utils/getStylePropertyType.d.ts.map +1 -0
- package/lib/typescript/module/utils/index.d.ts.map +1 -0
- package/package.json +19 -40
- package/src/components/annotations/callout/Callout.tsx +3 -2
- package/src/components/annotations/marker/Marker.tsx +47 -30
- package/src/components/annotations/marker/MarkerViewNativeComponent.ts +10 -0
- package/src/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +3 -2
- package/src/components/annotations/view-annotation/ViewAnnotation.tsx +53 -47
- package/src/components/camera/Camera.tsx +148 -110
- package/src/components/images/Images.tsx +20 -12
- package/src/components/images/NativeImagesModule.ts +11 -0
- package/src/components/layer/Layer.tsx +18 -8
- package/src/components/map/AndroidTextureMapViewNativeComponent.ts +7 -2
- package/src/components/map/Map.tsx +296 -229
- package/src/components/map/MapViewNativeComponent.ts +6 -1
- package/src/components/sources/geojson-source/GeoJSONSource.tsx +105 -103
- package/src/components/sources/image-source/ImageSource.tsx +5 -3
- package/src/components/sources/raster-source/RasterSource.tsx +20 -15
- package/src/components/sources/vector-source/VectorSource.tsx +66 -58
- package/src/components/user-location/NativeUserLocation.tsx +9 -6
- package/src/components/user-location/UserLocation.tsx +4 -2
- package/src/hooks/useCurrentPosition.ts +2 -2
- package/src/index.ts +12 -3
- package/src/modules/log/LogManager.ts +5 -4
- package/src/modules/network/NativeNetworkModule.ts +0 -4
- package/src/modules/network/NetworkManager.ts +6 -52
- package/src/modules/offline/OfflineManager.ts +109 -62
- package/src/modules/static-map/StaticMapManager.ts +15 -7
- package/src/modules/transform-request/NativeTransformRequestModule.ts +41 -0
- package/src/modules/transform-request/TransformRequestManager.ts +304 -0
- package/src/plugin/MapLibrePluginProps.ts +10 -15
- package/src/plugin/ios.ts +43 -21
- package/src/types/Anchor.ts +5 -6
- package/src/types/BaseProps.ts +3 -0
- package/src/types/LngLatBounds.ts +2 -1
- package/src/types/MapLibreRNStyles.ts +326 -192
- package/src/types/PressEvent.ts +3 -0
- package/src/types/PressEventWithFeatures.ts +3 -0
- package/src/types/{sources/PressableSourceProps.ts → PressableSourceProps.ts} +6 -4
- package/src/types/ViewPadding.ts +3 -0
- package/src/utils/animated/AbstractAnimatedCoordinates.ts +2 -2
- package/src/utils/animated/AnimatedCoordinatesArray.ts +6 -6
- package/src/utils/animated/AnimatedGeoJSON.ts +2 -1
- package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +6 -6
- package/src/utils/convertStyleSpec.ts +4 -4
- package/src/utils/getStylePropertyType.ts +1 -1
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyle.java +0 -76
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFactory.java +0 -2285
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFunctionParser.java +0 -94
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleValue.java +0 -207
- package/android/src/main/java/org/maplibre/reactnative/events/AndroidCallbackEvent.java +0 -34
- package/android/src/main/java/org/maplibre/reactnative/http/RequestHeadersInterceptor.kt +0 -65
- package/android/src/main/res/layout/annotation.xml +0 -17
- package/ios/modules/network/MLRNNetworkHTTPHeaders.h +0 -14
- package/ios/modules/network/MLRNNetworkHTTPHeaders.m +0 -97
- package/lib/commonjs/types/sources/PressableSourceProps.js.map +0 -1
- package/lib/module/types/sources/PressableSourceProps.js.map +0 -1
- package/lib/typescript/commonjs/src/components/annotations/LayerAnnotation.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/annotations/callout/Callout.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/annotations/callout/CalloutNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/annotations/marker/Marker.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/annotations/view-annotation/ViewAnnotation.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/camera/Camera.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/camera/CameraNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/camera/NativeCameraModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/images/Images.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/images/ImagesNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/layer/Layer.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/layer/LayerNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/map/Map.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/map/MapViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/map/NativeMapViewModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/geojson-source/GeoJSONSource.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/image-source/ImageSource.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/raster-source/RasterSource.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/vector-source/VectorSource.d.ts +0 -66
- package/lib/typescript/commonjs/src/components/sources/vector-source/VectorSource.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/user-location/NativeUserLocation.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/user-location/UserLocation.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/user-location/UserLocationNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/user-location/UserLocationPuck.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/user-location/UserLocationPuckHeading.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/hooks/useCurrentPosition.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/hooks/useFrozenId.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/location/NativeLocationModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/log/LogManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/log/NativeLogModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/network/NativeNetworkModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/network/NetworkManager.d.ts +0 -56
- package/lib/typescript/commonjs/src/modules/network/NetworkManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/offline/NativeOfflineModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/offline/OfflineManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/static-map/NativeStaticMapModule.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/static-map/StaticMapManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/plugin/android.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/plugin/ios.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/Anchor.d.ts +0 -17
- package/lib/typescript/commonjs/src/types/Anchor.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/BaseProps.d.ts +0 -4
- package/lib/typescript/commonjs/src/types/BaseProps.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/LngLat.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/LngLatBounds.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/PixelPoint.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/PixelPointBounds.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/PressEvent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/PressEventWithFeatures.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/ViewPadding.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/codegen/UnsafeMixed.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/sources/PressableSourceProps.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedGeoJSON.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/convertStyleSpec.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/findNodeHandle.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/getNativeFilter.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +0 -1
- package/lib/typescript/module/src/components/annotations/LayerAnnotation.d.ts.map +0 -1
- package/lib/typescript/module/src/components/annotations/callout/Callout.d.ts.map +0 -1
- package/lib/typescript/module/src/components/annotations/callout/CalloutNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/annotations/marker/Marker.d.ts.map +0 -1
- package/lib/typescript/module/src/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/annotations/view-annotation/ViewAnnotation.d.ts.map +0 -1
- package/lib/typescript/module/src/components/camera/Camera.d.ts.map +0 -1
- package/lib/typescript/module/src/components/camera/CameraNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/camera/NativeCameraModule.d.ts.map +0 -1
- package/lib/typescript/module/src/components/images/Images.d.ts.map +0 -1
- package/lib/typescript/module/src/components/images/ImagesNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/layer/Layer.d.ts.map +0 -1
- package/lib/typescript/module/src/components/layer/LayerNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/map/Map.d.ts.map +0 -1
- package/lib/typescript/module/src/components/map/MapViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/map/NativeMapViewModule.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/geojson-source/GeoJSONSource.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/image-source/ImageSource.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/raster-source/RasterSource.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/vector-source/VectorSource.d.ts +0 -66
- package/lib/typescript/module/src/components/sources/vector-source/VectorSource.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/user-location/NativeUserLocation.d.ts.map +0 -1
- package/lib/typescript/module/src/components/user-location/UserLocation.d.ts.map +0 -1
- package/lib/typescript/module/src/components/user-location/UserLocationNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/components/user-location/UserLocationPuck.d.ts.map +0 -1
- package/lib/typescript/module/src/components/user-location/UserLocationPuckHeading.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/useCurrentPosition.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/useFrozenId.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +0 -1
- package/lib/typescript/module/src/index.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/location/LocationManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/location/NativeLocationModule.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/log/LogManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/log/NativeLogModule.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/network/NativeNetworkModule.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/network/NetworkManager.d.ts +0 -56
- package/lib/typescript/module/src/modules/network/NetworkManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/offline/NativeOfflineModule.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/offline/OfflineManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/static-map/NativeStaticMapModule.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/static-map/StaticMapManager.d.ts.map +0 -1
- package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts.map +0 -1
- package/lib/typescript/module/src/plugin/android.d.ts.map +0 -1
- package/lib/typescript/module/src/plugin/ios.d.ts.map +0 -1
- package/lib/typescript/module/src/plugin/withMapLibre.d.ts.map +0 -1
- package/lib/typescript/module/src/types/Anchor.d.ts +0 -17
- package/lib/typescript/module/src/types/Anchor.d.ts.map +0 -1
- package/lib/typescript/module/src/types/BaseProps.d.ts +0 -4
- package/lib/typescript/module/src/types/BaseProps.d.ts.map +0 -1
- package/lib/typescript/module/src/types/LngLat.d.ts.map +0 -1
- package/lib/typescript/module/src/types/LngLatBounds.d.ts.map +0 -1
- package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts.map +0 -1
- package/lib/typescript/module/src/types/PixelPoint.d.ts.map +0 -1
- package/lib/typescript/module/src/types/PixelPointBounds.d.ts.map +0 -1
- package/lib/typescript/module/src/types/PressEvent.d.ts.map +0 -1
- package/lib/typescript/module/src/types/PressEventWithFeatures.d.ts.map +0 -1
- package/lib/typescript/module/src/types/ViewPadding.d.ts.map +0 -1
- package/lib/typescript/module/src/types/codegen/UnsafeMixed.d.ts.map +0 -1
- package/lib/typescript/module/src/types/sources/PressableSourceProps.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/StyleValue.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/animated/AnimatedGeoJSON.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/convertStyleSpec.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/findNodeHandle.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/getNativeFilter.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/getStylePropertyType.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/index.d.ts.map +0 -1
- /package/android/src/main/res/drawable-xxhdpi/{red_marker.png → default_marker.png} +0 -0
- /package/ios/{components/images → utils}/MLRNImageUtils.h +0 -0
- /package/ios/{components/images → utils}/MLRNImageUtils.m +0 -0
- /package/lib/commonjs/types/{sources/PressableSourceProps.js → PressableSourceProps.js} +0 -0
- /package/lib/module/types/{sources/PressableSourceProps.js → PressableSourceProps.js} +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/annotations/LayerAnnotation.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/annotations/callout/CalloutNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/camera/CameraNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/camera/NativeCameraModule.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/images/ImagesNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/layer/LayerNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/map/NativeMapViewModule.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/sources/geojson-source/NativeGeoJSONSourceModule.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/sources/image-source/ImageSourceNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/sources/raster-source/RasterSourceNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/sources/vector-source/NativeVectorSourceModule.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/sources/vector-source/VectorSourceNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocationNativeComponent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocationPuck.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocationPuckHeading.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/hooks → hooks}/useFrozenId.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/hooks → hooks}/useNativeBridge.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/modules → modules}/location/LocationManager.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/modules → modules}/location/NativeLocationModule.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/modules → modules}/log/NativeLogModule.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/modules → modules}/offline/NativeOfflineModule.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/modules → modules}/offline/OfflinePack.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/modules → modules}/static-map/NativeStaticMapModule.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/plugin → plugin}/android.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/plugin → plugin}/withMapLibre.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/types → types}/LngLat.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/types → types}/PixelPoint.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/types → types}/PixelPointBounds.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/types → types}/codegen/UnsafeMixed.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/BridgeValue.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/StyleValue.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedExtractCoordinateFromArray.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedPoint.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/findNodeHandle.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/getNativeFilter.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/getStylePropertyType.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/index.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/annotations/LayerAnnotation.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/annotations/callout/CalloutNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/camera/CameraNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/camera/NativeCameraModule.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/images/ImagesNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/layer/LayerNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/map/NativeMapViewModule.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/sources/geojson-source/NativeGeoJSONSourceModule.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/sources/image-source/ImageSourceNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/sources/raster-source/RasterSourceNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/sources/vector-source/NativeVectorSourceModule.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/sources/vector-source/VectorSourceNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/user-location/UserLocationNativeComponent.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/user-location/UserLocationPuck.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/user-location/UserLocationPuckHeading.d.ts +0 -0
- /package/lib/typescript/module/{src/hooks → hooks}/useFrozenId.d.ts +0 -0
- /package/lib/typescript/module/{src/hooks → hooks}/useNativeBridge.d.ts +0 -0
- /package/lib/typescript/module/{src/modules → modules}/location/LocationManager.d.ts +0 -0
- /package/lib/typescript/module/{src/modules → modules}/location/NativeLocationModule.d.ts +0 -0
- /package/lib/typescript/module/{src/modules → modules}/log/NativeLogModule.d.ts +0 -0
- /package/lib/typescript/module/{src/modules → modules}/offline/NativeOfflineModule.d.ts +0 -0
- /package/lib/typescript/module/{src/modules → modules}/offline/OfflinePack.d.ts +0 -0
- /package/lib/typescript/module/{src/modules → modules}/static-map/NativeStaticMapModule.d.ts +0 -0
- /package/lib/typescript/module/{src/plugin → plugin}/android.d.ts +0 -0
- /package/lib/typescript/module/{src/plugin → plugin}/withMapLibre.d.ts +0 -0
- /package/lib/typescript/module/{src/types → types}/LngLat.d.ts +0 -0
- /package/lib/typescript/module/{src/types → types}/PixelPoint.d.ts +0 -0
- /package/lib/typescript/module/{src/types → types}/PixelPointBounds.d.ts +0 -0
- /package/lib/typescript/module/{src/types → types}/codegen/UnsafeMixed.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/BridgeValue.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/StyleValue.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/animated/AnimatedExtractCoordinateFromArray.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/animated/AnimatedPoint.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/findNodeHandle.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/getNativeFilter.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/getStylePropertyType.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/index.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FilterSpecification, LightSpecification, StyleSpecification } from "@maplibre/maplibre-gl-style-spec";
|
|
2
|
-
import { type
|
|
2
|
+
import { type Ref } from "react";
|
|
3
3
|
import { type NativeSyntheticEvent, type ViewProps } from "react-native";
|
|
4
|
-
import {
|
|
4
|
+
import type { BaseProps } from "../../types/BaseProps";
|
|
5
5
|
import type { LngLat } from "../../types/LngLat";
|
|
6
6
|
import type { LngLatBounds } from "../../types/LngLatBounds";
|
|
7
7
|
import type { PixelPoint } from "../../types/PixelPoint";
|
|
@@ -9,6 +9,10 @@ import type { PixelPointBounds } from "../../types/PixelPointBounds";
|
|
|
9
9
|
import type { PressEvent } from "../../types/PressEvent";
|
|
10
10
|
import type { PressEventWithFeatures } from "../../types/PressEventWithFeatures";
|
|
11
11
|
import type { ViewPadding } from "../../types/ViewPadding";
|
|
12
|
+
/**
|
|
13
|
+
* Screen position for map ornaments (logo, compass, scale bar). Exactly one of
|
|
14
|
+
* `top` / `bottom` and one of `left` / `right` must be provided.
|
|
15
|
+
*/
|
|
12
16
|
export type OrnamentViewPosition = {
|
|
13
17
|
top: number;
|
|
14
18
|
left: number;
|
|
@@ -22,6 +26,9 @@ export type OrnamentViewPosition = {
|
|
|
22
26
|
bottom: number;
|
|
23
27
|
left: number;
|
|
24
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Current viewport state of the map.
|
|
31
|
+
*/
|
|
25
32
|
export type ViewState = {
|
|
26
33
|
center: LngLat;
|
|
27
34
|
zoom: number;
|
|
@@ -29,10 +36,17 @@ export type ViewState = {
|
|
|
29
36
|
pitch: number;
|
|
30
37
|
bounds: LngLatBounds;
|
|
31
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* Event emitted when the map viewport changes (pan, zoom, rotate, pitch).
|
|
41
|
+
*/
|
|
32
42
|
export type ViewStateChangeEvent = ViewState & {
|
|
33
43
|
animated: boolean;
|
|
34
44
|
userInteraction: boolean;
|
|
35
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* Options for querying rendered features at a screen point or within a bounding
|
|
48
|
+
* box.
|
|
49
|
+
*/
|
|
36
50
|
export type QueryRenderedFeaturesOptions = {
|
|
37
51
|
/**
|
|
38
52
|
* Filter expression to filter the queried features
|
|
@@ -47,140 +61,155 @@ export interface MapRef {
|
|
|
47
61
|
/**
|
|
48
62
|
* Returns the current center coordinates of the map
|
|
49
63
|
*
|
|
64
|
+
* @returns Current center coordinates of the map
|
|
65
|
+
*
|
|
50
66
|
* @example
|
|
67
|
+
* ```ts
|
|
51
68
|
* await mapRef.current?.getCenter();
|
|
52
|
-
*
|
|
53
|
-
* @return Current center coordinates of the map
|
|
69
|
+
* ```
|
|
54
70
|
*/
|
|
55
71
|
getCenter(): Promise<LngLat>;
|
|
56
72
|
/**
|
|
57
73
|
* Returns the current zoom level of the map
|
|
58
74
|
*
|
|
75
|
+
* @returns Current zoom level of the map
|
|
76
|
+
*
|
|
59
77
|
* @example
|
|
78
|
+
* ```ts
|
|
60
79
|
* await mapRef.current?.getZoom();
|
|
61
|
-
*
|
|
62
|
-
* @return Current zoom level of the map
|
|
80
|
+
* ```
|
|
63
81
|
*/
|
|
64
82
|
getZoom(): Promise<number>;
|
|
65
83
|
/**
|
|
66
84
|
* Returns the current bearing of the map
|
|
67
85
|
*
|
|
86
|
+
* @returns Current bearing of the map
|
|
87
|
+
*
|
|
68
88
|
* @example
|
|
89
|
+
* ```ts
|
|
69
90
|
* await mapRef.current?.getBearing();
|
|
70
|
-
*
|
|
71
|
-
* @return Current bearing of the map
|
|
91
|
+
* ```
|
|
72
92
|
*/
|
|
73
93
|
getBearing(): Promise<number>;
|
|
74
94
|
/**
|
|
75
95
|
* Returns the current pitch of the map
|
|
76
96
|
*
|
|
97
|
+
* @returns Current pitch of the map
|
|
98
|
+
*
|
|
77
99
|
* @example
|
|
100
|
+
* ```ts
|
|
78
101
|
* await mapRef.current?.getPitch();
|
|
79
|
-
*
|
|
80
|
-
* @return Current pitch of the map
|
|
102
|
+
* ```
|
|
81
103
|
*/
|
|
82
104
|
getPitch(): Promise<number>;
|
|
83
105
|
/**
|
|
84
106
|
* Returns the current bounds of the map
|
|
85
107
|
*
|
|
108
|
+
* @returns Current bounds of the map
|
|
109
|
+
*
|
|
86
110
|
* @example
|
|
111
|
+
* ```ts
|
|
87
112
|
* await mapRef.current?.getBounds();
|
|
88
|
-
*
|
|
89
|
-
* @return Current bounds of the map
|
|
113
|
+
* ```
|
|
90
114
|
*/
|
|
91
115
|
getBounds(): Promise<LngLatBounds>;
|
|
92
116
|
/**
|
|
93
117
|
* Returns the current view state of the map
|
|
94
118
|
*
|
|
119
|
+
* @returns Current view state of the map
|
|
120
|
+
*
|
|
95
121
|
* @example
|
|
122
|
+
* ```ts
|
|
96
123
|
* await mapRef.current?.getViewState();
|
|
97
|
-
*
|
|
98
|
-
* @return Current view state of the map
|
|
124
|
+
* ```
|
|
99
125
|
*/
|
|
100
126
|
getViewState(): Promise<ViewState>;
|
|
101
127
|
/**
|
|
102
128
|
* Converts geographic coordinates to pixel point of the view
|
|
103
129
|
*
|
|
130
|
+
* @param lngLat - Geographic coordinate
|
|
131
|
+
* @returns Pixel point
|
|
132
|
+
*
|
|
104
133
|
* @example
|
|
134
|
+
* ```ts
|
|
105
135
|
* await mapRef.current?.project([13.04214014753952, 47.80554907882145]);
|
|
106
|
-
*
|
|
107
|
-
* @param lngLat Geographic coordinate
|
|
108
|
-
* @return Pixel point
|
|
136
|
+
* ```
|
|
109
137
|
*/
|
|
110
138
|
project(lngLat: LngLat): Promise<PixelPoint>;
|
|
111
139
|
/**
|
|
112
140
|
* Converts a pixel point of the view to geographic coordinates.
|
|
113
141
|
*
|
|
142
|
+
* @param point - Pixel point
|
|
143
|
+
* @returns Geographic coordinate
|
|
144
|
+
*
|
|
114
145
|
* @example
|
|
146
|
+
* ```ts
|
|
115
147
|
* await mapRef.current?.unproject([280, 640]);
|
|
116
|
-
*
|
|
117
|
-
* @param point Pixel point
|
|
118
|
-
* @return Geographic coordinate
|
|
148
|
+
* ```
|
|
119
149
|
*/
|
|
120
150
|
unproject(point: PixelPoint): Promise<LngLat>;
|
|
121
151
|
/**
|
|
122
152
|
* Query rendered features at a point
|
|
123
153
|
*
|
|
124
|
-
* @
|
|
125
|
-
* await mapRef.current?.queryRenderedFeatures(
|
|
126
|
-
* [240, 640],
|
|
127
|
-
* {
|
|
128
|
-
* filter: ["==", "type", "Point"],
|
|
129
|
-
* layers: ["restaurants", "shops"],
|
|
130
|
-
* },
|
|
131
|
-
* );
|
|
154
|
+
* @returns Queried features
|
|
132
155
|
*
|
|
133
|
-
* @
|
|
156
|
+
* @example
|
|
157
|
+
* ```ts
|
|
158
|
+
* await mapRef.current?.queryRenderedFeatures([240, 640], {
|
|
159
|
+
* filter: ["==", "type", "Point"],
|
|
160
|
+
* layers: ["restaurants", "shops"],
|
|
161
|
+
* });
|
|
162
|
+
* ```
|
|
134
163
|
*/
|
|
135
164
|
queryRenderedFeatures(pixelPoint: PixelPoint, options?: QueryRenderedFeaturesOptions): Promise<GeoJSON.Feature[]>;
|
|
136
165
|
/**
|
|
137
166
|
* Query rendered features within pixel bounds
|
|
138
167
|
*
|
|
139
|
-
* @
|
|
140
|
-
* await mapRef.current?.queryRenderedFeatures(
|
|
141
|
-
* [100, 100, 400, 400],
|
|
142
|
-
* {
|
|
143
|
-
* filter: ["==", "type", "Point"],
|
|
144
|
-
* layers: ["restaurants", "shops"],
|
|
145
|
-
* },
|
|
146
|
-
* );
|
|
168
|
+
* @returns Queried features
|
|
147
169
|
*
|
|
148
|
-
* @
|
|
170
|
+
* @example
|
|
171
|
+
* ```ts
|
|
172
|
+
* await mapRef.current?.queryRenderedFeatures([100, 100, 400, 400], {
|
|
173
|
+
* filter: ["==", "type", "Point"],
|
|
174
|
+
* layers: ["restaurants", "shops"],
|
|
175
|
+
* });
|
|
176
|
+
* ```
|
|
149
177
|
*/
|
|
150
178
|
queryRenderedFeatures(pixelPointBounds: PixelPointBounds, options?: QueryRenderedFeaturesOptions): Promise<GeoJSON.Feature[]>;
|
|
151
179
|
/**
|
|
152
180
|
* Query rendered features within the current viewport
|
|
153
181
|
*
|
|
154
|
-
* @
|
|
155
|
-
* await mapRef.current?.queryRenderedFeatures(
|
|
156
|
-
* {
|
|
157
|
-
* filter: ["==", "type", "Point"],
|
|
158
|
-
* layers: ["restaurants", "shops"],
|
|
159
|
-
* },
|
|
160
|
-
* );
|
|
182
|
+
* @returns Queried features
|
|
161
183
|
*
|
|
162
|
-
* @
|
|
184
|
+
* @example
|
|
185
|
+
* ```ts
|
|
186
|
+
* await mapRef.current?.queryRenderedFeatures({
|
|
187
|
+
* filter: ["==", "type", "Point"],
|
|
188
|
+
* layers: ["restaurants", "shops"],
|
|
189
|
+
* });
|
|
190
|
+
* ```
|
|
163
191
|
*/
|
|
164
192
|
queryRenderedFeatures(options?: QueryRenderedFeaturesOptions): Promise<GeoJSON.Feature[]>;
|
|
165
193
|
/**
|
|
166
194
|
* Takes static-map image of the currently displayed map
|
|
167
195
|
*
|
|
168
|
-
* @
|
|
169
|
-
*
|
|
170
|
-
* @return Base64 encoded image or URI of image file
|
|
196
|
+
* @returns Base64 encoded image or URI of image file
|
|
171
197
|
*/
|
|
172
198
|
createStaticMapImage(options: {
|
|
173
199
|
output: "base64" | "file";
|
|
174
200
|
}): Promise<string>;
|
|
175
201
|
/**
|
|
176
|
-
* Sets the visibility of all the layers referencing the specified `source` and
|
|
177
|
-
*
|
|
178
|
-
* @example
|
|
179
|
-
* await mapRef.current?.setSourceVisibility(false, 'composite', 'building')
|
|
202
|
+
* Sets the visibility of all the layers referencing the specified `source` and
|
|
203
|
+
* optionally `sourceLayer`
|
|
180
204
|
*
|
|
181
205
|
* @param visible - Visibility of the layers
|
|
182
206
|
* @param source - Identifier of the target source (e.g. 'composite')
|
|
183
207
|
* @param sourceLayer - Identifier of the target source-layer (e.g. 'building')
|
|
208
|
+
*
|
|
209
|
+
* @example
|
|
210
|
+
* ```ts
|
|
211
|
+
* await mapRef.current?.setSourceVisibility(false, "composite", "building");
|
|
212
|
+
* ```
|
|
184
213
|
*/
|
|
185
214
|
setSourceVisibility(visible: boolean, source: string, sourceLayer?: string): Promise<void>;
|
|
186
215
|
/**
|
|
@@ -190,18 +219,17 @@ export interface MapRef {
|
|
|
190
219
|
*/
|
|
191
220
|
showAttribution(): Promise<void>;
|
|
192
221
|
}
|
|
193
|
-
export interface MapProps extends BaseProps {
|
|
194
|
-
children?: ReactNode;
|
|
222
|
+
export interface MapProps extends BaseProps, ViewProps {
|
|
195
223
|
/**
|
|
196
224
|
* Style for wrapping React Native View
|
|
197
225
|
*
|
|
198
|
-
* @
|
|
226
|
+
* @defaultValue { flex: 1 }
|
|
199
227
|
*/
|
|
200
228
|
style?: ViewProps["style"];
|
|
201
229
|
/**
|
|
202
230
|
* Maplibre style - either a URL or a Style JSON.
|
|
203
231
|
*
|
|
204
|
-
* @see https://maplibre.org/maplibre-style-spec/
|
|
232
|
+
* @see {@link https://maplibre.org/maplibre-style-spec/}
|
|
205
233
|
*/
|
|
206
234
|
mapStyle: string | StyleSpecification;
|
|
207
235
|
/**
|
|
@@ -209,45 +237,65 @@ export interface MapProps extends BaseProps {
|
|
|
209
237
|
* Controls the light source for extruded geometries.
|
|
210
238
|
*
|
|
211
239
|
* @example
|
|
240
|
+
* ```tsx
|
|
212
241
|
* light={{ position: [1.5, 90, 80], color: "#ffffff", intensity: 0.5 }}
|
|
242
|
+
* ```
|
|
213
243
|
*/
|
|
214
244
|
light?: LightSpecification;
|
|
215
245
|
/**
|
|
216
|
-
* The distance from the edges of the map view's frame to the edges of the map
|
|
246
|
+
* The distance from the edges of the map view's frame to the edges of the map
|
|
247
|
+
* view's logical viewport.
|
|
217
248
|
*/
|
|
218
249
|
contentInset?: ViewPadding;
|
|
219
250
|
/**
|
|
220
|
-
* iOS
|
|
221
|
-
*
|
|
251
|
+
* **iOS**: The preferred frame rate at which the map view is rendered. The
|
|
252
|
+
* default value for this property is MLNMapViewPreferredFramesPerSecondDefault,
|
|
222
253
|
* which will adaptively set the preferred frame rate based on the capability of
|
|
223
|
-
* the user’s device to maintain a smooth experience. This property can be set
|
|
254
|
+
* the user’s device to maintain a smooth experience. This property can be set
|
|
255
|
+
* to arbitrary integer values.
|
|
224
256
|
*
|
|
225
|
-
* Android
|
|
226
|
-
* This property can be set to
|
|
257
|
+
* **Android**: The maximum frame rate at which the map view is rendered, but it
|
|
258
|
+
* can't exceed the ability of device hardware. This property can be set to
|
|
259
|
+
* arbitrary integer values.
|
|
227
260
|
*/
|
|
228
261
|
preferredFramesPerSecond?: number;
|
|
229
262
|
/**
|
|
230
263
|
* Toggle pan interaction of the map
|
|
231
264
|
*
|
|
232
|
-
* @
|
|
265
|
+
* @defaultValue true
|
|
233
266
|
*/
|
|
234
267
|
dragPan?: boolean;
|
|
235
268
|
/**
|
|
236
|
-
* Toggle zoom interaction of the map
|
|
269
|
+
* Toggle pinch/scroll zoom interaction of the map.
|
|
270
|
+
*
|
|
271
|
+
* On Android this also disables {@link doubleTapZoom} and {@link doubleTapHoldZoom}.
|
|
272
|
+
*
|
|
273
|
+
* @defaultValue true
|
|
274
|
+
*/
|
|
275
|
+
touchZoom?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Toggle double-tap zoom interaction of the map.
|
|
278
|
+
*
|
|
279
|
+
* @defaultValue true
|
|
280
|
+
*/
|
|
281
|
+
doubleTapZoom?: boolean;
|
|
282
|
+
/**
|
|
283
|
+
* Toggle double-tap-and-hold zoom interaction of the map (also known as quick
|
|
284
|
+
* zoom and one finger zoom).
|
|
237
285
|
*
|
|
238
|
-
* @
|
|
286
|
+
* @defaultValue true
|
|
239
287
|
*/
|
|
240
|
-
|
|
288
|
+
doubleTapHoldZoom?: boolean;
|
|
241
289
|
/**
|
|
242
290
|
* Toggle rotate interaction of the map
|
|
243
291
|
*
|
|
244
|
-
* @
|
|
292
|
+
* @defaultValue true
|
|
245
293
|
*/
|
|
246
294
|
touchRotate?: boolean;
|
|
247
295
|
/**
|
|
248
296
|
* Toggle pitch interaction of the map
|
|
249
297
|
*
|
|
250
|
-
* @
|
|
298
|
+
* @defaultValue true
|
|
251
299
|
*/
|
|
252
300
|
touchPitch?: boolean;
|
|
253
301
|
/**
|
|
@@ -262,7 +310,9 @@ export interface MapProps extends BaseProps {
|
|
|
262
310
|
* Positions the attribution button
|
|
263
311
|
*
|
|
264
312
|
* @example Position in the top-left corner
|
|
313
|
+
* ```ts
|
|
265
314
|
* { top: 8, left: 8 }
|
|
315
|
+
* ```
|
|
266
316
|
*/
|
|
267
317
|
attributionPosition?: OrnamentViewPosition;
|
|
268
318
|
/**
|
|
@@ -273,7 +323,9 @@ export interface MapProps extends BaseProps {
|
|
|
273
323
|
* Positions the logo
|
|
274
324
|
*
|
|
275
325
|
* @example Position in the top-left corner
|
|
326
|
+
* ```ts
|
|
276
327
|
* { top: 8, left: 8 }
|
|
328
|
+
* ```
|
|
277
329
|
*/
|
|
278
330
|
logoPosition?: OrnamentViewPosition;
|
|
279
331
|
/**
|
|
@@ -284,28 +336,43 @@ export interface MapProps extends BaseProps {
|
|
|
284
336
|
* Positions the compass
|
|
285
337
|
*
|
|
286
338
|
* @example Position in the top-left corner
|
|
339
|
+
* ```ts
|
|
287
340
|
* { top: 8, left: 8 }
|
|
341
|
+
* ```
|
|
288
342
|
*/
|
|
289
343
|
compassPosition?: OrnamentViewPosition;
|
|
290
344
|
/**
|
|
291
345
|
* Toggle the compass from hiding when facing north
|
|
292
346
|
*
|
|
293
|
-
* @
|
|
347
|
+
* @defaultValue true
|
|
294
348
|
*/
|
|
295
349
|
compassHiddenFacingNorth?: boolean;
|
|
350
|
+
/**
|
|
351
|
+
* Toggle the scale bar on the map
|
|
352
|
+
*/
|
|
353
|
+
scaleBar?: boolean;
|
|
354
|
+
/**
|
|
355
|
+
* Positions the scale bar. Android only supports top-left corner.
|
|
356
|
+
*
|
|
357
|
+
* @example Position in the bottom-left corner
|
|
358
|
+
* ```ts
|
|
359
|
+
* { bottom: 8, left: 8 }
|
|
360
|
+
* ```
|
|
361
|
+
*/
|
|
362
|
+
scaleBarPosition?: OrnamentViewPosition;
|
|
296
363
|
/**
|
|
297
364
|
* Android only: Switch between TextureView (default) and GLSurfaceView for
|
|
298
365
|
* rendering the map
|
|
299
366
|
*
|
|
300
|
-
* @
|
|
367
|
+
* @defaultValue "surface"
|
|
301
368
|
*/
|
|
302
369
|
androidView?: "surface" | "texture";
|
|
303
370
|
/**
|
|
304
371
|
* Called when a user presses the map
|
|
305
372
|
*
|
|
306
373
|
* If the event bubbles up from a child `Source` with an `onPress` handler the
|
|
307
|
-
* `features` will be included. The event will emit on `Map` and `Source
|
|
308
|
-
*
|
|
374
|
+
* `features` will be included. The event will emit on `Map` and `Source` . To
|
|
375
|
+
* prevent this use `event.stopPropagation()` in the `Source` handler.
|
|
309
376
|
*/
|
|
310
377
|
onPress?: (event: NativeSyntheticEvent<PressEvent> | NativeSyntheticEvent<PressEventWithFeatures>) => void;
|
|
311
378
|
/**
|
|
@@ -364,9 +431,18 @@ export interface MapProps extends BaseProps {
|
|
|
364
431
|
* Triggered when a style has finished loading
|
|
365
432
|
*/
|
|
366
433
|
onDidFinishLoadingStyle?: (event: NativeSyntheticEvent<null>) => void;
|
|
434
|
+
/**
|
|
435
|
+
* Ref to access Map methods.
|
|
436
|
+
*/
|
|
437
|
+
ref?: Ref<MapRef>;
|
|
367
438
|
}
|
|
368
439
|
/**
|
|
369
|
-
* MapLibre Native Map
|
|
440
|
+
* A view of a MapLibre Native Map.
|
|
441
|
+
*
|
|
442
|
+
* @example Rendering a basic Map
|
|
443
|
+
* ```tsx
|
|
444
|
+
* <Map mapStyle="https://demotiles.maplibre.org/style.json" />;
|
|
445
|
+
* ```
|
|
370
446
|
*/
|
|
371
|
-
export declare const Map: import("react").
|
|
447
|
+
export declare const Map: import("react").MemoExoticComponent<({ androidView, style, ref, ...props }: MapProps) => import("react/jsx-runtime").JSX.Element>;
|
|
372
448
|
//# sourceMappingURL=Map.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../../../src/components/map/Map.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAKL,KAAK,GAAG,EAMT,MAAM,OAAO,CAAC;AACf,OAAO,EACL,KAAK,oBAAoB,EAKzB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAMtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAU3D;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAC5B;IAAE,GAAG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AEG;IACH,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAEtE;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,GAAG,8EACsC,QAAQ,6CAgJ7D,CAAC"}
|
|
@@ -43,7 +43,9 @@ export interface NativeProps extends ViewProps {
|
|
|
43
43
|
contentInset?: NativeViewPadding;
|
|
44
44
|
preferredFramesPerSecond?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
|
|
45
45
|
dragPan?: CodegenTypes.WithDefault<boolean, true>;
|
|
46
|
-
|
|
46
|
+
touchZoom?: CodegenTypes.WithDefault<boolean, true>;
|
|
47
|
+
doubleTapZoom?: CodegenTypes.WithDefault<boolean, true>;
|
|
48
|
+
doubleTapHoldZoom?: CodegenTypes.WithDefault<boolean, true>;
|
|
47
49
|
touchRotate?: CodegenTypes.WithDefault<boolean, true>;
|
|
48
50
|
touchPitch?: CodegenTypes.WithDefault<boolean, true>;
|
|
49
51
|
tintColor?: ColorValue | undefined;
|
|
@@ -54,6 +56,8 @@ export interface NativeProps extends ViewProps {
|
|
|
54
56
|
compass?: CodegenTypes.WithDefault<boolean, false>;
|
|
55
57
|
compassPosition?: NativeOrnamentViewPosition;
|
|
56
58
|
compassHiddenFacingNorth?: CodegenTypes.WithDefault<boolean, true>;
|
|
59
|
+
scaleBar?: CodegenTypes.WithDefault<boolean, false>;
|
|
60
|
+
scaleBarPosition?: NativeOrnamentViewPosition;
|
|
57
61
|
onPress?: CodegenTypes.BubblingEventHandler<NativePressEvent>;
|
|
58
62
|
onLongPress?: CodegenTypes.BubblingEventHandler<NativePressEvent>;
|
|
59
63
|
onRegionWillChange?: CodegenTypes.DirectEventHandler<NativeViewStateEvent>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapViewNativeComponent.d.ts","sourceRo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,EAAE,YAAY,CAAC,KAAK,EAC5B,UAAU,EAAE,YAAY,CAAC,MAAM,EAAE,EACjC,MAAM,EAAE,MAAM,EAAE,EAChB,MAAM,EAAE,MAAM,EAAE,KACb,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAEhC,+BAA+B,EAAE,CAC/B,QAAQ,EAAE,YAAY,CAAC,KAAK,EAC5B,gBAAgB,EAAE,YAAY,CAAC,MAAM,EAAE,EAAE,GAAG,IAAI,EAChD,MAAM,EAAE,MAAM,EAAE,EAChB,MAAM,EAAE,MAAM,EAAE,KACb,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAEhC,mBAAmB,EAAE,CACnB,QAAQ,EAAE,YAAY,CAAC,KAAK,EAC5B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,GAAG,IAAI,KACvB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnB,oBAAoB,EAAE,CACpB,QAAQ,EAAE,YAAY,CAAC,KAAK,EAC5B,MAAM,EAAE,QAAQ,GAAG,MAAM,KACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAErB,eAAe,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAClE;;AAED,wBAA2E"}
|
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
import type { FilterSpecification, GeoJSONSourceSpecification } from "@maplibre/maplibre-gl-style-spec";
|
|
2
|
-
import { type ReactNode } from "react";
|
|
2
|
+
import { type ReactNode, type Ref } from "react";
|
|
3
3
|
import { type BaseProps } from "../../../types/BaseProps";
|
|
4
|
-
import type { PressableSourceProps } from "../../../types/
|
|
4
|
+
import type { PressableSourceProps } from "../../../types/PressableSourceProps";
|
|
5
5
|
export interface GeoJSONSourceRef {
|
|
6
6
|
/**
|
|
7
|
-
* Get all features from the source that match the filter, regardless of
|
|
7
|
+
* Get all features from the source that match the filter, regardless of
|
|
8
|
+
* visibility
|
|
9
|
+
*
|
|
10
|
+
* @param filter - Optional filter statement to filter the returned features
|
|
8
11
|
*
|
|
9
12
|
* @example
|
|
10
13
|
* const data = await geoJSONSourceRef.current?.getData(clusterId);
|
|
11
|
-
*
|
|
12
|
-
* @param filter Optional filter statement to filter the returned features
|
|
13
14
|
*/
|
|
14
15
|
getData(filter?: FilterSpecification): Promise<GeoJSON.FeatureCollection>;
|
|
15
16
|
/**
|
|
16
17
|
* Returns the zoom needed to expand the cluster.
|
|
17
18
|
*
|
|
19
|
+
* @param clusterId - The feature cluster to expand.
|
|
20
|
+
* @returns Zoom level at which the cluster expands
|
|
21
|
+
*
|
|
18
22
|
* @example
|
|
19
23
|
* const zoom = await geoJSONSourceRef.current?.getClusterExpansionZoom(clusterId);
|
|
20
|
-
*
|
|
21
|
-
* @param clusterId The feature cluster to expand.
|
|
22
|
-
* @return Zoom level at which the cluster expands
|
|
23
24
|
*/
|
|
24
25
|
getClusterExpansionZoom(clusterId: number): Promise<number>;
|
|
25
26
|
/**
|
|
26
27
|
* Returns the FeatureCollection from the cluster.
|
|
27
28
|
*
|
|
28
|
-
* @
|
|
29
|
-
* const collection = await geoJSONSourceRef.current?.getClusterLeaves(clusterId, limit, offset);
|
|
30
|
-
*
|
|
31
|
-
* @param clusterId The feature cluster to expand.
|
|
29
|
+
* @param clusterId - The feature cluster to expand.
|
|
32
30
|
* @param limit - The number of points to return.
|
|
33
31
|
* @param offset - The amount of points to skip (for pagination).
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* const collection = await geoJSONSourceRef.current?.getClusterLeaves(clusterId, limit, offset);
|
|
34
35
|
*/
|
|
35
36
|
getClusterLeaves(clusterId: number, limit: number, offset: number): Promise<GeoJSON.Feature[]>;
|
|
36
37
|
/**
|
|
37
38
|
* Returns the FeatureCollection from the cluster (on the next zoom level).
|
|
38
39
|
*
|
|
40
|
+
* @param clusterId - The feature cluster to expand.
|
|
41
|
+
*
|
|
39
42
|
* @example
|
|
40
43
|
* const collection = await geoJSONSourceRef.current?.getClusterChildren(clusterId);
|
|
41
|
-
*
|
|
42
|
-
* @param clusterId - The feature cluster to expand.
|
|
43
44
|
*/
|
|
44
45
|
getClusterChildren(clusterId: number): Promise<GeoJSON.Feature[]>;
|
|
45
46
|
}
|
|
@@ -50,7 +51,8 @@ export interface GeoJSONSourceProps extends BaseProps, PressableSourceProps {
|
|
|
50
51
|
id?: string;
|
|
51
52
|
/**
|
|
52
53
|
* Can be provided as one of:
|
|
53
|
-
* - An HTTP(S) URL, absolute file URL, or local file URL relative to the current
|
|
54
|
+
* - An HTTP(S) URL, absolute file URL, or local file URL relative to the current
|
|
55
|
+
* application’s resource bundle
|
|
54
56
|
* - Any valid GeoJSON object
|
|
55
57
|
*/
|
|
56
58
|
data: string | GeoJSON.GeoJSON;
|
|
@@ -59,46 +61,44 @@ export interface GeoJSONSourceProps extends BaseProps, PressableSourceProps {
|
|
|
59
61
|
*/
|
|
60
62
|
cluster?: boolean;
|
|
61
63
|
/**
|
|
62
|
-
* Specifies the radius of each cluster if clustering is enabled.
|
|
63
|
-
*
|
|
64
|
-
* The default value is 50.
|
|
64
|
+
* Specifies the radius of each cluster if clustering is enabled. A value of 512
|
|
65
|
+
* produces a radius equal to the width of a tile. The default value is 50.
|
|
65
66
|
*/
|
|
66
67
|
clusterRadius?: number;
|
|
67
68
|
/**
|
|
68
|
-
* Specifies minimum number of points to form a cluster if clustering is
|
|
69
|
-
* The default value is 2.
|
|
69
|
+
* Specifies minimum number of points to form a cluster if clustering is
|
|
70
|
+
* enabled. The default value is 2.
|
|
70
71
|
*/
|
|
71
72
|
clusterMinPoints?: number;
|
|
72
73
|
/**
|
|
73
|
-
* Specifies the maximum zoom level at which to cluster points if clustering is
|
|
74
|
-
* Defaults to one zoom level less than the value of maxzoom so that,
|
|
75
|
-
* the data is not clustered.
|
|
74
|
+
* Specifies the maximum zoom level at which to cluster points if clustering is
|
|
75
|
+
* enabled. Defaults to one zoom level less than the value of maxzoom so that,
|
|
76
|
+
* at the maximum zoom, the data is not clustered.
|
|
76
77
|
*/
|
|
77
78
|
clusterMaxZoom?: number;
|
|
78
79
|
/**
|
|
79
|
-
* Specifies custom properties on the generated clusters if clustering
|
|
80
|
-
*
|
|
80
|
+
* Specifies custom properties on the generated clusters if clustering is
|
|
81
|
+
* enabled, aggregating values from clustered points.
|
|
81
82
|
*
|
|
82
|
-
* Has the form `{ "property_name": [operator, map_expression]}
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
83
|
+
* Has the form `{ "property_name": [operator, map_expression]}` , where
|
|
84
|
+
* `operator` is a custom reduce expression that references a special
|
|
85
|
+
* `["accumulated"]` value - it accumulates the property value from
|
|
86
|
+
* clusters/points the cluster contains `map_expression` produces the value of a
|
|
87
|
+
* single point
|
|
86
88
|
*
|
|
87
89
|
* @example `{ "resultingSum": [["+", ["accumulated"], ["get", "resultingSum"]], ["get", "scalerank"]] }`
|
|
88
|
-
*
|
|
89
90
|
*/
|
|
90
91
|
clusterProperties?: GeoJSONSourceSpecification["clusterProperties"];
|
|
91
92
|
/**
|
|
92
|
-
* Specifies the maximum zoom level at which to create vector tiles.
|
|
93
|
-
*
|
|
94
|
-
* The default value is 18.
|
|
93
|
+
* Specifies the maximum zoom level at which to create vector tiles. A greater
|
|
94
|
+
* value produces greater detail at high zoom levels. The default value is 18.
|
|
95
95
|
*/
|
|
96
96
|
maxzoom?: number;
|
|
97
97
|
/**
|
|
98
|
-
* Specifies the size of the tile buffer on each side.
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* The default value is 128.
|
|
98
|
+
* Specifies the size of the tile buffer on each side. A value of 0 produces no
|
|
99
|
+
* buffer. A value of 512 produces a buffer as wide as the tile itself. Larger
|
|
100
|
+
* values produce fewer rendering artifacts near tile edges and slower
|
|
101
|
+
* performance. The default value is 128.
|
|
102
102
|
*/
|
|
103
103
|
buffer?: number;
|
|
104
104
|
/**
|
|
@@ -106,20 +106,23 @@ export interface GeoJSONSourceProps extends BaseProps, PressableSourceProps {
|
|
|
106
106
|
*
|
|
107
107
|
* Higher means simpler geometries and faster performance.
|
|
108
108
|
*
|
|
109
|
-
* @
|
|
109
|
+
* @defaultValue 0.375
|
|
110
110
|
*/
|
|
111
111
|
tolerance?: number;
|
|
112
112
|
/**
|
|
113
|
-
* Whether to calculate line distance metrics.
|
|
114
|
-
*
|
|
115
|
-
* The default value is false.
|
|
113
|
+
* Whether to calculate line distance metrics. This is required for line layers
|
|
114
|
+
* that specify lineGradient values. The default value is false.
|
|
116
115
|
*/
|
|
117
116
|
lineMetrics?: boolean;
|
|
118
117
|
children?: ReactNode;
|
|
118
|
+
/**
|
|
119
|
+
* Ref to access GeoJSONSource methods.
|
|
120
|
+
*/
|
|
121
|
+
ref?: Ref<GeoJSONSourceRef>;
|
|
119
122
|
}
|
|
120
123
|
/**
|
|
121
|
-
* GeoJSONSource is a map content source that supplies GeoJSON to be shown on
|
|
122
|
-
* The data may be provided as an url or a GeoJSON object.
|
|
124
|
+
* GeoJSONSource is a map content source that supplies GeoJSON to be shown on
|
|
125
|
+
* the map. The data may be provided as an url or a GeoJSON object.
|
|
123
126
|
*/
|
|
124
|
-
export declare const GeoJSONSource: import("react").
|
|
127
|
+
export declare const GeoJSONSource: import("react").MemoExoticComponent<({ id, data, ref, ...props }: GeoJSONSourceProps) => import("react/jsx-runtime").JSX.Element>;
|
|
125
128
|
//# sourceMappingURL=GeoJSONSource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoJSONSource.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/geojson-source/GeoJSONSource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,GAAG,EAGT,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,KA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