@maplibre/maplibre-react-native 11.0.0-beta.9 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MapLibreReactNative.podspec +1 -1
- package/README.md +0 -5
- package/android/build.gradle +3 -1
- package/android/gradle.properties +2 -2
- package/android/src/main/java/org/maplibre/reactnative/MLRNPackage.kt +14 -1
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerView.kt +35 -29
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerViewManager.kt +8 -1
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MarkerViewManager.kt +8 -5
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/pointannotation/MLRNPointAnnotation.kt +45 -25
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/pointannotation/MLRNPointAnnotationManager.kt +2 -1
- package/android/src/main/java/org/maplibre/reactnative/components/layer/MLRNLayer.kt +8 -8
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyle.kt +60 -0
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFactory.kt +3005 -0
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleValue.kt +159 -0
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.kt +234 -128
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.kt +37 -3
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewModule.kt +3 -1
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNLogModule.kt +2 -0
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNNetworkModule.kt +0 -42
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNOfflineModule.kt +27 -4
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNTransformRequestModule.kt +144 -0
- package/android/src/main/java/org/maplibre/reactnative/modules/TransformRequestInterceptor.kt +184 -0
- package/ios/components/annotations/point-annotation/MLRNPointAnnotation.h +3 -2
- package/ios/components/annotations/point-annotation/MLRNPointAnnotation.m +65 -2
- package/ios/components/annotations/point-annotation/MLRNPointAnnotationComponentView.mm +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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_MarkerViewNativeComponent","_interopRequireDefault","_useFrozenId","_Anchor","_ViewAnnotation","_jsxRuntime","e","__esModule","default","Marker","id","anchor","offset","ref","props","nativeRef","useRef","viewAnnotationRef","nativeAnchor","anchorToNative","nativeOffset","x","y","undefined","frozenId","useFrozenId","useImperativeHandle","getAnimatableRef","Platform","OS","current","jsx","ViewAnnotation","style","flex","alignSelf","overflow","children","View","collapsable","exports"],"sourceRoot":"../../../../../src","sources":["components/annotations/marker/Marker.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAQA,IAAAC,YAAA,GAAAD,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_MarkerViewNativeComponent","_interopRequireDefault","_useFrozenId","_Anchor","_ViewAnnotation","_jsxRuntime","e","__esModule","default","Marker","id","anchor","offset","ref","props","nativeRef","useRef","viewAnnotationRef","nativeAnchor","anchorToNative","nativeOffset","x","y","undefined","frozenId","useFrozenId","useImperativeHandle","getAnimatableRef","Platform","OS","current","Proxy","get","target","prop","__viewConfig","jsx","ViewAnnotation","style","flex","alignSelf","overflow","children","View","collapsable","exports"],"sourceRoot":"../../../../../src","sources":["components/annotations/marker/Marker.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAQA,IAAAC,YAAA,GAAAD,OAAA;AAQA,IAAAE,0BAAA,GAAAC,sBAAA,CAAAH,OAAA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AI;MACnB,CAAC,CAAC,GACF,IAAI;IACV;EACF,CAAC,CAAC,CAAC;EAEH,IAAIN,qBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;IACzB,oBACE,IAAAxB,WAAA,CAAA+B,GAAA,EAAChC,eAAA,CAAAiC,cAAc;MACbxB,GAAG,EAAEI,iBAAkB;MACvBP,EAAE,EAAEc,QAAS;MACbb,MAAM,EAAEA,MAAO;MACfC,MAAM,EAAEA,MAAO;MAAA,GACXE;IAAK,CACV,CAAC;EAEN;EAEA,oBACE,IAAAT,WAAA,CAAA+B,GAAA,EAACpC,0BAAA,CAAAQ,OAAyB;IACxBK,GAAG,EAAEE,SAAU;IACfL,EAAE,EAAEc,QAAS;IACbb,MAAM,EAAEO,YAAa;IACrBN,MAAM,EAAEQ,YAAa;IAAA,GACjBN,KAAK;IACTwB,KAAK,EAAE,CACL;MAAEC,IAAI,EAAE,CAAC;MAAEC,SAAS,EAAE,YAAY;MAAEC,QAAQ,EAAE;IAAU,CAAC,EACzD3B,KAAK,CAACwB,KAAK,CACX;IAAAI,QAAA,eAEF,IAAArC,WAAA,CAAA+B,GAAA,EAACrC,YAAA,CAAA4C,IAAI;MACHC,WAAW,EAAE,KAAM;MACnBN,KAAK,EAAE;QAAEC,IAAI,EAAE,CAAC;QAAEC,SAAS,EAAE,YAAY;QAAEC,QAAQ,EAAE;MAAU,CAAE;MAAAC,QAAA,EAEhE5B,KAAK,CAAC4B;IAAQ,CACX;EAAC,CACkB,CAAC;AAEhC,CAAC;AAACG,OAAA,CAAApC,MAAA,GAAAA,MAAA","ignoreList":[]}
|
|
@@ -17,12 +17,22 @@ type NativeOffset = {
|
|
|
17
17
|
y: CodegenTypes.Double;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
+
type NativeMarkerPressEvent = {
|
|
21
|
+
id: string;
|
|
22
|
+
lngLat: UnsafeMixed<
|
|
23
|
+
[longitude: CodegenTypes.Double, latitude: CodegenTypes.Double]
|
|
24
|
+
>;
|
|
25
|
+
point: UnsafeMixed<[x: CodegenTypes.Double, y: CodegenTypes.Double]>;
|
|
26
|
+
};
|
|
27
|
+
|
|
20
28
|
export interface NativeProps extends ViewProps {
|
|
29
|
+
id: string;
|
|
21
30
|
lngLat: UnsafeMixed<
|
|
22
31
|
[longitude: CodegenTypes.Double, latitude: CodegenTypes.Double]
|
|
23
32
|
>;
|
|
24
33
|
anchor?: NativeAnchor;
|
|
25
34
|
offset?: NativeOffset;
|
|
35
|
+
onPress?: CodegenTypes.BubblingEventHandler<NativeMarkerPressEvent>;
|
|
26
36
|
}
|
|
27
37
|
|
|
28
38
|
export default codegenNativeComponent<NativeProps>(
|
package/lib/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.ts
CHANGED
|
@@ -38,8 +38,9 @@ export interface NativeProps extends ViewProps {
|
|
|
38
38
|
anchor?: NativeAnchor;
|
|
39
39
|
offset?: NativeOffset;
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
onPress?: CodegenTypes.BubblingEventHandler<NativeAnnotationEvent>;
|
|
42
|
+
onSelect?: CodegenTypes.BubblingEventHandler<NativeAnnotationEvent>;
|
|
43
|
+
onDeselect?: CodegenTypes.BubblingEventHandler<NativeAnnotationEvent>;
|
|
43
44
|
onDragStart?: CodegenTypes.DirectEventHandler<NativeAnnotationEvent>;
|
|
44
45
|
onDrag?: CodegenTypes.DirectEventHandler<NativeAnnotationEvent>;
|
|
45
46
|
onDragEnd?: CodegenTypes.DirectEventHandler<NativeAnnotationEvent>;
|
|
@@ -19,14 +19,20 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
19
19
|
position: "absolute"
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Event emitted by a ViewAnnotation on press.
|
|
25
|
+
*/
|
|
26
|
+
|
|
22
27
|
/**
|
|
23
|
-
* ViewAnnotation represents a one-dimensional shape located at a single
|
|
28
|
+
* ViewAnnotation represents a one-dimensional shape located at a single
|
|
29
|
+
* geographical coordinate.
|
|
24
30
|
*
|
|
25
|
-
* Consider using GeoJSONSource and SymbolLayer instead, if you have many
|
|
26
|
-
* they'll offer much better performance.
|
|
31
|
+
* Consider using GeoJSONSource and SymbolLayer instead, if you have many
|
|
32
|
+
* points, and you have static images, they'll offer much better performance.
|
|
27
33
|
*
|
|
28
|
-
* If you need interactive views please use Marker,
|
|
29
|
-
*
|
|
34
|
+
* If you need interactive views please use Marker, as with ViewAnnotation on
|
|
35
|
+
* Android child views are rendered onto a bitmap for better performance.
|
|
30
36
|
*/
|
|
31
37
|
const ViewAnnotation = ({
|
|
32
38
|
id,
|
|
@@ -44,19 +50,16 @@ const ViewAnnotation = ({
|
|
|
44
50
|
} : undefined;
|
|
45
51
|
const nativeRef = (0, _react.useRef)(null);
|
|
46
52
|
(0, _react.useImperativeHandle)(ref, () => ({
|
|
47
|
-
refresh
|
|
48
|
-
|
|
53
|
+
refresh: () => {
|
|
54
|
+
if (_reactNative.Platform.OS === "android" && nativeRef.current) {
|
|
55
|
+
_PointAnnotationNativeComponent.Commands.refresh(nativeRef.current);
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
// Reanimated v4 compatibility: createAnimatedComponent looks for _viewConfig but native has __viewConfig
|
|
59
|
+
getAnimatableRef: () => nativeRef.current ? new Proxy(nativeRef.current, {
|
|
60
|
+
get: (target, prop) => prop === "_viewConfig" ? target.__viewConfig : target[prop]
|
|
61
|
+
}) : null
|
|
49
62
|
}));
|
|
50
|
-
function refresh() {
|
|
51
|
-
if (_reactNative.Platform.OS === "android" && nativeRef.current) {
|
|
52
|
-
_PointAnnotationNativeComponent.Commands.refresh(nativeRef.current);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// On Android, wrap children in a non-collapsable View to prevent Fabric
|
|
57
|
-
// from flattening the view hierarchy. Without this, Fabric may flatten
|
|
58
|
-
// intermediate Views, causing their backgrounds to disappear.
|
|
59
|
-
// We need to keep Callout separate so native code can identify it.
|
|
60
63
|
const wrappedChildren = (() => {
|
|
61
64
|
if (_reactNative.Platform.OS !== "android") {
|
|
62
65
|
return props.children;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_PointAnnotationNativeComponent","_interopRequireWildcard","_useFrozenId","_Anchor","_Callout","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","styles","StyleSheet","create","container","alignItems","justifyContent","position","ViewAnnotation","id","anchor","draggable","offset","ref","props","frozenId","useFrozenId","nativeAnchor","anchorToNative","nativeOffset","x","y","undefined","nativeRef","useRef","useImperativeHandle","refresh","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_PointAnnotationNativeComponent","_interopRequireWildcard","_useFrozenId","_Anchor","_Callout","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","styles","StyleSheet","create","container","alignItems","justifyContent","position","ViewAnnotation","id","anchor","draggable","offset","ref","props","frozenId","useFrozenId","nativeAnchor","anchorToNative","nativeOffset","x","y","undefined","nativeRef","useRef","useImperativeHandle","refresh","Platform","OS","current","Commands","getAnimatableRef","Proxy","target","prop","__viewConfig","wrappedChildren","children","childArray","Children","toArray","callout","find","child","isValidElement","type","Callout","otherChildren","filter","jsxs","Fragment","jsx","View","collapsable","style","overflow","exports"],"sourceRoot":"../../../../../src","sources":["components/annotations/view-annotation/ViewAnnotation.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAUA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,+BAAA,GAAAC,uBAAA,CAAAH,OAAA;AAGA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAIA,IAAAM,QAAA,GAAAN,OAAA;AAA6C,IAAAO,WAAA,GAAA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,iBAAAC,qBAAc,EAACD,KAAK,CAAC,IAAIA,KAAK,CAACE,IAAI,KAAKC,gBACrD,CAAC;IACD,MAAMC,aAAa,GAAGT,UAAU,CAACU,MAAM,CACpCL,KAAK,IAAK,eAAC,IAAAC,qBAAc,EAACD,KAAK,CAAC,IAAIA,KAAK,CAACE,IAAI,KAAKC,gBACtD,CAAC;IAED,oBACE,IAAAjE,WAAA,CAAAoE,IAAA,EAAApE,WAAA,CAAAqE,QAAA;MAAAb,QAAA,gBACE,IAAAxD,WAAA,CAAAsE,GAAA,EAAC5E,YAAA,CAAA6E,IAAI;QAACC,WAAW,EAAE,KAAM;QAACC,KAAK,EAAE;UAAEC,QAAQ,EAAE;QAAU,CAAE;QAAAlB,QAAA,EACtDU;MAAa,CACV,CAAC,EACNN,OAAO;IAAA,CACR,CAAC;EAEP,CAAC,EAAE,CAAC;EAEJ,oBACE,IAAA5D,WAAA,CAAAsE,GAAA,EAAC3E,+BAAA,CAAAgB,OAA8B;IAC7BqB,GAAG,EAAEU,SAAU;IAAA,GACXT,KAAK;IACTL,EAAE,EAAEM,QAAS;IACbL,MAAM,EAAEO,YAAa;IACrBL,MAAM,EAAEO,YAAa;IACrBR,SAAS,EAAEA,SAAU;IACrB2C,KAAK,EAAE,CAACxC,KAAK,CAACwC,KAAK,EAAErD,MAAM,CAACG,SAAS,CAAE;IAAAiC,QAAA,EAEtCD;EAAe,CACc,CAAC;AAErC,CAAC;AAACoB,OAAA,CAAAhD,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -10,7 +10,55 @@ var _CameraNativeComponent = _interopRequireDefault(require("./CameraNativeCompo
|
|
|
10
10
|
var _NativeCameraModule = _interopRequireDefault(require("./NativeCameraModule.js"));
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Camera viewport configuration: zoom, bearing, pitch, and padding.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Easing function used for camera animations.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Animation timing options for camera transitions.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Camera center coordinate options.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Camera bounds options.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Camera animation stop positioned by a center coordinate.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Camera animation stop positioned by geographic bounds.
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* A single camera animation stop — optionally positioned by center, bounds, or
|
|
43
|
+
* neither.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initial camera state when the map first loads.
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* User location tracking mode.
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Event emitted when the user location tracking mode changes.
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Controls the viewport of the Map.
|
|
60
|
+
*/
|
|
61
|
+
const Camera = exports.Camera = /*#__PURE__*/(0, _react.memo)(({
|
|
14
62
|
testID,
|
|
15
63
|
initialViewState,
|
|
16
64
|
minZoom,
|
|
@@ -18,8 +66,9 @@ const Camera = exports.Camera = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _
|
|
|
18
66
|
maxBounds,
|
|
19
67
|
trackUserLocation,
|
|
20
68
|
onTrackUserLocationChange,
|
|
69
|
+
ref,
|
|
21
70
|
...stop
|
|
22
|
-
}
|
|
71
|
+
}) => {
|
|
23
72
|
const nativeRef = (0, _react.useRef)(null);
|
|
24
73
|
const setStop = stop => {
|
|
25
74
|
const nodeHandle = (0, _reactNative.findNodeHandle)(nativeRef.current);
|
|
@@ -93,5 +142,5 @@ const Camera = exports.Camera = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _
|
|
|
93
142
|
trackUserLocation: trackUserLocation,
|
|
94
143
|
onTrackUserLocationChange: onTrackUserLocationChange
|
|
95
144
|
});
|
|
96
|
-
})
|
|
145
|
+
});
|
|
97
146
|
//# sourceMappingURL=Camera.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_CameraNativeComponent","_interopRequireDefault","_NativeCameraModule","_jsxRuntime","e","__esModule","default","Camera","exports","memo","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_CameraNativeComponent","_interopRequireDefault","_NativeCameraModule","_jsxRuntime","e","__esModule","default","Camera","exports","memo","testID","initialViewState","minZoom","maxZoom","maxBounds","trackUserLocation","onTrackUserLocationChange","ref","stop","nativeRef","useRef","setStop","nodeHandle","findNodeHandle","current","Error","NativeCameraModule","useImperativeHandle","jumpTo","center","options","duration","easing","undefined","easeTo","flyTo","fitBounds","bounds","zoomTo","zoom","jsx"],"sourceRoot":"../../../../src","sources":["components/camera/Camera.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAQA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAsD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAG,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAMtD;AACA;AACA;;AAuBA;AACA;AACA;;AAGA;AACA;AACA;;AAaA;AACA;AACA;;AAQA;AACA;AACA;;AAQA;AACA;AACA;;AAKA;AACA;AACA;;AAKA;AACA;AACA;AACA;;AA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,QAAQ;MAAEC;IAAO,CAAC,CAAC;IAEnDI,SAAS,EAAEA,CACTC,MAAM,EACN;MAAEN,QAAQ,GAAG,IAAI;MAAEC,MAAM,GAAG,KAAK;MAAE,GAAGF;IAAQ,CAAC,GAAG,CAAC,CAAC,KACjDT,OAAO,CAAC;MAAE,GAAGS,OAAO;MAAEO,MAAM;MAAEN,QAAQ;MAAEC;IAAO,CAAC,CAAC;IAEtDM,MAAM,EAAEA,CAACC,IAAI,EAAE;MAAER,QAAQ,GAAG,GAAG;MAAEC,MAAM,GAAG,MAAM;MAAE,GAAGF;IAAQ,CAAC,GAAG,CAAC,CAAC,KACjET,OAAO,CAAC;MAAE,GAAGS,OAAO;MAAES,IAAI;MAAER,QAAQ;MAAEC;IAAO,CAAC;EAClD,CAAC,CAAC,CAAC;EAEH,oBACE,IAAA7B,WAAA,CAAAqC,GAAA,EAACxC,sBAAA,CAAAM,OAAqB;IACpBW,GAAG,EAAEE,SAAU;IACfT,MAAM,EAAEA,MAAO;IACfQ,IAAI,EAAEA,IAAK;IACXP,gBAAgB,EAAEA,gBAAiB;IACnCC,OAAO,EAAEA,OAAQ;IACjBC,OAAO,EAAEA,OAAQ;IACjBC,SAAS,EAAEA,SAAU;IACrBC,iBAAiB,EAAEA,iBAAkB;IACrCC,yBAAyB,EAAEA;EAA0B,CACtD,CAAC;AAEN,CACF,CAAC","ignoreList":[]}
|
|
@@ -7,13 +7,23 @@ exports.Images = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _ImagesNativeComponent = _interopRequireDefault(require("./ImagesNativeComponent"));
|
|
10
|
+
require("./NativeImagesModule.js");
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
/**
|
|
14
|
+
* An image source with optional SDF (Signed Distance Field) rendering mode.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A map image entry: a URL string, a native asset require, or an
|
|
19
|
+
* {@link ImageSourceWithSdf} object.
|
|
20
|
+
*/
|
|
21
|
+
|
|
12
22
|
/**
|
|
13
23
|
* Images defines the images used in Symbol layers.
|
|
14
24
|
*
|
|
15
|
-
* Use this component to add images to the map style that can be referenced
|
|
16
|
-
*
|
|
25
|
+
* Use this component to add images to the map style that can be referenced by
|
|
26
|
+
* symbol layers using the `iconImage` property.
|
|
17
27
|
*/
|
|
18
28
|
const Images = ({
|
|
19
29
|
testID,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_ImagesNativeComponent","_interopRequireDefault","_jsxRuntime","e","__esModule","default","Images","testID","images","onImageMissing","nativeImages","useMemo","result","Object","entries","forEach","imageName","value","uri","resolved","Image","resolveAssetSource","source","scale","sdf","jsx","exports"],"sourceRoot":"../../../../src","sources":["components/images/Images.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_ImagesNativeComponent","_interopRequireDefault","_jsxRuntime","e","__esModule","default","Images","testID","images","onImageMissing","nativeImages","useMemo","result","Object","entries","forEach","imageName","value","uri","resolved","Image","resolveAssetSource","source","scale","sdf","jsx","exports"],"sourceRoot":"../../../../src","sources":["components/images/Images.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAGAA,OAAA;AAA8B,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG9B;AACA;AACA;;AAMA;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
+
exports.default = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
const imagesModule = _reactNative.Platform.OS === "ios" ? _reactNative.TurboModuleRegistry.getEnforcing("MLRNImagesModule") : null;
|
|
9
|
+
var _default = exports.default = imagesModule;
|
|
10
|
+
//# sourceMappingURL=NativeImagesModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","imagesModule","Platform","OS","TurboModuleRegistry","getEnforcing","_default","exports","default"],"sourceRoot":"../../../../src","sources":["components/images/NativeImagesModule.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,MAAMC,YAAY,GAChBC,qBAAQ,CAACC,EAAE,KAAK,KAAK,GACjBC,gCAAmB,CAACC,YAAY,CAAO,kBAAkB,CAAC,GAC1D,IAAI;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEIP,YAAY","ignoreList":[]}
|
|
@@ -70,29 +70,39 @@ let deprecationWarned = false;
|
|
|
70
70
|
/**
|
|
71
71
|
* Layer is a style layer that renders geospatial data on the map.
|
|
72
72
|
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
73
|
+
* Follow the [MapLibre Style
|
|
74
|
+
* Spec](https://maplibre.org/maplibre-style-spec/layers/) for Layer
|
|
75
|
+
* definitions.
|
|
75
76
|
*
|
|
76
|
-
* @example
|
|
77
|
+
* @example Basic Usage
|
|
77
78
|
* ```tsx
|
|
78
|
-
* // Style spec compliant (recommended)
|
|
79
79
|
* <Layer
|
|
80
80
|
* type="fill"
|
|
81
81
|
* id="parks"
|
|
82
82
|
* source="parks-source"
|
|
83
83
|
* paint={{ "fill-color": "green", "fill-opacity": 0.5 }}
|
|
84
84
|
* layout={{ visibility: "visible" }}
|
|
85
|
-
*
|
|
85
|
+
* />;
|
|
86
|
+
* ```
|
|
86
87
|
*
|
|
87
|
-
*
|
|
88
|
+
* @example Using Expressions
|
|
89
|
+
* ```tsx
|
|
88
90
|
* <Layer
|
|
89
91
|
* type="fill"
|
|
90
92
|
* id="parks"
|
|
91
93
|
* source="parks-source"
|
|
92
94
|
* paint={{
|
|
93
|
-
* "fill-color": [
|
|
95
|
+
* "fill-color": [
|
|
96
|
+
* "interpolate",
|
|
97
|
+
* ["linear"],
|
|
98
|
+
* ["get", "elevation"],
|
|
99
|
+
* 0,
|
|
100
|
+
* "blue",
|
|
101
|
+
* 100,
|
|
102
|
+
* "red",
|
|
103
|
+
* ],
|
|
94
104
|
* }}
|
|
95
|
-
*
|
|
105
|
+
* />;
|
|
96
106
|
* ```
|
|
97
107
|
*/
|
|
98
108
|
const Layer = ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_LayerNativeComponent","_interopRequireDefault","_useFrozenId","_StyleValue","_convertStyleSpec","_getNativeFilter","_jsxRuntime","e","__esModule","default","deprecationWarned","Layer","id","props","frozenId","useFrozenId","nativeProps","useMemo","type","layerType","sourceLayer","filter","style","paint","layout","beforeId","afterId","layerIndex","rest","undefined","__DEV__","console","warn","mergedStyle","mergeStyleProps","getNativeFilter","reactStyle","transformStyle","jsx","testID","exports"],"sourceRoot":"../../../../src","sources":["components/layer/Layer.tsx"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,qBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAYA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AAA8D,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAE,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE9D,IAAIG,iBAAiB,GAAG,KAAK;;AAE7B;AACA;AACA;;AAkBA;AACA;;AAQA;AACA;AACA;;AAOA;AACA;AACA;AACA;AACA;;AAsB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,EAAE,CAACpB,KAAK,CAAC,CAAC;EAEX,oBACE,IAAAP,WAAA,CAAAgC,GAAA,EAACtC,qBAAA,CAAAS,OAAoB;IACnBG,EAAE,EAAEE,QAAS;IACbyB,MAAM,EAAE,QAAQ1B,KAAK,CAACK,IAAI,QAAS;IAAA,GAC/BF;EAAW,CAChB,CAAC;AAEN,CAAC;AAACwB,OAAA,CAAA7B,KAAA,GAAAA,KAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","require","_LayerNativeComponent","_interopRequireDefault","_useFrozenId","_StyleValue","_convertStyleSpec","_getNativeFilter","_jsxRuntime","e","__esModule","default","deprecationWarned","Layer","id","props","frozenId","useFrozenId","nativeProps","useMemo","type","layerType","sourceLayer","filter","style","paint","layout","beforeId","afterId","layerIndex","rest","undefined","__DEV__","console","warn","mergedStyle","mergeStyleProps","getNativeFilter","reactStyle","transformStyle","jsx","testID","exports"],"sourceRoot":"../../../../src","sources":["components/layer/Layer.tsx"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,qBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAYA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AAA8D,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAE,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE9D,IAAIG,iBAAiB,GAAG,KAAK;;AAE7B;AACA;AACA;;AAkBA;AACA;;AAQA;AACA;AACA;;AAOA;AACA;AACA;AACA;AACA;;AAsBA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AAC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AoB;IACnBG,EAAE,EAAEE,QAAS;IACbyB,MAAM,EAAE,QAAQ1B,KAAK,CAACK,IAAI,QAAS;IAAA,GAC/BF;EAAW,CAChB,CAAC;AAEN,CAAC;AAACwB,OAAA,CAAA7B,KAAA,GAAAA,KAAA","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// DO NOT MODIFY
|
|
2
|
-
// This file is auto-generated from src/components/map/MapViewNativeComponent.ts
|
|
2
|
+
// This file is auto-generated from package/src/components/map/MapViewNativeComponent.ts
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
codegenNativeComponent,
|
|
@@ -60,7 +60,9 @@ export interface NativeProps extends ViewProps {
|
|
|
60
60
|
preferredFramesPerSecond?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
|
|
61
61
|
|
|
62
62
|
dragPan?: CodegenTypes.WithDefault<boolean, true>;
|
|
63
|
-
|
|
63
|
+
touchZoom?: CodegenTypes.WithDefault<boolean, true>;
|
|
64
|
+
doubleTapZoom?: CodegenTypes.WithDefault<boolean, true>;
|
|
65
|
+
doubleTapHoldZoom?: CodegenTypes.WithDefault<boolean, true>;
|
|
64
66
|
touchRotate?: CodegenTypes.WithDefault<boolean, true>;
|
|
65
67
|
touchPitch?: CodegenTypes.WithDefault<boolean, true>;
|
|
66
68
|
|
|
@@ -76,6 +78,9 @@ export interface NativeProps extends ViewProps {
|
|
|
76
78
|
compassPosition?: NativeOrnamentViewPosition;
|
|
77
79
|
compassHiddenFacingNorth?: CodegenTypes.WithDefault<boolean, true>;
|
|
78
80
|
|
|
81
|
+
scaleBar?: CodegenTypes.WithDefault<boolean, false>;
|
|
82
|
+
scaleBarPosition?: NativeOrnamentViewPosition;
|
|
83
|
+
|
|
79
84
|
onPress?: CodegenTypes.BubblingEventHandler<NativePressEvent>;
|
|
80
85
|
onLongPress?: CodegenTypes.BubblingEventHandler<NativePressEvent>;
|
|
81
86
|
|
|
@@ -21,14 +21,39 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
21
21
|
flex: 1
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Screen position for map ornaments (logo, compass, scale bar). Exactly one of
|
|
27
|
+
* `top` / `bottom` and one of `left` / `right` must be provided.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Current viewport state of the map.
|
|
32
|
+
*/
|
|
33
|
+
|
|
24
34
|
/**
|
|
25
|
-
*
|
|
35
|
+
* Event emitted when the map viewport changes (pan, zoom, rotate, pitch).
|
|
26
36
|
*/
|
|
27
|
-
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Options for querying rendered features at a screen point or within a bounding
|
|
40
|
+
* box.
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A view of a MapLibre Native Map.
|
|
45
|
+
*
|
|
46
|
+
* @example Rendering a basic Map
|
|
47
|
+
* ```tsx
|
|
48
|
+
* <Map mapStyle="https://demotiles.maplibre.org/style.json" />;
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
const Map = exports.Map = /*#__PURE__*/(0, _react.memo)(({
|
|
28
52
|
androidView = "surface",
|
|
29
53
|
style,
|
|
54
|
+
ref,
|
|
30
55
|
...props
|
|
31
|
-
}
|
|
56
|
+
}) => {
|
|
32
57
|
const [isReady, setIsReady] = (0, _react.useState)(false);
|
|
33
58
|
const nativeRef = (0, _react.useRef)(null);
|
|
34
59
|
(0, _react.useImperativeHandle)(ref, () => ({
|
|
@@ -88,5 +113,5 @@ const Map = exports.Map = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _react.
|
|
|
88
113
|
testID: nativeProps.testID ? `${nativeProps.testID}-view` : undefined,
|
|
89
114
|
children: map
|
|
90
115
|
});
|
|
91
|
-
})
|
|
116
|
+
});
|
|
92
117
|
//# sourceMappingURL=Map.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_AndroidTextureMapViewNativeComponent","_interopRequireDefault","_MapViewNativeComponent","_NativeMapViewModule","_LogManager","_StyleValue","_convertStyleSpec","_findNodeHandle","_getNativeFilter","_jsxRuntime","e","__esModule","default","styles","StyleSheet","create","flex1","flex","Map","exports","memo","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_AndroidTextureMapViewNativeComponent","_interopRequireDefault","_MapViewNativeComponent","_NativeMapViewModule","_LogManager","_StyleValue","_convertStyleSpec","_findNodeHandle","_getNativeFilter","_jsxRuntime","e","__esModule","default","styles","StyleSheet","create","flex1","flex","Map","exports","memo","androidView","style","ref","props","isReady","setIsReady","useState","nativeRef","useRef","useImperativeHandle","getCenter","NativeMapViewModule","findNodeHandle","current","getZoom","getBearing","getPitch","getBounds","getViewState","project","lngLat","unproject","point","queryRenderedFeatures","pixelPointOrPixelPointBoundsOrOptions","options","Array","isArray","value","queryRenderedFeaturesWithPoint","layers","getNativeFilter","filter","queryRenderedFeaturesWithBounds","createStaticMapImage","output","setSourceVisibility","visible","source","sourceLayer","showAttribution","useLayoutEffect","LogManager","start","stop","nativeProps","useMemo","mapStyle","light","otherProps","JSON","stringify","transformStyle","convertToInternalStyle","undefined","map","NativeMapView","Platform","OS","AndroidTextureMapViewNativeComponent","MapViewNativeComponent","jsx","View","onLayout","testID","children"],"sourceRoot":"../../../../src","sources":["components/map/Map.tsx"],"mappings":";;;;;;AAKA,IAAAA,MAAA,GAAAC,OAAA;AAYA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,qCAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,uBAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,oBAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AASA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,iBAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AACA,IAAAU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ET,MAAM,CAACG,KAAK;MACnBoD,QAAQ,EACN,OAAOA,QAAQ,KAAK,QAAQ,GAAGG,IAAI,CAACC,SAAS,CAACJ,QAAQ,CAAC,GAAGA,QAAQ;MACpEC,KAAK,EAAE7C,KAAK,CAAC6C,KAAK,GACd,IAAAI,0BAAc,EAAC,IAAAC,wCAAsB,EAAClD,KAAK,CAAC6C,KAAK,CAAC,CAAC,GACnDM;IACN,CAAC;EACH,CAAC,EAAE,CAACnD,KAAK,CAAC,CAAC;EAEX,IAAIoD,GAAwB,GAAG,IAAI;EACnC,IAAInD,OAAO,EAAE;IACX,MAAMoD,aAAa,GACjBC,qBAAQ,CAACC,EAAE,KAAK,SAAS,IAAI1D,WAAW,KAAK,SAAS,GAClD2D,6CAAoC,GACpCC,+BAAsB;IAE5BL,GAAG,gBAAG,IAAAnE,WAAA,CAAAyE,GAAA,EAACL,aAAa;MAAA,GAAKX;IAAW,CAAG,CAAC;EAC1C;EAEA,oBACE,IAAAzD,WAAA,CAAAyE,GAAA,EAACnF,YAAA,CAAAoF,IAAI;IACHC,QAAQ,EAAEA,CAAA,KAAM1D,UAAU,CAAC,IAAI,CAAE;IACjCJ,KAAK,EAAEA,KAAK,IAAIT,MAAM,CAACG,KAAM;IAC7BqE,MAAM,EAAEnB,WAAW,CAACmB,MAAM,GAAG,GAAGnB,WAAW,CAACmB,MAAM,OAAO,GAAGV,SAAU;IAAAW,QAAA,EAErEV;EAAG,CACA,CAAC;AAEX,CACF,CAAC","ignoreList":[]}
|
|
@@ -57,7 +57,9 @@ export interface NativeProps extends ViewProps {
|
|
|
57
57
|
preferredFramesPerSecond?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
|
|
58
58
|
|
|
59
59
|
dragPan?: CodegenTypes.WithDefault<boolean, true>;
|
|
60
|
-
|
|
60
|
+
touchZoom?: CodegenTypes.WithDefault<boolean, true>;
|
|
61
|
+
doubleTapZoom?: CodegenTypes.WithDefault<boolean, true>;
|
|
62
|
+
doubleTapHoldZoom?: CodegenTypes.WithDefault<boolean, true>;
|
|
61
63
|
touchRotate?: CodegenTypes.WithDefault<boolean, true>;
|
|
62
64
|
touchPitch?: CodegenTypes.WithDefault<boolean, true>;
|
|
63
65
|
|
|
@@ -73,6 +75,9 @@ export interface NativeProps extends ViewProps {
|
|
|
73
75
|
compassPosition?: NativeOrnamentViewPosition;
|
|
74
76
|
compassHiddenFacingNorth?: CodegenTypes.WithDefault<boolean, true>;
|
|
75
77
|
|
|
78
|
+
scaleBar?: CodegenTypes.WithDefault<boolean, false>;
|
|
79
|
+
scaleBarPosition?: NativeOrnamentViewPosition;
|
|
80
|
+
|
|
76
81
|
onPress?: CodegenTypes.BubblingEventHandler<NativePressEvent>;
|
|
77
82
|
onLongPress?: CodegenTypes.BubblingEventHandler<NativePressEvent>;
|
|
78
83
|
|
|
@@ -14,14 +14,15 @@ var _getNativeFilter = require("../../../utils/getNativeFilter.js");
|
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
16
|
/**
|
|
17
|
-
* GeoJSONSource is a map content source that supplies GeoJSON to be shown on
|
|
18
|
-
* The data may be provided as an url or a GeoJSON object.
|
|
17
|
+
* GeoJSONSource is a map content source that supplies GeoJSON to be shown on
|
|
18
|
+
* the map. The data may be provided as an url or a GeoJSON object.
|
|
19
19
|
*/
|
|
20
|
-
const GeoJSONSource = exports.GeoJSONSource = /*#__PURE__*/(0, _react.memo)(
|
|
20
|
+
const GeoJSONSource = exports.GeoJSONSource = /*#__PURE__*/(0, _react.memo)(({
|
|
21
21
|
id,
|
|
22
22
|
data,
|
|
23
|
+
ref,
|
|
23
24
|
...props
|
|
24
|
-
}
|
|
25
|
+
}) => {
|
|
25
26
|
const nativeRef = (0, _react.useRef)(null);
|
|
26
27
|
const frozenId = (0, _useFrozenId.useFrozenId)(id);
|
|
27
28
|
(0, _react.useImperativeHandle)(ref, () => ({
|
|
@@ -48,5 +49,5 @@ const GeoJSONSource = exports.GeoJSONSource = /*#__PURE__*/(0, _react.memo)(/*#_
|
|
|
48
49
|
source: frozenId
|
|
49
50
|
})
|
|
50
51
|
});
|
|
51
|
-
})
|
|
52
|
+
});
|
|
52
53
|
//# sourceMappingURL=GeoJSONSource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_GeoJSONSourceNativeComponent","_interopRequireDefault","_NativeGeoJSONSourceModule","_useFrozenId","_index","_findNodeHandle","_getNativeFilter","_jsxRuntime","e","__esModule","default","GeoJSONSource","exports","memo","
|
|
1
|
+
{"version":3,"names":["_react","require","_GeoJSONSourceNativeComponent","_interopRequireDefault","_NativeGeoJSONSourceModule","_useFrozenId","_index","_findNodeHandle","_getNativeFilter","_jsxRuntime","e","__esModule","default","GeoJSONSource","exports","memo","id","data","ref","props","nativeRef","useRef","frozenId","useFrozenId","useImperativeHandle","getData","filter","NativeGeoJSONSourceModule","findNodeHandle","current","getNativeFilter","getClusterExpansionZoom","clusterId","getClusterLeaves","limit","offset","getClusterChildren","jsx","JSON","stringify","hasOnPress","onPress","children","cloneReactChildrenWithProps","source"],"sourceRoot":"../../../../../src","sources":["components/sources/geojson-source/GeoJSONSource.tsx"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AAWA,IAAAC,6BAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAGA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AAAiE,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAE,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA6IjE;AACA;AACA;AACA;AACO,MAAMG,aAAa,GAAA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tB,IAAI,CAAE;IAC7DuB,UAAU,EAAE,CAAC,CAACrB,KAAK,CAACsB,OAAQ;IAAA,GACxBtB,KAAK;IAAAuB,QAAA,EAER,IAAAC,kCAA2B,EAACxB,KAAK,CAACuB,QAAQ,EAAE;MAC3CE,MAAM,EAAEtB;IACV,CAAC;EAAC,CAC0B,CAAC;AAEnC,CACF,CAAC","ignoreList":[]}
|
|
@@ -11,8 +11,9 @@ var _index = require("../../../utils/index.js");
|
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
/**
|
|
14
|
-
* ImageSource is a content source that is used for a georeferenced raster image
|
|
15
|
-
* The georeferenced image scales and rotates as the
|
|
14
|
+
* ImageSource is a content source that is used for a georeferenced raster image
|
|
15
|
+
* to be shown on the map. The georeferenced image scales and rotates as the
|
|
16
|
+
* user zooms and rotates the map
|
|
16
17
|
*/
|
|
17
18
|
const ImageSource = exports.ImageSource = /*#__PURE__*/(0, _react.memo)(({
|
|
18
19
|
id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_ImageSourceNativeComponent","_interopRequireDefault","_useFrozenId","_index","_jsxRuntime","e","__esModule","default","ImageSource","exports","memo","id","url","props","frozenId","useFrozenId","jsx","isNumber","resolveImagePath","coordinates","children","cloneReactChildrenWithProps","source"],"sourceRoot":"../../../../../src","sources":["components/sources/image-source/ImageSource.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,2BAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAGA,IAAAI,MAAA,GAAAJ,OAAA;AAIwB,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAE,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;
|
|
1
|
+
{"version":3,"names":["_react","require","_ImageSourceNativeComponent","_interopRequireDefault","_useFrozenId","_index","_jsxRuntime","e","__esModule","default","ImageSource","exports","memo","id","url","props","frozenId","useFrozenId","jsx","isNumber","resolveImagePath","coordinates","children","cloneReactChildrenWithProps","source"],"sourceRoot":"../../../../../src","sources":["components/sources/image-source/ImageSource.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,2BAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAGA,IAAAI,MAAA,GAAAJ,OAAA;AAIwB,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAE,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA4BxB;AACA;AACA;AACA;AACA;AACO,MAAMG,WAAW,GAAAC,OAAA,CAAAD,WAAA,gBAAG,IAAAE,WAAI,EAAC,CAAC;EAAEC,EAAE;EAAEC,GAAG;EAAE,GAAGC;AAAwB,CAAC,KAAK;EAC3E,MAAMC,QAAQ,GAAG,IAAAC,wBAAW,EAACJ,EAAE,CAAC;EAEhC,oBACE,IAAAP,WAAA,CAAAY,GAAA,EAAChB,2BAAA,CAAAO,OAA0B;IACzBI,EAAE,EAAEG,QAAS;IACbF,GAAG,EAAE,IAAAK,eAAQ,EAACL,GAAG,CAAC,GAAG,IAAAM,uBAAgB,EAACN,GAAG,CAAC,GAAGA,GAAI;IACjDO,WAAW,EAAEN,KAAK,CAACM,WAAY;IAAAC,QAAA,EAE9B,IAAAC,kCAA2B,EAACR,KAAK,CAACO,QAAQ,EAAE;MAC3CE,MAAM,EAAER;IACV,CAAC;EAAC,CACwB,CAAC;AAEjC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -11,9 +11,10 @@ var _index = require("../../../utils/index.js");
|
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
/**
|
|
14
|
-
* RasterSource is a map content source that supplies raster image tiles to be
|
|
15
|
-
* The location of and metadata about the tiles are defined
|
|
16
|
-
* or by an external file that conforms to the
|
|
14
|
+
* RasterSource is a map content source that supplies raster image tiles to be
|
|
15
|
+
* shown on the map. The location of and metadata about the tiles are defined
|
|
16
|
+
* either by an option dictionary or by an external file that conforms to the
|
|
17
|
+
* TileJSON specification.
|
|
17
18
|
*/
|
|
18
19
|
const RasterSource = exports.RasterSource = /*#__PURE__*/(0, _react.memo)(({
|
|
19
20
|
id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_RasterSourceNativeComponent","_interopRequireDefault","_useFrozenId","_index","_jsxRuntime","e","__esModule","default","RasterSource","exports","memo","id","props","frozenId","useFrozenId","jsx","children","cloneReactChildrenWithProps","source"],"sourceRoot":"../../../../../src","sources":["components/sources/raster-source/RasterSource.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,4BAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AAA6D,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAE,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;
|
|
1
|
+
{"version":3,"names":["_react","require","_RasterSourceNativeComponent","_interopRequireDefault","_useFrozenId","_index","_jsxRuntime","e","__esModule","default","RasterSource","exports","memo","id","props","frozenId","useFrozenId","jsx","children","cloneReactChildrenWithProps","source"],"sourceRoot":"../../../../../src","sources":["components/sources/raster-source/RasterSource.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,4BAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AAA6D,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAE,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA4D7D;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,YAAY,GAAAC,OAAA,CAAAD,YAAA,gBAAG,IAAAE,WAAI,EAAC,CAAC;EAAEC,EAAE;EAAE,GAAGC;AAAyB,CAAC,KAAK;EACxE,MAAMC,QAAQ,GAAG,IAAAC,wBAAW,EAACH,EAAE,CAAC;EAEhC,oBACE,IAAAP,WAAA,CAAAW,GAAA,EAACf,4BAAA,CAAAO,OAA2B;IAACI,EAAE,EAAEE,QAAS;IAAA,GAAKD,KAAK;IAAAI,QAAA,EACjD,IAAAC,kCAA2B,EAACL,KAAK,CAACI,QAAQ,EAAE;MAC3CE,MAAM,EAAEL;IACV,CAAC;EAAC,CACyB,CAAC;AAElC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -14,13 +14,16 @@ var _getNativeFilter = require("../../../utils/getNativeFilter.js");
|
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
16
|
/**
|
|
17
|
-
* VectorSource is a map content source that supplies tiled vector data in
|
|
18
|
-
*
|
|
17
|
+
* VectorSource is a map content source that supplies tiled vector data in
|
|
18
|
+
* Mapbox Vector Tile format to be shown on the map. The location of and
|
|
19
|
+
* metadata about the tiles are defined either by an option dictionary or by an
|
|
20
|
+
* external file that conforms to the TileJSON specification.
|
|
19
21
|
*/
|
|
20
|
-
const VectorSource = exports.VectorSource = /*#__PURE__*/(0, _react.memo)(
|
|
22
|
+
const VectorSource = exports.VectorSource = /*#__PURE__*/(0, _react.memo)(({
|
|
21
23
|
id,
|
|
24
|
+
ref,
|
|
22
25
|
...props
|
|
23
|
-
}
|
|
26
|
+
}) => {
|
|
24
27
|
const nativeRef = (0, _react.useRef)(null);
|
|
25
28
|
const frozenId = (0, _useFrozenId.useFrozenId)(id);
|
|
26
29
|
(0, _react.useImperativeHandle)(ref, () => ({
|
|
@@ -40,5 +43,5 @@ const VectorSource = exports.VectorSource = /*#__PURE__*/(0, _react.memo)(/*#__P
|
|
|
40
43
|
source: frozenId
|
|
41
44
|
})
|
|
42
45
|
});
|
|
43
|
-
})
|
|
46
|
+
});
|
|
44
47
|
//# sourceMappingURL=VectorSource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_NativeVectorSourceModule","_interopRequireDefault","_VectorSourceNativeComponent","_useFrozenId","_index","_findNodeHandle","_getNativeFilter","_jsxRuntime","e","__esModule","default","VectorSource","exports","memo","
|
|
1
|
+
{"version":3,"names":["_react","require","_NativeVectorSourceModule","_interopRequireDefault","_VectorSourceNativeComponent","_useFrozenId","_index","_findNodeHandle","_getNativeFilter","_jsxRuntime","e","__esModule","default","VectorSource","exports","memo","id","ref","props","nativeRef","useRef","frozenId","useFrozenId","useImperativeHandle","querySourceFeatures","sourceLayer","filter","NativeVectorSourceModule","findNodeHandle","current","getNativeFilter","jsx","hasOnPress","onPress","children","cloneReactChildrenWithProps","source"],"sourceRoot":"../../../../../src","sources":["components/sources/vector-source/VectorSource.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAWA,IAAAC,yBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,4BAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAGA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AAAiE,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAE,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,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