@maplibre/maplibre-react-native 11.0.0-beta.2 → 11.0.0-beta.21
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/android/build.gradle +3 -1
- package/android/gradle.properties +1 -1
- package/android/src/main/java/org/maplibre/reactnative/MLRNPackage.kt +13 -0
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerView.kt +35 -28
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerViewContent.kt +9 -14
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerViewManager.kt +8 -1
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MarkerViewManager.kt +20 -13
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/pointannotation/MLRNPointAnnotation.kt +45 -25
- package/android/src/main/java/org/maplibre/reactnative/components/annotations/pointannotation/MLRNPointAnnotationManager.kt +2 -1
- package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFactory.java +1 -1
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.kt +222 -133
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.kt +18 -0
- 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 +26 -2
- package/ios/components/annotations/point-annotation/MLRNPointAnnotationComponentView.mm +27 -19
- package/ios/components/camera/MLRNCameraComponentView.mm +5 -4
- package/ios/components/images/MLRNImageLoader.h +27 -0
- package/ios/components/images/MLRNImageLoader.m +85 -0
- package/ios/components/images/MLRNImageQueue.h +2 -2
- package/ios/components/images/MLRNImageQueue.m +2 -2
- package/ios/components/images/MLRNImageQueueOperation.h +2 -2
- package/ios/components/images/MLRNImageQueueOperation.m +3 -3
- package/ios/components/images/MLRNImages.h +0 -3
- package/ios/components/images/MLRNImages.m +6 -6
- package/ios/components/images/MLRNImagesComponentView.mm +0 -3
- package/ios/components/images/MLRNImagesModule.h +6 -0
- package/ios/components/images/MLRNImagesModule.mm +23 -0
- package/ios/components/layer/MLRNLayer.h +0 -3
- package/ios/components/layer/MLRNLayer.m +0 -1
- package/ios/components/layer/MLRNLayerComponentView.mm +12 -11
- package/ios/components/layer/style/MLRNStyle.h +1 -3
- package/ios/components/layer/style/MLRNStyle.m +68 -71
- package/ios/components/map-view/MLRNMapView.h +5 -0
- package/ios/components/map-view/MLRNMapView.m +64 -15
- package/ios/components/map-view/MLRNMapViewComponentView.mm +19 -3
- package/ios/components/map-view/MLRNMapViewModule.mm +1 -1
- package/ios/components/sources/geojson-source/MLRNGeoJSONSource.h +0 -3
- package/ios/components/sources/image-source/MLRNImageSourceComponentView.mm +1 -1
- package/ios/components/sources/tile-sources/raster-source/MLRNRasterSourceComponentView.mm +2 -3
- package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceComponentView.mm +2 -3
- package/ios/modules/logging/MLRNLogging.h +4 -0
- package/ios/modules/logging/MLRNLogging.m +8 -0
- package/ios/modules/network/MLRNNetworkModule.mm +0 -10
- package/ios/modules/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/marker/Marker.js +0 -5
- package/lib/commonjs/components/annotations/marker/Marker.js.map +1 -1
- package/lib/commonjs/components/annotations/marker/MarkerViewNativeComponent.ts +12 -2
- package/lib/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +5 -4
- package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js +10 -14
- package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
- package/lib/commonjs/components/camera/Camera.js +4 -3
- package/lib/commonjs/components/camera/Camera.js.map +1 -1
- package/lib/commonjs/components/images/Images.js +1 -0
- 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 +17 -62
- package/lib/commonjs/components/layer/Layer.js.map +1 -1
- package/lib/commonjs/components/map/AndroidTextureMapViewNativeComponent.ts +4 -1
- package/lib/commonjs/components/map/Map.js +4 -3
- package/lib/commonjs/components/map/Map.js.map +1 -1
- package/lib/commonjs/components/map/MapViewNativeComponent.ts +3 -0
- package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js +4 -3
- package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
- package/lib/commonjs/components/sources/vector-source/VectorSource.js +4 -3
- package/lib/commonjs/components/sources/vector-source/VectorSource.js.map +1 -1
- package/lib/commonjs/components/user-location/UserLocation.js +21 -12
- package/lib/commonjs/components/user-location/UserLocation.js.map +1 -1
- package/lib/commonjs/components/user-location/UserLocationPuck.js +16 -16
- package/lib/commonjs/components/user-location/UserLocationPuck.js.map +1 -1
- package/lib/commonjs/components/user-location/UserLocationPuckHeading.js +8 -10
- package/lib/commonjs/components/user-location/UserLocationPuckHeading.js.map +1 -1
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modules/network/NativeNetworkModule.js.map +1 -1
- package/lib/commonjs/modules/network/NetworkManager.js +1 -39
- package/lib/commonjs/modules/network/NetworkManager.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 +223 -0
- package/lib/commonjs/modules/transform-request/TransformRequestManager.js.map +1 -0
- package/lib/commonjs/utils/getStylePropertyType.js +1 -1
- package/lib/module/components/annotations/marker/Marker.js +0 -5
- package/lib/module/components/annotations/marker/Marker.js.map +1 -1
- package/lib/module/components/annotations/marker/MarkerViewNativeComponent.ts +12 -2
- package/lib/module/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +5 -4
- package/lib/module/components/annotations/view-annotation/ViewAnnotation.js +10 -15
- package/lib/module/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
- package/lib/module/components/camera/Camera.js +5 -4
- package/lib/module/components/camera/Camera.js.map +1 -1
- package/lib/module/components/images/Images.js +1 -0
- 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 +17 -62
- package/lib/module/components/layer/Layer.js.map +1 -1
- package/lib/module/components/map/AndroidTextureMapViewNativeComponent.ts +4 -1
- package/lib/module/components/map/Map.js +5 -4
- package/lib/module/components/map/Map.js.map +1 -1
- package/lib/module/components/map/MapViewNativeComponent.ts +3 -0
- package/lib/module/components/sources/geojson-source/GeoJSONSource.js +5 -4
- package/lib/module/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
- package/lib/module/components/sources/vector-source/VectorSource.js +5 -4
- package/lib/module/components/sources/vector-source/VectorSource.js.map +1 -1
- package/lib/module/components/user-location/UserLocation.js +21 -13
- package/lib/module/components/user-location/UserLocation.js.map +1 -1
- package/lib/module/components/user-location/UserLocationPuck.js +16 -16
- package/lib/module/components/user-location/UserLocationPuck.js.map +1 -1
- package/lib/module/components/user-location/UserLocationPuckHeading.js +8 -9
- package/lib/module/components/user-location/UserLocationPuckHeading.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/modules/network/NativeNetworkModule.js.map +1 -1
- package/lib/module/modules/network/NetworkManager.js +1 -39
- package/lib/module/modules/network/NetworkManager.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 +220 -0
- package/lib/module/modules/transform-request/TransformRequestManager.js.map +1 -0
- package/lib/module/utils/getStylePropertyType.js +1 -1
- package/lib/typescript/commonjs/components/annotations/LayerAnnotation.d.ts.map +1 -0
- 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 +17 -4
- package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/annotations/marker/MarkerViewNativeComponent.d.ts +12 -2
- package/lib/typescript/commonjs/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +5 -4
- package/lib/typescript/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/annotations/view-annotation/ViewAnnotation.d.ts +23 -8
- 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 +6 -1
- 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 +1 -0
- 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 +23 -59
- 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 +2 -0
- package/lib/typescript/commonjs/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/components → components}/map/Map.d.ts +22 -9
- package/lib/typescript/commonjs/components/map/Map.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/components/map/MapViewNativeComponent.d.ts +2 -0
- 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 +6 -2
- 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/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/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/{src/components → components}/sources/vector-source/VectorSource.d.ts +6 -2
- package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts.map +1 -0
- 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/hooks/useCurrentPosition.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useFrozenId.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useNativeBridge.d.ts.map +1 -0
- package/lib/typescript/{module/src → commonjs}/index.d.ts +4 -3
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/location/NativeLocationModule.d.ts.map +1 -0
- package/lib/typescript/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/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/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 +201 -0
- package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
- 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/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.map +1 -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/types/LngLatBounds.d.ts.map +1 -0
- package/lib/typescript/commonjs/{src/types → types}/MapLibreRNStyles.d.ts +10 -10
- 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/commonjs/types/PressEvent.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/PressEventWithFeatures.d.ts.map +1 -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/types/sources/PressableSourceProps.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/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/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
- 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/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
- 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/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 +17 -4
- package/lib/typescript/module/components/annotations/marker/Marker.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/annotations/marker/MarkerViewNativeComponent.d.ts +12 -2
- package/lib/typescript/module/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +5 -4
- package/lib/typescript/module/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/annotations/view-annotation/ViewAnnotation.d.ts +23 -8
- 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 +6 -1
- 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 +1 -0
- 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 +23 -59
- 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 +2 -0
- package/lib/typescript/module/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/{src/components → components}/map/Map.d.ts +22 -9
- package/lib/typescript/module/components/map/Map.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/components/map/MapViewNativeComponent.d.ts +2 -0
- 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 +6 -2
- 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/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/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/{src/components → components}/sources/vector-source/VectorSource.d.ts +6 -2
- package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts.map +1 -0
- 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/hooks/useCurrentPosition.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useFrozenId.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useNativeBridge.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → module}/index.d.ts +4 -3
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/location/NativeLocationModule.d.ts.map +1 -0
- package/lib/typescript/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/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/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 +201 -0
- package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
- 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/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.map +1 -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/types/LngLatBounds.d.ts.map +1 -0
- package/lib/typescript/module/{src/types → types}/MapLibreRNStyles.d.ts +10 -10
- 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/module/types/PressEvent.d.ts.map +1 -0
- package/lib/typescript/module/types/PressEventWithFeatures.d.ts.map +1 -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/types/sources/PressableSourceProps.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/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/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
- 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/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
- 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 +21 -43
- package/src/components/annotations/marker/Marker.tsx +24 -21
- package/src/components/annotations/marker/MarkerViewNativeComponent.ts +12 -2
- package/src/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +5 -4
- package/src/components/annotations/view-annotation/ViewAnnotation.tsx +78 -77
- package/src/components/camera/Camera.tsx +70 -69
- package/src/components/images/Images.tsx +1 -0
- package/src/components/images/NativeImagesModule.ts +11 -0
- package/src/components/layer/Layer.tsx +32 -78
- package/src/components/map/AndroidTextureMapViewNativeComponent.ts +4 -1
- package/src/components/map/Map.tsx +166 -164
- package/src/components/map/MapViewNativeComponent.ts +3 -0
- package/src/components/sources/geojson-source/GeoJSONSource.tsx +65 -62
- package/src/components/sources/vector-source/VectorSource.tsx +40 -37
- package/src/components/user-location/UserLocation.tsx +30 -18
- package/src/components/user-location/UserLocationPuck.tsx +20 -20
- package/src/components/user-location/UserLocationPuckHeading.tsx +9 -10
- package/src/index.ts +16 -5
- package/src/modules/network/NativeNetworkModule.ts +0 -4
- package/src/modules/network/NetworkManager.ts +1 -47
- package/src/modules/transform-request/NativeTransformRequestModule.ts +41 -0
- package/src/modules/transform-request/TransformRequestManager.ts +292 -0
- package/src/types/MapLibreRNStyles.ts +11 -10
- package/src/utils/getStylePropertyType.ts +1 -1
- package/android/src/main/java/org/maplibre/reactnative/http/RequestHeadersInterceptor.kt +0 -65
- package/android/src/main/res/layout/annotation.xml +0 -17
- package/ios/modules/network/MLRNNetworkHTTPHeaders.h +0 -14
- package/ios/modules/network/MLRNNetworkHTTPHeaders.m +0 -97
- package/lib/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.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.map +0 -1
- 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.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.map +0 -1
- 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/typescript/commonjs/{src/components → components}/annotations/LayerAnnotation.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/annotations/callout/Callout.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/ImageSource.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/RasterSource.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/NativeUserLocation.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocation.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}/useCurrentPosition.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/LogManager.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/OfflineManager.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/modules → modules}/static-map/StaticMapManager.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/plugin → plugin}/MapLibrePluginProps.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/plugin → plugin}/android.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/plugin → plugin}/ios.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/plugin → plugin}/withMapLibre.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/types → types}/Anchor.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/types → types}/BaseProps.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/types → types}/LngLat.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/types → types}/LngLatBounds.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}/PressEvent.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/types → types}/PressEventWithFeatures.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/types → types}/ViewPadding.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/types → types}/codegen/UnsafeMixed.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/types → types}/sources/PressableSourceProps.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/AbstractAnimatedCoordinates.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedCoordinatesArray.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/AnimatedGeoJSON.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedPoint.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedRouteCoordinatesArray.d.ts +0 -0
- /package/lib/typescript/commonjs/{src/utils → utils}/convertStyleSpec.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/Callout.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/ImageSource.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/RasterSource.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/NativeUserLocation.d.ts +0 -0
- /package/lib/typescript/module/{src/components → components}/user-location/UserLocation.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}/useCurrentPosition.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/LogManager.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/OfflineManager.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/modules → modules}/static-map/StaticMapManager.d.ts +0 -0
- /package/lib/typescript/module/{src/plugin → plugin}/MapLibrePluginProps.d.ts +0 -0
- /package/lib/typescript/module/{src/plugin → plugin}/android.d.ts +0 -0
- /package/lib/typescript/module/{src/plugin → plugin}/ios.d.ts +0 -0
- /package/lib/typescript/module/{src/plugin → plugin}/withMapLibre.d.ts +0 -0
- /package/lib/typescript/module/{src/types → types}/Anchor.d.ts +0 -0
- /package/lib/typescript/module/{src/types → types}/BaseProps.d.ts +0 -0
- /package/lib/typescript/module/{src/types → types}/LngLat.d.ts +0 -0
- /package/lib/typescript/module/{src/types → types}/LngLatBounds.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}/PressEvent.d.ts +0 -0
- /package/lib/typescript/module/{src/types → types}/PressEventWithFeatures.d.ts +0 -0
- /package/lib/typescript/module/{src/types → types}/ViewPadding.d.ts +0 -0
- /package/lib/typescript/module/{src/types → types}/codegen/UnsafeMixed.d.ts +0 -0
- /package/lib/typescript/module/{src/types → types}/sources/PressableSourceProps.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/AbstractAnimatedCoordinates.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/animated/AnimatedCoordinatesArray.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/AnimatedGeoJSON.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/animated/AnimatedPoint.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/animated/AnimatedRouteCoordinatesArray.d.ts +0 -0
- /package/lib/typescript/module/{src/utils → utils}/convertStyleSpec.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
package/lib/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.ts
CHANGED
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
import type { UnsafeMixed } from "../../../types/codegen/UnsafeMixed";
|
|
10
10
|
|
|
11
11
|
type NativeAnchor = {
|
|
12
|
-
x
|
|
13
|
-
y
|
|
12
|
+
x?: CodegenTypes.WithDefault<CodegenTypes.Double, 0.5>;
|
|
13
|
+
y?: CodegenTypes.WithDefault<CodegenTypes.Double, 0.5>;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
type NativeOffset = {
|
|
@@ -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>;
|
|
@@ -28,13 +28,14 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
28
28
|
* If you need interactive views please use Marker,
|
|
29
29
|
* as with ViewAnnotation on Android child views are rendered onto a bitmap for better performance.
|
|
30
30
|
*/
|
|
31
|
-
const ViewAnnotation =
|
|
31
|
+
const ViewAnnotation = ({
|
|
32
32
|
id,
|
|
33
33
|
anchor = "center",
|
|
34
34
|
draggable = false,
|
|
35
35
|
offset,
|
|
36
|
+
ref,
|
|
36
37
|
...props
|
|
37
|
-
}
|
|
38
|
+
}) => {
|
|
38
39
|
const frozenId = (0, _useFrozenId.useFrozenId)(id);
|
|
39
40
|
const nativeAnchor = (0, _Anchor.anchorToNative)(anchor);
|
|
40
41
|
const nativeOffset = offset ? {
|
|
@@ -43,18 +44,12 @@ const ViewAnnotation = exports.ViewAnnotation = /*#__PURE__*/(0, _react.forwardR
|
|
|
43
44
|
} : undefined;
|
|
44
45
|
const nativeRef = (0, _react.useRef)(null);
|
|
45
46
|
(0, _react.useImperativeHandle)(ref, () => ({
|
|
46
|
-
refresh
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
_PointAnnotationNativeComponent.Commands.refresh(nativeRef.current);
|
|
47
|
+
refresh: () => {
|
|
48
|
+
if (_reactNative.Platform.OS === "android" && nativeRef.current) {
|
|
49
|
+
_PointAnnotationNativeComponent.Commands.refresh(nativeRef.current);
|
|
50
|
+
}
|
|
51
51
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// On Android, wrap children in a non-collapsable View to prevent Fabric
|
|
55
|
-
// from flattening the view hierarchy. Without this, Fabric may flatten
|
|
56
|
-
// intermediate Views, causing their backgrounds to disappear.
|
|
57
|
-
// We need to keep Callout separate so native code can identify it.
|
|
52
|
+
}));
|
|
58
53
|
const wrappedChildren = (() => {
|
|
59
54
|
if (_reactNative.Platform.OS !== "android") {
|
|
60
55
|
return props.children;
|
|
@@ -84,5 +79,6 @@ const ViewAnnotation = exports.ViewAnnotation = /*#__PURE__*/(0, _react.forwardR
|
|
|
84
79
|
style: [props.style, styles.container],
|
|
85
80
|
children: wrappedChildren
|
|
86
81
|
});
|
|
87
|
-
}
|
|
82
|
+
};
|
|
83
|
+
exports.ViewAnnotation = ViewAnnotation;
|
|
88
84
|
//# sourceMappingURL=ViewAnnotation.js.map
|
|
@@ -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","
|
|
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","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,GAAAP,OAAA;AAAA,SAAAG,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,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;IACbL,MAAM,EAAEO,YAAa;IACrBL,MAAM,EAAEO,YAAa;IACrBR,SAAS,EAAEA,SAAU;IACrBsC,KAAK,EAAE,CAACnC,KAAK,CAACmC,KAAK,EAAEhD,MAAM,CAACG,SAAS,CAAE;IAAA4B,QAAA,EAEtCD;EAAe,CACc,CAAC;AAErC,CAAC;AAACoB,OAAA,CAAA3C,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -10,7 +10,7 @@ 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
|
-
const Camera = exports.Camera = /*#__PURE__*/(0, _react.memo)(
|
|
13
|
+
const Camera = exports.Camera = /*#__PURE__*/(0, _react.memo)(({
|
|
14
14
|
testID,
|
|
15
15
|
initialViewState,
|
|
16
16
|
minZoom,
|
|
@@ -18,8 +18,9 @@ const Camera = exports.Camera = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _
|
|
|
18
18
|
maxBounds,
|
|
19
19
|
trackUserLocation,
|
|
20
20
|
onTrackUserLocationChange,
|
|
21
|
+
ref,
|
|
21
22
|
...stop
|
|
22
|
-
}
|
|
23
|
+
}) => {
|
|
23
24
|
const nativeRef = (0, _react.useRef)(null);
|
|
24
25
|
const setStop = stop => {
|
|
25
26
|
const nodeHandle = (0, _reactNative.findNodeHandle)(nativeRef.current);
|
|
@@ -93,5 +94,5 @@ const Camera = exports.Camera = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _
|
|
|
93
94
|
trackUserLocation: trackUserLocation,
|
|
94
95
|
onTrackUserLocationChange: onTrackUserLocationChange
|
|
95
96
|
});
|
|
96
|
-
})
|
|
97
|
+
});
|
|
97
98
|
//# 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;AAmO/C,MAAMG,MAAM,GAAAC,OAAA,CAAAD,MAAA,gBAAG,IAAAE,WAAI,EACxB,CAAC;EACCC,MAAM;EACNC,gBAAgB;EAChBC,OAAO;EACPC,OAAO;EACPC,SAAS;EACTC,iBAAiB;EACjBC,yBAAyB;EACzBC,GAAG;EACH,GAAGC;AACQ,CAAC,KAAK;EACjB,MAAMC,SAAS,GAAG,IAAAC,aAAM,EAGtB,IAAI,CAAC;EAEP,MAAMC,OAA6B,GAAIH,IAAI,IAAK;IAC9C,MAAMI,UAAU,GAAG,IAAAC,2BAAc,EAACJ,SAAS,CAACK,OAAO,CAAC;IAEpD,IAAI,CAACF,UAAU,EAAE;MACf,MAAM,IAAIG,KAAK,CACb,uEACF,CAAC;IACH;I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,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,6 +7,7 @@ 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 }; }
|
|
12
13
|
/**
|
|
@@ -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,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AEE,YAAa;IACrBD,cAAc,EAAEA;EAAe,CAChC,CAAC;AAEN,CAAC;AAACiB,OAAA,CAAApB,MAAA,GAAAA,MAAA","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
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":[]}
|
|
@@ -12,91 +12,59 @@ var _convertStyleSpec = require("../../utils/convertStyleSpec.js");
|
|
|
12
12
|
var _getNativeFilter = require("../../utils/getNativeFilter.js");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
let deprecationWarned = false;
|
|
16
|
+
|
|
15
17
|
/**
|
|
16
|
-
* Additional props specific to maplibre-react-native.
|
|
18
|
+
* Additional props specific to @maplibre/maplibre-react-native.
|
|
17
19
|
*/
|
|
18
20
|
|
|
19
21
|
// Utility types following react-map-gl pattern
|
|
20
22
|
// See: https://github.com/microsoft/TypeScript/issues/39556#issuecomment-656925230
|
|
21
23
|
|
|
22
24
|
/**
|
|
23
|
-
* Base layer props from style spec with optional id
|
|
24
|
-
* Matches react-map-gl's LayerProps pattern.
|
|
25
|
+
* Base layer props from style spec with optional `id`/`source`.
|
|
25
26
|
*/
|
|
26
27
|
|
|
27
28
|
/**
|
|
28
29
|
* Common props shared by all layer types.
|
|
29
30
|
*
|
|
30
|
-
* @deprecated Use `paint` and `layout` props instead of `style`.
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Use LayerProps instead.
|
|
31
|
+
* @deprecated Use `paint` and `layout` props instead of `style`. The `style` prop be removed in v12.
|
|
35
32
|
*/
|
|
36
33
|
|
|
37
|
-
// ============================================================================
|
|
38
|
-
// DEPRECATED: Legacy type exports for backwards compatibility
|
|
39
|
-
// These will be removed in v12. Use LayerProps with paint/layout instead.
|
|
40
|
-
// ============================================================================
|
|
41
|
-
|
|
42
34
|
/**
|
|
43
|
-
* @deprecated Use LayerProps
|
|
35
|
+
* @deprecated Use `LayerProps` instead.
|
|
44
36
|
*/
|
|
45
37
|
|
|
46
38
|
/**
|
|
47
|
-
* @deprecated Use
|
|
39
|
+
* @deprecated Use `layout`/`paint` instead of `style` prop.
|
|
48
40
|
*/
|
|
49
41
|
|
|
50
42
|
/**
|
|
51
|
-
* @deprecated Use
|
|
43
|
+
* @deprecated Use `layout`/`paint` instead of `style` prop.
|
|
52
44
|
*/
|
|
53
45
|
|
|
54
46
|
/**
|
|
55
|
-
* @deprecated Use
|
|
47
|
+
* @deprecated Use `layout`/`paint` instead of `style` prop.
|
|
56
48
|
*/
|
|
57
49
|
|
|
58
50
|
/**
|
|
59
|
-
* @deprecated Use
|
|
51
|
+
* @deprecated Use `layout`/`paint` instead of `style` prop.
|
|
60
52
|
*/
|
|
61
53
|
|
|
62
54
|
/**
|
|
63
|
-
* @deprecated Use
|
|
55
|
+
* @deprecated Use `layout`/`paint` instead of `style` prop.
|
|
64
56
|
*/
|
|
65
57
|
|
|
66
58
|
/**
|
|
67
|
-
* @deprecated Use
|
|
59
|
+
* @deprecated Use `layout`/`paint` instead of `style` prop.
|
|
68
60
|
*/
|
|
69
61
|
|
|
70
62
|
/**
|
|
71
|
-
* @deprecated Use
|
|
63
|
+
* @deprecated Use `layout`/`paint` instead of `style` prop.
|
|
72
64
|
*/
|
|
73
65
|
|
|
74
66
|
/**
|
|
75
|
-
*
|
|
76
|
-
* Combines style spec LayerSpecification with MLRN-specific props.
|
|
77
|
-
*
|
|
78
|
-
* The `paint` and `layout` props come directly from LayerSpecification
|
|
79
|
-
* and use kebab-case property names per the MapLibre Style Spec.
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* ```tsx
|
|
83
|
-
* // Style spec compliant (recommended)
|
|
84
|
-
* <Layer
|
|
85
|
-
* type="fill"
|
|
86
|
-
* id="parks"
|
|
87
|
-
* source="parks-source"
|
|
88
|
-
* paint={{ "fill-color": "green", "fill-opacity": 0.5 }}
|
|
89
|
-
* layout={{ "visibility": "visible" }}
|
|
90
|
-
* />
|
|
91
|
-
*
|
|
92
|
-
* // Deprecated (still works)
|
|
93
|
-
* <Layer
|
|
94
|
-
* type="fill"
|
|
95
|
-
* id="parks"
|
|
96
|
-
* source="parks-source"
|
|
97
|
-
* style={{ fillColor: "green", fillOpacity: 0.5 }}
|
|
98
|
-
* />
|
|
99
|
-
* ```
|
|
67
|
+
* @deprecated Use `layout`/`paint` instead of `style` prop.
|
|
100
68
|
*/
|
|
101
69
|
|
|
102
70
|
/**
|
|
@@ -125,14 +93,6 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
125
93
|
* "fill-color": ["interpolate", ["linear"], ["get", "elevation"], 0, "blue", 100, "red"],
|
|
126
94
|
* }}
|
|
127
95
|
* />
|
|
128
|
-
*
|
|
129
|
-
* // Deprecated style prop (still works but will be removed in v12)
|
|
130
|
-
* <Layer
|
|
131
|
-
* type="fill"
|
|
132
|
-
* id="parks"
|
|
133
|
-
* source="parks-source"
|
|
134
|
-
* style={{ fillColor: "green", fillOpacity: 0.5 }}
|
|
135
|
-
* />
|
|
136
96
|
* ```
|
|
137
97
|
*/
|
|
138
98
|
const Layer = ({
|
|
@@ -159,14 +119,9 @@ const Layer = ({
|
|
|
159
119
|
layout: undefined,
|
|
160
120
|
...props
|
|
161
121
|
};
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
if (paint || layout) {
|
|
166
|
-
console.warn("@maplibre/maplibre-react-native: Using both `style` and `paint`/`layout` props. " + "The `style` prop is deprecated and will be removed in v12. " + "Properties from `paint`/`layout` take precedence.");
|
|
167
|
-
} else {
|
|
168
|
-
console.warn("@maplibre/maplibre-react-native: The `style` prop is deprecated. " + "Use `paint` and `layout` props instead. Will be removed in v12.");
|
|
169
|
-
}
|
|
122
|
+
if (__DEV__ && style && !deprecationWarned) {
|
|
123
|
+
deprecationWarned = true;
|
|
124
|
+
console.warn("[@maplibre/maplibre-react-native] The `style` prop is deprecated. " + "Use `paint` and `layout` props instead. `style` will be removed in v12.");
|
|
170
125
|
}
|
|
171
126
|
|
|
172
127
|
// Merge paint/layout (new API) with style (deprecated API)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_LayerNativeComponent","_interopRequireDefault","_useFrozenId","_StyleValue","_convertStyleSpec","_getNativeFilter","_jsxRuntime","e","__esModule","default","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;AACA;AACA;;AAkBA;AACA;;AAQA;AACA;AACA
|
|
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;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byB,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,
|
|
@@ -76,6 +76,9 @@ export interface NativeProps extends ViewProps {
|
|
|
76
76
|
compassPosition?: NativeOrnamentViewPosition;
|
|
77
77
|
compassHiddenFacingNorth?: CodegenTypes.WithDefault<boolean, true>;
|
|
78
78
|
|
|
79
|
+
scaleBar?: CodegenTypes.WithDefault<boolean, false>;
|
|
80
|
+
scaleBarPosition?: NativeOrnamentViewPosition;
|
|
81
|
+
|
|
79
82
|
onPress?: CodegenTypes.BubblingEventHandler<NativePressEvent>;
|
|
80
83
|
onLongPress?: CodegenTypes.BubblingEventHandler<NativePressEvent>;
|
|
81
84
|
|
|
@@ -24,11 +24,12 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
24
24
|
/**
|
|
25
25
|
* MapLibre Native Map
|
|
26
26
|
*/
|
|
27
|
-
const Map = exports.Map = /*#__PURE__*/(0, _react.memo)(
|
|
27
|
+
const Map = exports.Map = /*#__PURE__*/(0, _react.memo)(({
|
|
28
28
|
androidView = "surface",
|
|
29
29
|
style,
|
|
30
|
+
ref,
|
|
30
31
|
...props
|
|
31
|
-
}
|
|
32
|
+
}) => {
|
|
32
33
|
const [isReady, setIsReady] = (0, _react.useState)(false);
|
|
33
34
|
const nativeRef = (0, _react.useRef)(null);
|
|
34
35
|
(0, _react.useImperativeHandle)(ref, () => ({
|
|
@@ -88,5 +89,5 @@ const Map = exports.Map = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _react.
|
|
|
88
89
|
testID: nativeProps.testID ? `${nativeProps.testID}-view` : undefined,
|
|
89
90
|
children: map
|
|
90
91
|
});
|
|
91
|
-
})
|
|
92
|
+
});
|
|
92
93
|
//# 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,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,GAAG9C,KAAK;IAEhD,OAAO;MACL,GAAG8C,UAAU;MACb/C,GAAG,EAAEK,SAAS;MACdN,KAAK,EAAET,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":[]}
|
|
@@ -73,6 +73,9 @@ export interface NativeProps extends ViewProps {
|
|
|
73
73
|
compassPosition?: NativeOrnamentViewPosition;
|
|
74
74
|
compassHiddenFacingNorth?: CodegenTypes.WithDefault<boolean, true>;
|
|
75
75
|
|
|
76
|
+
scaleBar?: CodegenTypes.WithDefault<boolean, false>;
|
|
77
|
+
scaleBarPosition?: NativeOrnamentViewPosition;
|
|
78
|
+
|
|
76
79
|
onPress?: CodegenTypes.BubblingEventHandler<NativePressEvent>;
|
|
77
80
|
onLongPress?: CodegenTypes.BubblingEventHandler<NativePressEvent>;
|
|
78
81
|
|
|
@@ -17,11 +17,12 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
17
17
|
* GeoJSONSource is a map content source that supplies GeoJSON to be shown on the map.
|
|
18
18
|
* 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;AA8IjE;AACA;AACA;AACA;AACO,MAAMG,aAAa,GAAAC,OAAA,CAAAD,aAAA,gBAAG,IAAAE,WAAI,EAC/B,CAAC;EAAEC,EAAE;EAAEC,IAAI;EAAEC,GAAG;EAAE,GAAGC;AAA0B,CAAC,KAAK;EACnD,MAAMC,SAAS,GAAG,IAAAC,aAAM,EAGtB,IAAI,CAAC;EAEP,MAAMC,QAAQ,GAAG,IAAAC,wBAAW,EAACP,EAAE,CAAC;EAEhC,IAAAQ,0BAAmB,EAACN,GAAG,EAAE,OAAO;IAC9BO,OAAO,EAAE,MAAOC,MAAM,IAAK;MACzB,OAAOC,kCAAyB,CAACF,OAAO,CACtC,IAAAG,8BAAc,EAACR,SAAS,CAACS,OAAO,CAAC,EACjC,IAAAC,gCAAe,EAACJ,MAAM,CACxB,CAAC;IACH,CAAC;IAEDK,uBAAuB,EAAE,MAAOC,SAAS,IAAK;MAC5C,OAAOL,kCAAyB,CAACI,uBAAuB,CACtD,IAAAH,8BAAc,EAACR,SAAS,CAACS,OAAO,CAAC,EACjCG,SACF,CAAC;IACH,CAAC;IAEDC,gBAAgB,EAAE,MAAAA,CAChBD,SAAiB,EACjBE,KAAa,EACbC,MAAc,KACX;MACH,OAAOR,kCAAyB,CAACM,gBAAgB,CAC/C,IAAAL,8BAAc,EAACR,SAAS,CAACS,OAAO,CAAC,EACjCG,SAAS,EACTE,KAAK,EACLC,MACF,CAAC;IACH,CAAC;IAEDC,kBAAkB,EAAE,MAAOJ,SAAiB,IAAK;MAC/C,OAAOL,kCAAyB,CAACS,kBAAkB,CACjD,IAAAR,8BAAc,EAACR,SAAS,CAACS,OAAO,CAAC,EACjCG,SACF,CAAC;IACH;EACF,CAAC,CAAC,CAAC;EAEH,oBACE,IAAAvB,WAAA,CAAA4B,GAAA,EAACnC,6BAAA,CAAAU,OAA4B;IAC3BM,GAAG,EAAEE,SAAU;IACfJ,EAAE,EAAEM,QAAS;IACbL,IAAI,EAAE,OAAOA,IAAI,KAAK,QAAQ,GAAGA,IAAI,GAAGqB,IAAI,CAACC,SAAS,CAACtB,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":[]}
|
|
@@ -17,10 +17,11 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
17
17
|
* VectorSource is a map content source that supplies tiled vector data in Mapbox Vector Tile format to be shown on the map.
|
|
18
18
|
* The location of and metadata about the tiles are defined either by an option dictionary or by an external file that conforms to the TileJSON specification.
|
|
19
19
|
*/
|
|
20
|
-
const VectorSource = exports.VectorSource = /*#__PURE__*/(0, _react.memo)(
|
|
20
|
+
const VectorSource = exports.VectorSource = /*#__PURE__*/(0, _react.memo)(({
|
|
21
21
|
id,
|
|
22
|
+
ref,
|
|
22
23
|
...props
|
|
23
|
-
}
|
|
24
|
+
}) => {
|
|
24
25
|
const nativeRef = (0, _react.useRef)(null);
|
|
25
26
|
const frozenId = (0, _useFrozenId.useFrozenId)(id);
|
|
26
27
|
(0, _react.useImperativeHandle)(ref, () => ({
|
|
@@ -40,5 +41,5 @@ const VectorSource = exports.VectorSource = /*#__PURE__*/(0, _react.memo)(/*#__P
|
|
|
40
41
|
source: frozenId
|
|
41
42
|
})
|
|
42
43
|
});
|
|
43
|
-
})
|
|
44
|
+
});
|
|
44
45
|
//# 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,OAAA,EAAAF,CAAA;AAwEjE;AACA;AACA;AACA;AACO,MAAMG,YAAY,GAAAC,OAAA,CAAAD,YAAA,gBAAG,IAAAE,WAAI,EAAC,CAAC;EAAEC,EAAE;EAAEC,GAAG;EAAE,GAAGC;AAAyB,CAAC,KAAK;EAC7E,MAAMC,SAAS,GAAG,IAAAC,aAAM,EAGtB,IAAI,CAAC;EAEP,MAAMC,QAAQ,GAAG,IAAAC,wBAAW,EAACN,EAAE,CAAC;EAEhC,IAAAO,0BAAmB,EAACN,GAAG,EAAE,OAAO;IAC9BO,mBAAmB,EAAE,MAAAA,CAAO;MAC1BC,WAAW;MACXC;IAIF,CAAC,KAAiC;MAChC,OAAOC,iCAAwB,CAACH,mBAAmB,CACjD,IAAAI,8BAAc,EAACT,SAAS,CAACU,OAAO,CAAC,EACjCJ,WAAW,EACX,IAAAK,gCAAe,EAACJ,MAAM,CACxB,CAAC;IACH;EACF,CAAC,CAAC,CAAC;EAEH,oBACE,IAAAjB,WAAA,CAAAsB,GAAA,EAAC3B,4BAAA,CAAAQ,OAA2B;IAC1BK,GAAG,EAAEE,SAAU;IACfH,EAAE,EAAEK,QAAS;IACbW,UAAU,EAAE,CAAC,CAACd,KAAK,CAACe,OAAQ;IAAA,GACxBf,KAAK;IAAAgB,QAAA,EAER,IAAAC,kCAA2B,EAACjB,KAAK,CAACgB,QAAQ,EAAE;MAC3CE,MAAM,EAAEf;IACV,CAAC;EAAC,CACyB,CAAC;AAElC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -6,9 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.UserLocation = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _UserLocationPuck = require("./UserLocationPuck.js");
|
|
9
|
+
var _heading = _interopRequireDefault(require("../../assets/heading.png"));
|
|
9
10
|
var _useCurrentPosition = require("../../hooks/useCurrentPosition.js");
|
|
10
11
|
var _LayerAnnotation = require("../annotations/LayerAnnotation.js");
|
|
12
|
+
var _Images = require("../images/Images.js");
|
|
11
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
15
|
const UserLocation = exports.UserLocation = /*#__PURE__*/(0, _react.memo)(({
|
|
13
16
|
animated = true,
|
|
14
17
|
accuracy = false,
|
|
@@ -26,18 +29,24 @@ const UserLocation = exports.UserLocation = /*#__PURE__*/(0, _react.memo)(({
|
|
|
26
29
|
if (!lngLat || !currentPosition) {
|
|
27
30
|
return null;
|
|
28
31
|
}
|
|
29
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
33
|
+
children: [heading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Images.Images, {
|
|
34
|
+
images: {
|
|
35
|
+
"mlrn-user-location-puck-heading": _heading.default
|
|
36
|
+
}
|
|
37
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_LayerAnnotation.LayerAnnotation, {
|
|
38
|
+
animated: animated,
|
|
39
|
+
id: "mlrn-user-location",
|
|
40
|
+
testID: "mlrn-user-location",
|
|
41
|
+
onPress: onPress,
|
|
42
|
+
lngLat: lngLat,
|
|
43
|
+
children: children || /*#__PURE__*/(0, _jsxRuntime.jsx)(_UserLocationPuck.UserLocationPuck, {
|
|
44
|
+
testID: "mlrn-user-location-puck",
|
|
45
|
+
source: "mlrn-user-location",
|
|
46
|
+
accuracy: accuracy ? currentPosition.coords.accuracy : undefined,
|
|
47
|
+
heading: heading ? currentPosition.coords.heading ?? undefined : undefined
|
|
48
|
+
})
|
|
49
|
+
})]
|
|
41
50
|
});
|
|
42
51
|
});
|
|
43
52
|
//# sourceMappingURL=UserLocation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_UserLocationPuck","_useCurrentPosition","_LayerAnnotation","_jsxRuntime","UserLocation","exports","memo","animated","accuracy","heading","minDisplacement","children","onPress","currentPosition","useCurrentPosition","lngLat","useMemo","coords","longitude","latitude","undefined","jsx","LayerAnnotation","id","testID","UserLocationPuck","source"],"sourceRoot":"../../../../src","sources":["components/user-location/UserLocation.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,
|
|
1
|
+
{"version":3,"names":["_react","require","_UserLocationPuck","_heading","_interopRequireDefault","_useCurrentPosition","_LayerAnnotation","_Images","_jsxRuntime","e","__esModule","default","UserLocation","exports","memo","animated","accuracy","heading","minDisplacement","children","onPress","currentPosition","useCurrentPosition","lngLat","useMemo","coords","longitude","latitude","undefined","jsxs","Fragment","jsx","Images","images","headingIcon","LayerAnnotation","id","testID","UserLocationPuck","source"],"sourceRoot":"../../../../src","sources":["components/user-location/UserLocation.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAEA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAA0C,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAG,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAkCnC,MAAMG,YAAY,GAAAC,OAAA,CAAAD,YAAA,gBAAG,IAAAE,WAAI,EAC9B,CAAC;EACC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