@mapvina-com/mapvina-react-native 1.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/LICENSE.md +9 -0
- package/MapVinaReactNative.podspec +96 -0
- package/README.md +47 -0
- package/android/build.gradle +139 -0
- package/android/gradle.properties +16 -0
- package/android/src/main/AndroidManifest.xml +5 -0
- package/android/src/main/java/io/github/mapvina/reactnative/MLRNPackage.kt +163 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/AbstractEvent.kt +20 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/AbstractEventEmitter.kt +80 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/AbstractMapFeature.kt +13 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/callout/MLRNCallout.kt +8 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/callout/MLRNCalloutManager.kt +26 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/markerview/MLRNMarkerView.kt +245 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/markerview/MLRNMarkerViewContent.kt +46 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/markerview/MLRNMarkerViewManager.kt +104 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/markerview/MarkerViewManager.kt +143 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/pointannotation/MLRNPointAnnotation.kt +449 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/pointannotation/MLRNPointAnnotationManager.kt +133 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/camera/CameraStop.kt +223 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/camera/CameraUpdateItem.kt +100 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/camera/CameraUpdateQueue.kt +58 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/camera/MLRNCamera.kt +411 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/camera/MLRNCameraManager.kt +84 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/camera/MLRNCameraModule.kt +36 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/camera/constants/CameraEasing.kt +23 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/images/MLRNImages.kt +172 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/images/MLRNImagesManager.kt +73 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/layer/MLRNLayer.kt +370 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/layer/MLRNLayerManager.kt +105 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/layer/style/MLRNStyle.kt +60 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/layer/style/MLRNStyleFactory.kt +3057 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/layer/style/MLRNStyleValue.kt +159 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/location/LocationComponentManager.kt +174 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/location/MLRNNativeUserLocation.kt +75 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/location/MLRNNativeUserLocationManager.kt +50 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/MLRNAndroidTextureMapView.kt +25 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/MLRNAndroidTextureMapViewManager.kt +25 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/MLRNMapView.kt +1514 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/MLRNMapViewManager.kt +280 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/MLRNMapViewModule.kt +202 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/helpers/CameraChangeTracker.kt +26 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/helpers/LayerSourceInfo.kt +76 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/MLRNPressableSource.kt +61 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/MLRNSource.kt +198 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/MLRNSourceManager.kt +69 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/geojsonsource/ClusterPropertyEntry.kt +8 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/geojsonsource/MLRNGeoJSONSource.kt +212 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/geojsonsource/MLRNGeoJSONSourceManager.kt +159 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/geojsonsource/MLRNGeoJSONSourceModule.kt +74 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/imagesource/MLRNImageSource.kt +58 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/imagesource/MLRNImageSourceManager.kt +38 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/MLRNPressableTileSource.kt +20 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/MLRNTileSource.kt +20 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/MLRNTileSourceManager.kt +66 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/TileSourceInterface.kt +50 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/rasterdemsource/MLRNRasterDEMSource.kt +28 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/rasterdemsource/MLRNRasterDEMSourceManager.kt +34 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/rastersource/MLRNRasterSource.kt +23 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/rastersource/MLRNRasterSourceManager.kt +26 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/vectorsource/MLRNVectorSource.kt +37 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/vectorsource/MLRNVectorSourceManager.kt +17 -0
- package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/vectorsource/MLRNVectorSourceModule.kt +44 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/AbstractEvent.java +59 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/EventEmitter.java +45 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/IEvent.java +14 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/MapChangeEvent.kt +16 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/MapClickEvent.java +51 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/MapPressEvent.kt +30 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/MapPressEventWithFeatures.kt +21 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/OfflineEvent.java +25 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/PointAnnotationClickEvent.java +40 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/PointAnnotationDragEvent.java +49 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/PointAnnotationEvent.kt +32 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/constants/EventKeys.java +22 -0
- package/android/src/main/java/io/github/mapvina/reactnative/events/constants/EventTypes.java +27 -0
- package/android/src/main/java/io/github/mapvina/reactnative/location/LocationManager.kt +167 -0
- package/android/src/main/java/io/github/mapvina/reactnative/location/TrackUserLocationMode.kt +39 -0
- package/android/src/main/java/io/github/mapvina/reactnative/location/TrackUserLocationState.kt +15 -0
- package/android/src/main/java/io/github/mapvina/reactnative/location/UserLocation.kt +42 -0
- package/android/src/main/java/io/github/mapvina/reactnative/location/engine/DefaultLocationEngineProvider.kt +18 -0
- package/android/src/main/java/io/github/mapvina/reactnative/location/engine/LocationEngineProvidable.kt +8 -0
- package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNLocationModule.kt +179 -0
- package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNLogModule.kt +141 -0
- package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNNetworkModule.kt +25 -0
- package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNOfflineModule.kt +661 -0
- package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNStaticMapModule.kt +121 -0
- package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNTransformRequestModule.kt +144 -0
- package/android/src/main/java/io/github/mapvina/reactnative/modules/TransformRequestInterceptor.kt +184 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/BitmapUtils.java +125 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/ConvertUtils.kt +225 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/DownloadMapImageTask.java +155 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/DownloadedImage.java +6 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/ExpressionParser.kt +67 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/GeoJSONUtils.kt +368 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/GeoViewport.java +37 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/ImageEntry.kt +14 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/ReactTagResolver.kt +91 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/ResourceUtils.java +26 -0
- package/android/src/main/java/io/github/mapvina/reactnative/utils/SphericalMercator.java +68 -0
- package/android/src/main/location-engine-default/io/github/mapvina/reactnative/location/engine/LocationEngineProvider.kt +8 -0
- package/android/src/main/location-engine-google/io/github/mapvina/reactnative/location/engine/GoogleLocationEngineImpl.kt +142 -0
- package/android/src/main/location-engine-google/io/github/mapvina/reactnative/location/engine/GoogleLocationEngineProvider.kt +29 -0
- package/android/src/main/location-engine-google/io/github/mapvina/reactnative/location/engine/LocationEngineProvider.kt +8 -0
- package/android/src/main/res/drawable/empty.xml +5 -0
- package/android/src/main/res/drawable/empty_drawable.png +0 -0
- package/android/src/main/res/drawable-xxhdpi/default_marker.png +0 -0
- package/app.plugin.js +1 -0
- package/ios/components/ViewManager.h +8 -0
- package/ios/components/ViewManager.m +49 -0
- package/ios/components/annotations/callout/MLRNCallout.h +7 -0
- package/ios/components/annotations/callout/MLRNCallout.m +67 -0
- package/ios/components/annotations/callout/MLRNCalloutComponentView.h +10 -0
- package/ios/components/annotations/callout/MLRNCalloutComponentView.mm +85 -0
- package/ios/components/annotations/point-annotation/MLRNPointAnnotation.h +45 -0
- package/ios/components/annotations/point-annotation/MLRNPointAnnotation.m +319 -0
- package/ios/components/annotations/point-annotation/MLRNPointAnnotationComponentView.h +10 -0
- package/ios/components/annotations/point-annotation/MLRNPointAnnotationComponentView.mm +327 -0
- package/ios/components/camera/CameraEasing.h +8 -0
- package/ios/components/camera/CameraStop.h +22 -0
- package/ios/components/camera/CameraStop.m +75 -0
- package/ios/components/camera/CameraUpdateItem.h +11 -0
- package/ios/components/camera/CameraUpdateItem.m +167 -0
- package/ios/components/camera/CameraUpdateQueue.h +13 -0
- package/ios/components/camera/CameraUpdateQueue.m +62 -0
- package/ios/components/camera/MLRNCamera.h +26 -0
- package/ios/components/camera/MLRNCamera.m +195 -0
- package/ios/components/camera/MLRNCameraComponentView.h +10 -0
- package/ios/components/camera/MLRNCameraComponentView.mm +201 -0
- package/ios/components/camera/MLRNCameraManager.h +11 -0
- package/ios/components/camera/MLRNCameraManager.m +20 -0
- package/ios/components/camera/MLRNCameraModule.h +4 -0
- package/ios/components/camera/MLRNCameraModule.mm +101 -0
- package/ios/components/images/MLRNImageLoader.h +27 -0
- package/ios/components/images/MLRNImageLoader.m +85 -0
- package/ios/components/images/MLRNImageQueue.h +15 -0
- package/ios/components/images/MLRNImageQueue.m +48 -0
- package/ios/components/images/MLRNImageQueueOperation.h +11 -0
- package/ios/components/images/MLRNImageQueueOperation.m +138 -0
- package/ios/components/images/MLRNImages.h +26 -0
- package/ios/components/images/MLRNImages.m +189 -0
- package/ios/components/images/MLRNImagesComponentView.h +9 -0
- package/ios/components/images/MLRNImagesComponentView.mm +104 -0
- package/ios/components/images/MLRNImagesModule.h +6 -0
- package/ios/components/images/MLRNImagesModule.mm +23 -0
- package/ios/components/layer/MLRNLayer.h +54 -0
- package/ios/components/layer/MLRNLayer.m +348 -0
- package/ios/components/layer/MLRNLayerComponentView.h +9 -0
- package/ios/components/layer/MLRNLayerComponentView.mm +136 -0
- package/ios/components/layer/style/MLRNStyle.h +224 -0
- package/ios/components/layer/style/MLRNStyle.m +1627 -0
- package/ios/components/layer/style/MLRNStyleValue.h +20 -0
- package/ios/components/layer/style/MLRNStyleValue.m +172 -0
- package/ios/components/map-view/MLRNMapTouchEvent.h +18 -0
- package/ios/components/map-view/MLRNMapTouchEvent.m +78 -0
- package/ios/components/map-view/MLRNMapView.h +119 -0
- package/ios/components/map-view/MLRNMapView.m +905 -0
- package/ios/components/map-view/MLRNMapViewComponentView.h +13 -0
- package/ios/components/map-view/MLRNMapViewComponentView.mm +430 -0
- package/ios/components/map-view/MLRNMapViewManager.h +70 -0
- package/ios/components/map-view/MLRNMapViewManager.m +152 -0
- package/ios/components/map-view/MLRNMapViewModule.h +4 -0
- package/ios/components/map-view/MLRNMapViewModule.mm +248 -0
- package/ios/components/sources/MLRNSource.h +28 -0
- package/ios/components/sources/MLRNSource.m +129 -0
- package/ios/components/sources/geojson-source/MLRNGeoJSONSource.h +32 -0
- package/ios/components/sources/geojson-source/MLRNGeoJSONSource.m +146 -0
- package/ios/components/sources/geojson-source/MLRNGeoJSONSourceComponentView.h +9 -0
- package/ios/components/sources/geojson-source/MLRNGeoJSONSourceComponentView.mm +168 -0
- package/ios/components/sources/geojson-source/MLRNGeoJSONSourceModule.h +4 -0
- package/ios/components/sources/geojson-source/MLRNGeoJSONSourceModule.mm +136 -0
- package/ios/components/sources/image-source/MLRNImageSource.h +8 -0
- package/ios/components/sources/image-source/MLRNImageSource.m +41 -0
- package/ios/components/sources/image-source/MLRNImageSourceComponentView.h +9 -0
- package/ios/components/sources/image-source/MLRNImageSourceComponentView.mm +95 -0
- package/ios/components/sources/tile-sources/MLRNTileSource.h +18 -0
- package/ios/components/sources/tile-sources/MLRNTileSource.m +26 -0
- package/ios/components/sources/tile-sources/raster-dem-source/MLRNRasterDEMSource.h +10 -0
- package/ios/components/sources/tile-sources/raster-dem-source/MLRNRasterDEMSource.m +39 -0
- package/ios/components/sources/tile-sources/raster-dem-source/MLRNRasterDEMSourceComponentView.h +9 -0
- package/ios/components/sources/tile-sources/raster-dem-source/MLRNRasterDEMSourceComponentView.mm +131 -0
- package/ios/components/sources/tile-sources/raster-source/MLRNRasterSource.h +9 -0
- package/ios/components/sources/tile-sources/raster-source/MLRNRasterSource.m +31 -0
- package/ios/components/sources/tile-sources/raster-source/MLRNRasterSourceComponentView.h +9 -0
- package/ios/components/sources/tile-sources/raster-source/MLRNRasterSourceComponentView.mm +129 -0
- package/ios/components/sources/tile-sources/vector-source/MLRNVectorSource.h +11 -0
- package/ios/components/sources/tile-sources/vector-source/MLRNVectorSource.m +23 -0
- package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceComponentView.h +9 -0
- package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceComponentView.mm +162 -0
- package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceModule.h +4 -0
- package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceModule.mm +65 -0
- package/ios/components/user-location/MLRNNativeUserLocation.h +11 -0
- package/ios/components/user-location/MLRNNativeUserLocation.m +38 -0
- package/ios/components/user-location/MLRNNativeUserLocationComponentView.h +10 -0
- package/ios/components/user-location/MLRNNativeUserLocationComponentView.mm +51 -0
- package/ios/components/user-location/MLRNUserLocation.h +15 -0
- package/ios/components/user-location/MLRNUserLocation.m +36 -0
- package/ios/modules/location/MLRNLocation.h +10 -0
- package/ios/modules/location/MLRNLocation.m +26 -0
- package/ios/modules/location/MLRNLocationManager.h +20 -0
- package/ios/modules/location/MLRNLocationManager.m +167 -0
- package/ios/modules/location/MLRNLocationManagerDelegate.h +10 -0
- package/ios/modules/location/MLRNLocationModule.h +7 -0
- package/ios/modules/location/MLRNLocationModule.mm +67 -0
- package/ios/modules/logging/MLRNLogModule.h +10 -0
- package/ios/modules/logging/MLRNLogModule.mm +39 -0
- package/ios/modules/logging/MLRNLogging.h +27 -0
- package/ios/modules/logging/MLRNLogging.m +102 -0
- package/ios/modules/network/MLRNNetworkModule.h +8 -0
- package/ios/modules/network/MLRNNetworkModule.mm +18 -0
- package/ios/modules/offline/MLRNOfflineModule.h +7 -0
- package/ios/modules/offline/MLRNOfflineModule.mm +692 -0
- package/ios/modules/static-map/MLRNStaticMapModule.h +4 -0
- package/ios/modules/static-map/MLRNStaticMapModule.mm +84 -0
- 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/FilterParser.h +7 -0
- package/ios/utils/FilterParser.m +13 -0
- package/ios/utils/MLRNEvent.h +13 -0
- package/ios/utils/MLRNEvent.m +36 -0
- package/ios/utils/MLRNEventProtocol.h +8 -0
- package/ios/utils/MLRNEventTypes.h +12 -0
- package/ios/utils/MLRNEventTypes.m +12 -0
- package/ios/utils/MLRNFollyConvert.h +5 -0
- package/ios/utils/MLRNImageUtils.h +9 -0
- package/ios/utils/MLRNImageUtils.m +24 -0
- package/ios/utils/MLRNPropConvert.h +17 -0
- package/ios/utils/MLRNUtils.h +32 -0
- package/ios/utils/MLRNUtils.m +193 -0
- package/ios/utils/MLRNViewModuleUtils.h +35 -0
- package/ios/utils/MLRNViewModuleUtils.m +39 -0
- package/lib/commonjs/assets/heading.png +0 -0
- package/lib/commonjs/assets/heading@2x.png +0 -0
- package/lib/commonjs/assets/heading@3x.png +0 -0
- package/lib/commonjs/assets/png.d.js +2 -0
- package/lib/commonjs/assets/png.d.js.map +1 -0
- package/lib/commonjs/components/annotations/LayerAnnotation.js +59 -0
- package/lib/commonjs/components/annotations/LayerAnnotation.js.map +1 -0
- package/lib/commonjs/components/annotations/callout/Callout.js +95 -0
- package/lib/commonjs/components/annotations/callout/Callout.js.map +1 -0
- package/lib/commonjs/components/annotations/callout/CalloutNativeComponent.ts +11 -0
- package/lib/commonjs/components/annotations/marker/Marker.js +88 -0
- package/lib/commonjs/components/annotations/marker/Marker.js.map +1 -0
- package/lib/commonjs/components/annotations/marker/MarkerViewNativeComponent.ts +40 -0
- package/lib/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +59 -0
- package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js +93 -0
- package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js.map +1 -0
- package/lib/commonjs/components/camera/Camera.js +146 -0
- package/lib/commonjs/components/camera/Camera.js.map +1 -0
- package/lib/commonjs/components/camera/CameraNativeComponent.ts +65 -0
- package/lib/commonjs/components/camera/NativeCameraModule.js +11 -0
- package/lib/commonjs/components/camera/NativeCameraModule.js.map +1 -0
- package/lib/commonjs/components/images/Images.js +58 -0
- package/lib/commonjs/components/images/Images.js.map +1 -0
- package/lib/commonjs/components/images/ImagesNativeComponent.ts +27 -0
- 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 +157 -0
- package/lib/commonjs/components/layer/Layer.js.map +1 -0
- package/lib/commonjs/components/layer/LayerNativeComponent.ts +43 -0
- package/lib/commonjs/components/map/AndroidTextureMapViewNativeComponent.ts +109 -0
- package/lib/commonjs/components/map/Map.js +117 -0
- package/lib/commonjs/components/map/Map.js.map +1 -0
- package/lib/commonjs/components/map/MapViewNativeComponent.ts +105 -0
- package/lib/commonjs/components/map/NativeMapViewModule.js +9 -0
- package/lib/commonjs/components/map/NativeMapViewModule.js.map +1 -0
- package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js +56 -0
- package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js.map +1 -0
- package/lib/commonjs/components/sources/geojson-source/GeoJSONSourceNativeComponent.ts +48 -0
- package/lib/commonjs/components/sources/geojson-source/NativeGeoJSONSourceModule.js +9 -0
- package/lib/commonjs/components/sources/geojson-source/NativeGeoJSONSourceModule.js.map +1 -0
- package/lib/commonjs/components/sources/image-source/ImageSource.js +33 -0
- package/lib/commonjs/components/sources/image-source/ImageSource.js.map +1 -0
- package/lib/commonjs/components/sources/image-source/ImageSourceNativeComponent.ts +31 -0
- package/lib/commonjs/components/sources/raster-dem-source/RasterDEMSource.js +31 -0
- package/lib/commonjs/components/sources/raster-dem-source/RasterDEMSource.js.map +1 -0
- package/lib/commonjs/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.ts +25 -0
- package/lib/commonjs/components/sources/raster-source/RasterSource.js +32 -0
- package/lib/commonjs/components/sources/raster-source/RasterSource.js.map +1 -0
- package/lib/commonjs/components/sources/raster-source/RasterSourceNativeComponent.ts +25 -0
- package/lib/commonjs/components/sources/vector-source/NativeVectorSourceModule.js +9 -0
- package/lib/commonjs/components/sources/vector-source/NativeVectorSourceModule.js.map +1 -0
- package/lib/commonjs/components/sources/vector-source/VectorSource.js +47 -0
- package/lib/commonjs/components/sources/vector-source/VectorSource.js.map +1 -0
- package/lib/commonjs/components/sources/vector-source/VectorSourceNativeComponent.ts +45 -0
- package/lib/commonjs/components/user-location/NativeUserLocation.js +16 -0
- package/lib/commonjs/components/user-location/NativeUserLocation.js.map +1 -0
- package/lib/commonjs/components/user-location/UserLocation.js +52 -0
- package/lib/commonjs/components/user-location/UserLocation.js.map +1 -0
- package/lib/commonjs/components/user-location/UserLocationNativeComponent.ts +19 -0
- package/lib/commonjs/components/user-location/UserLocationPuck.js +63 -0
- package/lib/commonjs/components/user-location/UserLocationPuck.js.map +1 -0
- package/lib/commonjs/components/user-location/UserLocationPuckHeading.js +31 -0
- package/lib/commonjs/components/user-location/UserLocationPuckHeading.js.map +1 -0
- package/lib/commonjs/hooks/useCurrentPosition.js +34 -0
- package/lib/commonjs/hooks/useCurrentPosition.js.map +1 -0
- package/lib/commonjs/hooks/useFrozenId.js +16 -0
- package/lib/commonjs/hooks/useFrozenId.js.map +1 -0
- package/lib/commonjs/hooks/useNativeBridge.js +84 -0
- package/lib/commonjs/hooks/useNativeBridge.js.map +1 -0
- package/lib/commonjs/index.js +174 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/modules/location/LocationManager.js +98 -0
- package/lib/commonjs/modules/location/LocationManager.js.map +1 -0
- package/lib/commonjs/modules/location/NativeLocationModule.js +9 -0
- package/lib/commonjs/modules/location/NativeLocationModule.js.map +1 -0
- package/lib/commonjs/modules/log/LogManager.js +100 -0
- package/lib/commonjs/modules/log/LogManager.js.map +1 -0
- package/lib/commonjs/modules/log/NativeLogModule.js +9 -0
- package/lib/commonjs/modules/log/NativeLogModule.js.map +1 -0
- package/lib/commonjs/modules/network/NativeNetworkModule.js +9 -0
- package/lib/commonjs/modules/network/NativeNetworkModule.js.map +1 -0
- package/lib/commonjs/modules/network/NetworkManager.js +34 -0
- package/lib/commonjs/modules/network/NetworkManager.js.map +1 -0
- package/lib/commonjs/modules/offline/NativeOfflineModule.js +9 -0
- package/lib/commonjs/modules/offline/NativeOfflineModule.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflineManager.js +351 -0
- package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflinePack.js +30 -0
- package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -0
- package/lib/commonjs/modules/static-map/NativeStaticMapModule.js +9 -0
- package/lib/commonjs/modules/static-map/NativeStaticMapModule.js.map +1 -0
- package/lib/commonjs/modules/static-map/StaticMapManager.js +57 -0
- package/lib/commonjs/modules/static-map/StaticMapManager.js.map +1 -0
- 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/package.json +1 -0
- package/lib/commonjs/plugin/MapVinaPluginProps.js +2 -0
- package/lib/commonjs/plugin/MapVinaPluginProps.js.map +1 -0
- package/lib/commonjs/plugin/android.js +39 -0
- package/lib/commonjs/plugin/android.js.map +1 -0
- package/lib/commonjs/plugin/ios.js +91 -0
- package/lib/commonjs/plugin/ios.js.map +1 -0
- package/lib/commonjs/types/Anchor.js +67 -0
- package/lib/commonjs/types/Anchor.js.map +1 -0
- package/lib/commonjs/types/BaseProps.js +2 -0
- package/lib/commonjs/types/BaseProps.js.map +1 -0
- package/lib/commonjs/types/LngLat.js +2 -0
- package/lib/commonjs/types/LngLat.js.map +1 -0
- package/lib/commonjs/types/LngLatBounds.js +2 -0
- package/lib/commonjs/types/LngLatBounds.js.map +1 -0
- package/lib/commonjs/types/MapVinaRNStyles.js +6 -0
- package/lib/commonjs/types/MapVinaRNStyles.js.map +1 -0
- package/lib/commonjs/types/PixelPoint.js +2 -0
- package/lib/commonjs/types/PixelPoint.js.map +1 -0
- package/lib/commonjs/types/PixelPointBounds.js +2 -0
- package/lib/commonjs/types/PixelPointBounds.js.map +1 -0
- package/lib/commonjs/types/PressEvent.js +6 -0
- package/lib/commonjs/types/PressEvent.js.map +1 -0
- package/lib/commonjs/types/PressEventWithFeatures.js +6 -0
- package/lib/commonjs/types/PressEventWithFeatures.js.map +1 -0
- package/lib/commonjs/types/PressableSourceProps.js +6 -0
- package/lib/commonjs/types/PressableSourceProps.js.map +1 -0
- package/lib/commonjs/types/ViewPadding.js +2 -0
- package/lib/commonjs/types/ViewPadding.js.map +1 -0
- package/lib/commonjs/types/codegen/UnsafeMixed.js +2 -0
- package/lib/commonjs/types/codegen/UnsafeMixed.js.map +1 -0
- package/lib/commonjs/utils/BridgeValue.js +59 -0
- package/lib/commonjs/utils/BridgeValue.js.map +1 -0
- package/lib/commonjs/utils/StyleValue.js +38 -0
- package/lib/commonjs/utils/StyleValue.js.map +1 -0
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +96 -0
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js.map +1 -0
- package/lib/commonjs/utils/animated/Animated.js +30 -0
- package/lib/commonjs/utils/animated/Animated.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +91 -0
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js +32 -0
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedGeoJSON.js +67 -0
- package/lib/commonjs/utils/animated/AnimatedGeoJSON.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedPoint.js +114 -0
- package/lib/commonjs/utils/animated/AnimatedPoint.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +120 -0
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -0
- package/lib/commonjs/utils/convertStyleSpec.js +58 -0
- package/lib/commonjs/utils/convertStyleSpec.js.map +1 -0
- package/lib/commonjs/utils/findNodeHandle.js +16 -0
- package/lib/commonjs/utils/findNodeHandle.js.map +1 -0
- package/lib/commonjs/utils/getNativeFilter.js +16 -0
- package/lib/commonjs/utils/getNativeFilter.js.map +1 -0
- package/lib/commonjs/utils/getStylePropertyType.js +255 -0
- package/lib/commonjs/utils/getStylePropertyType.js.map +1 -0
- package/lib/commonjs/utils/index.js +68 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/module/assets/heading.png +0 -0
- package/lib/module/assets/heading@2x.png +0 -0
- package/lib/module/assets/heading@3x.png +0 -0
- package/lib/module/assets/png.d.js +2 -0
- package/lib/module/assets/png.d.js.map +1 -0
- package/lib/module/components/annotations/LayerAnnotation.js +54 -0
- package/lib/module/components/annotations/LayerAnnotation.js.map +1 -0
- package/lib/module/components/annotations/callout/Callout.js +89 -0
- package/lib/module/components/annotations/callout/Callout.js.map +1 -0
- package/lib/module/components/annotations/callout/CalloutNativeComponent.ts +11 -0
- package/lib/module/components/annotations/marker/Marker.js +82 -0
- package/lib/module/components/annotations/marker/Marker.js.map +1 -0
- package/lib/module/components/annotations/marker/MarkerViewNativeComponent.ts +40 -0
- package/lib/module/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +59 -0
- package/lib/module/components/annotations/view-annotation/ViewAnnotation.js +87 -0
- package/lib/module/components/annotations/view-annotation/ViewAnnotation.js.map +1 -0
- package/lib/module/components/camera/Camera.js +141 -0
- package/lib/module/components/camera/Camera.js.map +1 -0
- package/lib/module/components/camera/CameraNativeComponent.ts +65 -0
- package/lib/module/components/camera/NativeCameraModule.js +10 -0
- package/lib/module/components/camera/NativeCameraModule.js.map +1 -0
- package/lib/module/components/images/Images.js +52 -0
- package/lib/module/components/images/Images.js.map +1 -0
- package/lib/module/components/images/ImagesNativeComponent.ts +27 -0
- 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 +151 -0
- package/lib/module/components/layer/Layer.js.map +1 -0
- package/lib/module/components/layer/LayerNativeComponent.ts +43 -0
- package/lib/module/components/map/AndroidTextureMapViewNativeComponent.ts +109 -0
- package/lib/module/components/map/Map.js +112 -0
- package/lib/module/components/map/Map.js.map +1 -0
- package/lib/module/components/map/MapViewNativeComponent.ts +105 -0
- package/lib/module/components/map/NativeMapViewModule.js +5 -0
- package/lib/module/components/map/NativeMapViewModule.js.map +1 -0
- package/lib/module/components/sources/geojson-source/GeoJSONSource.js +51 -0
- package/lib/module/components/sources/geojson-source/GeoJSONSource.js.map +1 -0
- package/lib/module/components/sources/geojson-source/GeoJSONSourceNativeComponent.ts +48 -0
- package/lib/module/components/sources/geojson-source/NativeGeoJSONSourceModule.js +5 -0
- package/lib/module/components/sources/geojson-source/NativeGeoJSONSourceModule.js.map +1 -0
- package/lib/module/components/sources/image-source/ImageSource.js +28 -0
- package/lib/module/components/sources/image-source/ImageSource.js.map +1 -0
- package/lib/module/components/sources/image-source/ImageSourceNativeComponent.ts +31 -0
- package/lib/module/components/sources/raster-dem-source/RasterDEMSource.js +26 -0
- package/lib/module/components/sources/raster-dem-source/RasterDEMSource.js.map +1 -0
- package/lib/module/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.ts +25 -0
- package/lib/module/components/sources/raster-source/RasterSource.js +27 -0
- package/lib/module/components/sources/raster-source/RasterSource.js.map +1 -0
- package/lib/module/components/sources/raster-source/RasterSourceNativeComponent.ts +25 -0
- package/lib/module/components/sources/vector-source/NativeVectorSourceModule.js +5 -0
- package/lib/module/components/sources/vector-source/NativeVectorSourceModule.js.map +1 -0
- package/lib/module/components/sources/vector-source/VectorSource.js +42 -0
- package/lib/module/components/sources/vector-source/VectorSource.js.map +1 -0
- package/lib/module/components/sources/vector-source/VectorSourceNativeComponent.ts +45 -0
- package/lib/module/components/user-location/NativeUserLocation.js +10 -0
- package/lib/module/components/user-location/NativeUserLocation.js.map +1 -0
- package/lib/module/components/user-location/UserLocation.js +47 -0
- package/lib/module/components/user-location/UserLocation.js.map +1 -0
- package/lib/module/components/user-location/UserLocationNativeComponent.ts +19 -0
- package/lib/module/components/user-location/UserLocationPuck.js +59 -0
- package/lib/module/components/user-location/UserLocationPuck.js.map +1 -0
- package/lib/module/components/user-location/UserLocationPuckHeading.js +27 -0
- package/lib/module/components/user-location/UserLocationPuckHeading.js.map +1 -0
- package/lib/module/hooks/useCurrentPosition.js +30 -0
- package/lib/module/hooks/useCurrentPosition.js.map +1 -0
- package/lib/module/hooks/useFrozenId.js +12 -0
- package/lib/module/hooks/useFrozenId.js.map +1 -0
- package/lib/module/hooks/useNativeBridge.js +79 -0
- package/lib/module/hooks/useNativeBridge.js.map +1 -0
- package/lib/module/index.js +27 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/modules/location/LocationManager.js +94 -0
- package/lib/module/modules/location/LocationManager.js.map +1 -0
- package/lib/module/modules/location/NativeLocationModule.js +5 -0
- package/lib/module/modules/location/NativeLocationModule.js.map +1 -0
- package/lib/module/modules/log/LogManager.js +97 -0
- package/lib/module/modules/log/LogManager.js.map +1 -0
- package/lib/module/modules/log/NativeLogModule.js +5 -0
- package/lib/module/modules/log/NativeLogModule.js.map +1 -0
- package/lib/module/modules/network/NativeNetworkModule.js +5 -0
- package/lib/module/modules/network/NativeNetworkModule.js.map +1 -0
- package/lib/module/modules/network/NetworkManager.js +30 -0
- package/lib/module/modules/network/NetworkManager.js.map +1 -0
- package/lib/module/modules/offline/NativeOfflineModule.js +5 -0
- package/lib/module/modules/offline/NativeOfflineModule.js.map +1 -0
- package/lib/module/modules/offline/OfflineManager.js +348 -0
- package/lib/module/modules/offline/OfflineManager.js.map +1 -0
- package/lib/module/modules/offline/OfflinePack.js +24 -0
- package/lib/module/modules/offline/OfflinePack.js.map +1 -0
- package/lib/module/modules/static-map/NativeStaticMapModule.js +5 -0
- package/lib/module/modules/static-map/NativeStaticMapModule.js.map +1 -0
- package/lib/module/modules/static-map/StaticMapManager.js +53 -0
- package/lib/module/modules/static-map/StaticMapManager.js.map +1 -0
- 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/package.json +1 -0
- package/lib/module/plugin/MapVinaPluginProps.js +2 -0
- package/lib/module/plugin/MapVinaPluginProps.js.map +1 -0
- package/lib/module/plugin/android.js +32 -0
- package/lib/module/plugin/android.js.map +1 -0
- package/lib/module/plugin/ios.js +83 -0
- package/lib/module/plugin/ios.js.map +1 -0
- package/lib/module/types/Anchor.js +63 -0
- package/lib/module/types/Anchor.js.map +1 -0
- package/lib/module/types/BaseProps.js +2 -0
- package/lib/module/types/BaseProps.js.map +1 -0
- package/lib/module/types/LngLat.js +2 -0
- package/lib/module/types/LngLat.js.map +1 -0
- package/lib/module/types/LngLatBounds.js +2 -0
- package/lib/module/types/LngLatBounds.js.map +1 -0
- package/lib/module/types/MapVinaRNStyles.js +4 -0
- package/lib/module/types/MapVinaRNStyles.js.map +1 -0
- package/lib/module/types/PixelPoint.js +2 -0
- package/lib/module/types/PixelPoint.js.map +1 -0
- package/lib/module/types/PixelPointBounds.js +2 -0
- package/lib/module/types/PixelPointBounds.js.map +1 -0
- package/lib/module/types/PressEvent.js +4 -0
- package/lib/module/types/PressEvent.js.map +1 -0
- package/lib/module/types/PressEventWithFeatures.js +4 -0
- package/lib/module/types/PressEventWithFeatures.js.map +1 -0
- package/lib/module/types/PressableSourceProps.js +4 -0
- package/lib/module/types/PressableSourceProps.js.map +1 -0
- package/lib/module/types/ViewPadding.js +2 -0
- package/lib/module/types/ViewPadding.js.map +1 -0
- package/lib/module/types/codegen/UnsafeMixed.js +2 -0
- package/lib/module/types/codegen/UnsafeMixed.js.map +1 -0
- package/lib/module/utils/BridgeValue.js +54 -0
- package/lib/module/utils/BridgeValue.js.map +1 -0
- package/lib/module/utils/StyleValue.js +34 -0
- package/lib/module/utils/StyleValue.js.map +1 -0
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +91 -0
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js.map +1 -0
- package/lib/module/utils/animated/Animated.js +26 -0
- package/lib/module/utils/animated/Animated.js.map +1 -0
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js +86 -0
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js.map +1 -0
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js +27 -0
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -0
- package/lib/module/utils/animated/AnimatedGeoJSON.js +62 -0
- package/lib/module/utils/animated/AnimatedGeoJSON.js.map +1 -0
- package/lib/module/utils/animated/AnimatedPoint.js +109 -0
- package/lib/module/utils/animated/AnimatedPoint.js.map +1 -0
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +115 -0
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -0
- package/lib/module/utils/convertStyleSpec.js +53 -0
- package/lib/module/utils/convertStyleSpec.js.map +1 -0
- package/lib/module/utils/findNodeHandle.js +11 -0
- package/lib/module/utils/findNodeHandle.js.map +1 -0
- package/lib/module/utils/getNativeFilter.js +12 -0
- package/lib/module/utils/getNativeFilter.js.map +1 -0
- package/lib/module/utils/getStylePropertyType.js +251 -0
- package/lib/module/utils/getStylePropertyType.js.map +1 -0
- package/lib/module/utils/index.js +55 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/typescript/commonjs/components/annotations/LayerAnnotation.d.ts +20 -0
- package/lib/typescript/commonjs/components/annotations/LayerAnnotation.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts +35 -0
- package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/annotations/callout/CalloutNativeComponent.d.ts +6 -0
- package/lib/typescript/commonjs/components/annotations/callout/CalloutNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts +79 -0
- package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/annotations/marker/MarkerViewNativeComponent.d.ts +31 -0
- package/lib/typescript/commonjs/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +44 -0
- package/lib/typescript/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts +119 -0
- package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/camera/Camera.d.ts +217 -0
- package/lib/typescript/commonjs/components/camera/Camera.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/camera/CameraNativeComponent.d.ts +37 -0
- package/lib/typescript/commonjs/components/camera/CameraNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/camera/NativeCameraModule.d.ts +26 -0
- package/lib/typescript/commonjs/components/camera/NativeCameraModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/images/Images.d.ts +69 -0
- package/lib/typescript/commonjs/components/images/Images.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/images/ImagesNativeComponent.d.ts +17 -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/components/layer/Layer.d.ts +172 -0
- package/lib/typescript/commonjs/components/layer/Layer.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/layer/LayerNativeComponent.d.ts +19 -0
- package/lib/typescript/commonjs/components/layer/LayerNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/map/AndroidTextureMapViewNativeComponent.d.ts +79 -0
- package/lib/typescript/commonjs/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/map/Map.d.ts +448 -0
- package/lib/typescript/commonjs/components/map/Map.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/map/MapViewNativeComponent.d.ts +79 -0
- package/lib/typescript/commonjs/components/map/MapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/map/NativeMapViewModule.d.ts +31 -0
- package/lib/typescript/commonjs/components/map/NativeMapViewModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts +135 -0
- 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 +35 -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 +10 -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 +32 -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 +21 -0
- package/lib/typescript/commonjs/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/raster-dem-source/RasterDEMSource.d.ts +58 -0
- package/lib/typescript/commonjs/components/sources/raster-dem-source/RasterDEMSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.d.ts +15 -0
- package/lib/typescript/commonjs/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts +59 -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 +15 -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 +7 -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 +32 -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 +27 -0
- package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts +31 -0
- package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationNativeComponent.d.ts +8 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationPuck.d.ts +10 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationPuck.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationPuckHeading.d.ts +9 -0
- package/lib/typescript/commonjs/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useCurrentPosition.d.ts +18 -0
- package/lib/typescript/commonjs/hooks/useCurrentPosition.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useFrozenId.d.ts +2 -0
- package/lib/typescript/commonjs/hooks/useFrozenId.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useNativeBridge.d.ts +21 -0
- package/lib/typescript/commonjs/hooks/useNativeBridge.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +36 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/location/LocationManager.d.ts +62 -0
- package/lib/typescript/commonjs/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/location/NativeLocationModule.d.ts +25 -0
- package/lib/typescript/commonjs/modules/location/NativeLocationModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/log/LogManager.d.ts +46 -0
- package/lib/typescript/commonjs/modules/log/LogManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/log/NativeLogModule.d.ts +13 -0
- package/lib/typescript/commonjs/modules/log/NativeLogModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/network/NativeNetworkModule.d.ts +7 -0
- 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 +50 -0
- package/lib/typescript/commonjs/modules/offline/NativeOfflineModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts +238 -0
- package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/offline/OfflinePack.d.ts +25 -0
- package/lib/typescript/commonjs/modules/offline/OfflinePack.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/static-map/NativeStaticMapModule.d.ts +19 -0
- package/lib/typescript/commonjs/modules/static-map/NativeStaticMapModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/static-map/StaticMapManager.d.ts +105 -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 +213 -0
- package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/plugin/MapVinaPluginProps.d.ts +78 -0
- package/lib/typescript/commonjs/plugin/MapVinaPluginProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugin/android.d.ts +17 -0
- package/lib/typescript/commonjs/plugin/android.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugin/ios.d.ts +15 -0
- package/lib/typescript/commonjs/plugin/ios.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 +5 -0
- package/lib/typescript/commonjs/types/LngLat.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/LngLatBounds.d.ts +13 -0
- package/lib/typescript/commonjs/types/LngLatBounds.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/MapVinaRNStyles.d.ts +1169 -0
- package/lib/typescript/commonjs/types/MapVinaRNStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/PixelPoint.d.ts +5 -0
- package/lib/typescript/commonjs/types/PixelPoint.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/PixelPointBounds.d.ts +10 -0
- package/lib/typescript/commonjs/types/PixelPointBounds.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/PressEvent.d.ts +16 -0
- package/lib/typescript/commonjs/types/PressEvent.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/PressEventWithFeatures.d.ts +8 -0
- package/lib/typescript/commonjs/types/PressEventWithFeatures.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/PressableSourceProps.d.ts +19 -0
- package/lib/typescript/commonjs/types/PressableSourceProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/ViewPadding.d.ts +10 -0
- package/lib/typescript/commonjs/types/ViewPadding.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/codegen/UnsafeMixed.d.ts +10 -0
- package/lib/typescript/commonjs/types/codegen/UnsafeMixed.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/BridgeValue.d.ts +29 -0
- package/lib/typescript/commonjs/utils/BridgeValue.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/StyleValue.d.ts +10 -0
- package/lib/typescript/commonjs/utils/StyleValue.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AbstractAnimatedCoordinates.d.ts +42 -0
- package/lib/typescript/commonjs/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/Animated.d.ts +21 -0
- package/lib/typescript/commonjs/utils/animated/Animated.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedCoordinatesArray.d.ts +40 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +13 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts +31 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedPoint.d.ts +32 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedPoint.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedRouteCoordinatesArray.d.ts +62 -0
- package/lib/typescript/commonjs/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/convertStyleSpec.d.ts +16 -0
- package/lib/typescript/commonjs/utils/convertStyleSpec.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/findNodeHandle.d.ts +3 -0
- package/lib/typescript/commonjs/utils/findNodeHandle.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/getNativeFilter.d.ts +3 -0
- package/lib/typescript/commonjs/utils/getNativeFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/getStylePropertyType.d.ts +35 -0
- package/lib/typescript/commonjs/utils/getStylePropertyType.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/index.d.ts +18 -0
- package/lib/typescript/commonjs/utils/index.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/LayerAnnotation.d.ts +20 -0
- package/lib/typescript/module/components/annotations/LayerAnnotation.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/callout/Callout.d.ts +35 -0
- package/lib/typescript/module/components/annotations/callout/Callout.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/callout/CalloutNativeComponent.d.ts +6 -0
- package/lib/typescript/module/components/annotations/callout/CalloutNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/marker/Marker.d.ts +79 -0
- package/lib/typescript/module/components/annotations/marker/Marker.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/marker/MarkerViewNativeComponent.d.ts +31 -0
- package/lib/typescript/module/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +44 -0
- package/lib/typescript/module/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts +119 -0
- package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -0
- package/lib/typescript/module/components/camera/Camera.d.ts +217 -0
- package/lib/typescript/module/components/camera/Camera.d.ts.map +1 -0
- package/lib/typescript/module/components/camera/CameraNativeComponent.d.ts +37 -0
- package/lib/typescript/module/components/camera/CameraNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/camera/NativeCameraModule.d.ts +26 -0
- package/lib/typescript/module/components/camera/NativeCameraModule.d.ts.map +1 -0
- package/lib/typescript/module/components/images/Images.d.ts +69 -0
- package/lib/typescript/module/components/images/Images.d.ts.map +1 -0
- package/lib/typescript/module/components/images/ImagesNativeComponent.d.ts +17 -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/components/layer/Layer.d.ts +172 -0
- package/lib/typescript/module/components/layer/Layer.d.ts.map +1 -0
- package/lib/typescript/module/components/layer/LayerNativeComponent.d.ts +19 -0
- package/lib/typescript/module/components/layer/LayerNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/map/AndroidTextureMapViewNativeComponent.d.ts +79 -0
- package/lib/typescript/module/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/map/Map.d.ts +448 -0
- package/lib/typescript/module/components/map/Map.d.ts.map +1 -0
- package/lib/typescript/module/components/map/MapViewNativeComponent.d.ts +79 -0
- package/lib/typescript/module/components/map/MapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/map/NativeMapViewModule.d.ts +31 -0
- package/lib/typescript/module/components/map/NativeMapViewModule.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts +135 -0
- 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 +35 -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 +10 -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 +32 -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 +21 -0
- package/lib/typescript/module/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/raster-dem-source/RasterDEMSource.d.ts +58 -0
- package/lib/typescript/module/components/sources/raster-dem-source/RasterDEMSource.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.d.ts +15 -0
- package/lib/typescript/module/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts +59 -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 +15 -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 +7 -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 +32 -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 +27 -0
- package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts.map +1 -0
- package/lib/typescript/module/components/user-location/UserLocation.d.ts +31 -0
- package/lib/typescript/module/components/user-location/UserLocation.d.ts.map +1 -0
- package/lib/typescript/module/components/user-location/UserLocationNativeComponent.d.ts +8 -0
- package/lib/typescript/module/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/components/user-location/UserLocationPuck.d.ts +10 -0
- package/lib/typescript/module/components/user-location/UserLocationPuck.d.ts.map +1 -0
- package/lib/typescript/module/components/user-location/UserLocationPuckHeading.d.ts +9 -0
- package/lib/typescript/module/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useCurrentPosition.d.ts +18 -0
- package/lib/typescript/module/hooks/useCurrentPosition.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useFrozenId.d.ts +2 -0
- package/lib/typescript/module/hooks/useFrozenId.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useNativeBridge.d.ts +21 -0
- package/lib/typescript/module/hooks/useNativeBridge.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +36 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/modules/location/LocationManager.d.ts +62 -0
- package/lib/typescript/module/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/location/NativeLocationModule.d.ts +25 -0
- package/lib/typescript/module/modules/location/NativeLocationModule.d.ts.map +1 -0
- package/lib/typescript/module/modules/log/LogManager.d.ts +46 -0
- package/lib/typescript/module/modules/log/LogManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/log/NativeLogModule.d.ts +13 -0
- package/lib/typescript/module/modules/log/NativeLogModule.d.ts.map +1 -0
- package/lib/typescript/module/modules/network/NativeNetworkModule.d.ts +7 -0
- 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 +50 -0
- package/lib/typescript/module/modules/offline/NativeOfflineModule.d.ts.map +1 -0
- package/lib/typescript/module/modules/offline/OfflineManager.d.ts +238 -0
- package/lib/typescript/module/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/module/modules/offline/OfflinePack.d.ts +25 -0
- package/lib/typescript/module/modules/offline/OfflinePack.d.ts.map +1 -0
- package/lib/typescript/module/modules/static-map/NativeStaticMapModule.d.ts +19 -0
- package/lib/typescript/module/modules/static-map/NativeStaticMapModule.d.ts.map +1 -0
- package/lib/typescript/module/modules/static-map/StaticMapManager.d.ts +105 -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 +213 -0
- package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/plugin/MapVinaPluginProps.d.ts +78 -0
- package/lib/typescript/module/plugin/MapVinaPluginProps.d.ts.map +1 -0
- package/lib/typescript/module/plugin/android.d.ts +17 -0
- package/lib/typescript/module/plugin/android.d.ts.map +1 -0
- package/lib/typescript/module/plugin/ios.d.ts +15 -0
- package/lib/typescript/module/plugin/ios.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 +5 -0
- package/lib/typescript/module/types/LngLat.d.ts.map +1 -0
- package/lib/typescript/module/types/LngLatBounds.d.ts +13 -0
- package/lib/typescript/module/types/LngLatBounds.d.ts.map +1 -0
- package/lib/typescript/module/types/MapVinaRNStyles.d.ts +1169 -0
- package/lib/typescript/module/types/MapVinaRNStyles.d.ts.map +1 -0
- package/lib/typescript/module/types/PixelPoint.d.ts +5 -0
- package/lib/typescript/module/types/PixelPoint.d.ts.map +1 -0
- package/lib/typescript/module/types/PixelPointBounds.d.ts +10 -0
- package/lib/typescript/module/types/PixelPointBounds.d.ts.map +1 -0
- package/lib/typescript/module/types/PressEvent.d.ts +16 -0
- package/lib/typescript/module/types/PressEvent.d.ts.map +1 -0
- package/lib/typescript/module/types/PressEventWithFeatures.d.ts +8 -0
- package/lib/typescript/module/types/PressEventWithFeatures.d.ts.map +1 -0
- package/lib/typescript/module/types/PressableSourceProps.d.ts +19 -0
- package/lib/typescript/module/types/PressableSourceProps.d.ts.map +1 -0
- package/lib/typescript/module/types/ViewPadding.d.ts +10 -0
- package/lib/typescript/module/types/ViewPadding.d.ts.map +1 -0
- package/lib/typescript/module/types/codegen/UnsafeMixed.d.ts +10 -0
- package/lib/typescript/module/types/codegen/UnsafeMixed.d.ts.map +1 -0
- package/lib/typescript/module/utils/BridgeValue.d.ts +29 -0
- package/lib/typescript/module/utils/BridgeValue.d.ts.map +1 -0
- package/lib/typescript/module/utils/StyleValue.d.ts +10 -0
- package/lib/typescript/module/utils/StyleValue.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AbstractAnimatedCoordinates.d.ts +42 -0
- package/lib/typescript/module/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/Animated.d.ts +21 -0
- package/lib/typescript/module/utils/animated/Animated.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AnimatedCoordinatesArray.d.ts +40 -0
- package/lib/typescript/module/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +13 -0
- package/lib/typescript/module/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts +31 -0
- package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AnimatedPoint.d.ts +32 -0
- package/lib/typescript/module/utils/animated/AnimatedPoint.d.ts.map +1 -0
- package/lib/typescript/module/utils/animated/AnimatedRouteCoordinatesArray.d.ts +62 -0
- package/lib/typescript/module/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/module/utils/convertStyleSpec.d.ts +16 -0
- package/lib/typescript/module/utils/convertStyleSpec.d.ts.map +1 -0
- package/lib/typescript/module/utils/findNodeHandle.d.ts +3 -0
- package/lib/typescript/module/utils/findNodeHandle.d.ts.map +1 -0
- package/lib/typescript/module/utils/getNativeFilter.d.ts +3 -0
- package/lib/typescript/module/utils/getNativeFilter.d.ts.map +1 -0
- package/lib/typescript/module/utils/getStylePropertyType.d.ts +35 -0
- package/lib/typescript/module/utils/getStylePropertyType.d.ts.map +1 -0
- package/lib/typescript/module/utils/index.d.ts +18 -0
- package/lib/typescript/module/utils/index.d.ts.map +1 -0
- package/package.json +191 -0
- package/src/assets/heading.png +0 -0
- package/src/assets/heading@2x.png +0 -0
- package/src/assets/heading@3x.png +0 -0
- package/src/assets/png.d.ts +4 -0
- package/src/components/annotations/LayerAnnotation.tsx +74 -0
- package/src/components/annotations/callout/Callout.tsx +146 -0
- package/src/components/annotations/callout/CalloutNativeComponent.ts +11 -0
- package/src/components/annotations/marker/Marker.tsx +176 -0
- package/src/components/annotations/marker/MarkerViewNativeComponent.ts +40 -0
- package/src/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +59 -0
- package/src/components/annotations/view-annotation/ViewAnnotation.tsx +239 -0
- package/src/components/camera/Camera.tsx +344 -0
- package/src/components/camera/CameraNativeComponent.ts +65 -0
- package/src/components/camera/NativeCameraModule.ts +38 -0
- package/src/components/images/Images.tsx +111 -0
- package/src/components/images/ImagesNativeComponent.ts +27 -0
- package/src/components/images/NativeImagesModule.ts +11 -0
- package/src/components/layer/Layer.tsx +278 -0
- package/src/components/layer/LayerNativeComponent.ts +43 -0
- package/src/components/map/AndroidTextureMapViewNativeComponent.ts +109 -0
- package/src/components/map/Map.tsx +697 -0
- package/src/components/map/MapViewNativeComponent.ts +105 -0
- package/src/components/map/NativeMapViewModule.ts +78 -0
- package/src/components/sources/geojson-source/GeoJSONSource.tsx +245 -0
- package/src/components/sources/geojson-source/GeoJSONSourceNativeComponent.ts +48 -0
- package/src/components/sources/geojson-source/NativeGeoJSONSourceModule.ts +33 -0
- package/src/components/sources/image-source/ImageSource.tsx +58 -0
- package/src/components/sources/image-source/ImageSourceNativeComponent.ts +31 -0
- package/src/components/sources/raster-dem-source/RasterDEMSource.tsx +83 -0
- package/src/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.ts +25 -0
- package/src/components/sources/raster-source/RasterSource.tsx +82 -0
- package/src/components/sources/raster-source/RasterSourceNativeComponent.ts +25 -0
- package/src/components/sources/vector-source/NativeVectorSourceModule.ts +15 -0
- package/src/components/sources/vector-source/VectorSource.tsx +137 -0
- package/src/components/sources/vector-source/VectorSourceNativeComponent.ts +45 -0
- package/src/components/user-location/NativeUserLocation.tsx +31 -0
- package/src/components/user-location/UserLocation.tsx +98 -0
- package/src/components/user-location/UserLocationNativeComponent.ts +19 -0
- package/src/components/user-location/UserLocationPuck.tsx +83 -0
- package/src/components/user-location/UserLocationPuckHeading.tsx +34 -0
- package/src/hooks/useCurrentPosition.ts +53 -0
- package/src/hooks/useFrozenId.ts +13 -0
- package/src/hooks/useNativeBridge.ts +128 -0
- package/src/index.ts +119 -0
- package/src/modules/location/LocationManager.ts +174 -0
- package/src/modules/location/NativeLocationModule.ts +33 -0
- package/src/modules/log/LogManager.ts +115 -0
- package/src/modules/log/NativeLogModule.ts +16 -0
- package/src/modules/network/NativeNetworkModule.ts +8 -0
- package/src/modules/network/NetworkManager.ts +28 -0
- package/src/modules/offline/NativeOfflineModule.ts +63 -0
- package/src/modules/offline/OfflineManager.ts +428 -0
- package/src/modules/offline/OfflinePack.ts +44 -0
- package/src/modules/static-map/NativeStaticMapModule.ts +26 -0
- package/src/modules/static-map/StaticMapManager.ts +127 -0
- package/src/modules/transform-request/NativeTransformRequestModule.ts +41 -0
- package/src/modules/transform-request/TransformRequestManager.ts +304 -0
- package/src/plugin/MapVinaPluginProps.ts +84 -0
- package/src/plugin/android.ts +68 -0
- package/src/plugin/ios.ts +114 -0
- package/src/types/Anchor.ts +43 -0
- package/src/types/BaseProps.ts +6 -0
- package/src/types/LngLat.ts +4 -0
- package/src/types/LngLatBounds.ts +12 -0
- package/src/types/MapVinaRNStyles.ts +1335 -0
- package/src/types/PixelPoint.ts +4 -0
- package/src/types/PixelPointBounds.ts +9 -0
- package/src/types/PressEvent.ts +17 -0
- package/src/types/PressEventWithFeatures.ts +8 -0
- package/src/types/PressableSourceProps.ts +21 -0
- package/src/types/ViewPadding.ts +9 -0
- package/src/types/codegen/UnsafeMixed.ts +9 -0
- package/src/utils/BridgeValue.ts +90 -0
- package/src/utils/StyleValue.ts +52 -0
- package/src/utils/animated/AbstractAnimatedCoordinates.ts +145 -0
- package/src/utils/animated/Animated.ts +33 -0
- package/src/utils/animated/AnimatedCoordinatesArray.ts +114 -0
- package/src/utils/animated/AnimatedExtractCoordinateFromArray.ts +37 -0
- package/src/utils/animated/AnimatedGeoJSON.ts +90 -0
- package/src/utils/animated/AnimatedPoint.ts +153 -0
- package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +155 -0
- package/src/utils/convertStyleSpec.ts +61 -0
- package/src/utils/findNodeHandle.ts +14 -0
- package/src/utils/getNativeFilter.ts +15 -0
- package/src/utils/getStylePropertyType.ts +268 -0
- package/src/utils/index.ts +105 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
import ImageSourceNativeComponent from "./ImageSourceNativeComponent";
|
|
5
|
+
import { useFrozenId } from "../../../hooks/useFrozenId.js";
|
|
6
|
+
import { cloneReactChildrenWithProps, isNumber, resolveImagePath } from "../../../utils/index.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
/**
|
|
9
|
+
* ImageSource is a content source that is used for a georeferenced raster image
|
|
10
|
+
* to be shown on the map. The georeferenced image scales and rotates as the
|
|
11
|
+
* user zooms and rotates the map
|
|
12
|
+
*/
|
|
13
|
+
export const ImageSource = /*#__PURE__*/memo(({
|
|
14
|
+
id,
|
|
15
|
+
url,
|
|
16
|
+
...props
|
|
17
|
+
}) => {
|
|
18
|
+
const frozenId = useFrozenId(id);
|
|
19
|
+
return /*#__PURE__*/_jsx(ImageSourceNativeComponent, {
|
|
20
|
+
id: frozenId,
|
|
21
|
+
url: isNumber(url) ? resolveImagePath(url) : url,
|
|
22
|
+
coordinates: props.coordinates,
|
|
23
|
+
children: cloneReactChildrenWithProps(props.children, {
|
|
24
|
+
source: frozenId
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=ImageSource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","ImageSourceNativeComponent","useFrozenId","cloneReactChildrenWithProps","isNumber","resolveImagePath","jsx","_jsx","ImageSource","id","url","props","frozenId","coordinates","children","source"],"sourceRoot":"../../../../../src","sources":["components/sources/image-source/ImageSource.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAwB,OAAO;AAE5C,OAAOC,0BAA0B,MAAM,8BAA8B;AACrE,SAASC,WAAW,QAAQ,+BAA4B;AAGxD,SACEC,2BAA2B,EAC3BC,QAAQ,EACRC,gBAAgB,QACX,yBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AA4BxB;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,WAAW,gBAAGR,IAAI,CAAC,CAAC;EAAES,EAAE;EAAEC,GAAG;EAAE,GAAGC;AAAwB,CAAC,KAAK;EAC3E,MAAMC,QAAQ,GAAGV,WAAW,CAACO,EAAE,CAAC;EAEhC,oBACEF,IAAA,CAACN,0BAA0B;IACzBQ,EAAE,EAAEG,QAAS;IACbF,GAAG,EAAEN,QAAQ,CAACM,GAAG,CAAC,GAAGL,gBAAgB,CAACK,GAAG,CAAC,GAAGA,GAAI;IACjDG,WAAW,EAAEF,KAAK,CAACE,WAAY;IAAAC,QAAA,EAE9BX,2BAA2B,CAACQ,KAAK,CAACG,QAAQ,EAAE;MAC3CC,MAAM,EAAEH;IACV,CAAC;EAAC,CACwB,CAAC;AAEjC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
codegenNativeComponent,
|
|
3
|
+
type CodegenTypes,
|
|
4
|
+
type HostComponent,
|
|
5
|
+
type ViewProps,
|
|
6
|
+
} from "react-native";
|
|
7
|
+
|
|
8
|
+
import type { UnsafeMixed } from "../../../types/codegen/UnsafeMixed";
|
|
9
|
+
|
|
10
|
+
export interface NativeProps extends ViewProps {
|
|
11
|
+
id: string;
|
|
12
|
+
url?: string;
|
|
13
|
+
coordinates?: UnsafeMixed<
|
|
14
|
+
[
|
|
15
|
+
topLeft: [longitude: CodegenTypes.Double, latitude: CodegenTypes.Double],
|
|
16
|
+
topRight: [longitude: CodegenTypes.Double, latitude: CodegenTypes.Double],
|
|
17
|
+
bottomRight: [
|
|
18
|
+
longitude: CodegenTypes.Double,
|
|
19
|
+
latitude: CodegenTypes.Double,
|
|
20
|
+
],
|
|
21
|
+
bottomLeft: [
|
|
22
|
+
longitude: CodegenTypes.Double,
|
|
23
|
+
latitude: CodegenTypes.Double,
|
|
24
|
+
],
|
|
25
|
+
]
|
|
26
|
+
>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default codegenNativeComponent<NativeProps>(
|
|
30
|
+
"MLRNImageSource",
|
|
31
|
+
) as HostComponent<NativeProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
import RasterDEMSourceNativeComponent from "./RasterDEMSourceNativeComponent";
|
|
5
|
+
import { useFrozenId } from "../../../hooks/useFrozenId.js";
|
|
6
|
+
import { cloneReactChildrenWithProps } from "../../../utils/index.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
/**
|
|
9
|
+
* RasterDEMSource is a map content source that supplies rasterized digital
|
|
10
|
+
* elevation model (DEM) tiles to be shown on the map. Use it together with a
|
|
11
|
+
* hillshade layer to visualize terrain.
|
|
12
|
+
*/
|
|
13
|
+
export const RasterDEMSource = /*#__PURE__*/memo(({
|
|
14
|
+
id,
|
|
15
|
+
...props
|
|
16
|
+
}) => {
|
|
17
|
+
const frozenId = useFrozenId(id);
|
|
18
|
+
return /*#__PURE__*/_jsx(RasterDEMSourceNativeComponent, {
|
|
19
|
+
id: frozenId,
|
|
20
|
+
...props,
|
|
21
|
+
children: cloneReactChildrenWithProps(props.children, {
|
|
22
|
+
source: frozenId
|
|
23
|
+
})
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=RasterDEMSource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","RasterDEMSourceNativeComponent","useFrozenId","cloneReactChildrenWithProps","jsx","_jsx","RasterDEMSource","id","props","frozenId","children","source"],"sourceRoot":"../../../../../src","sources":["components/sources/raster-dem-source/RasterDEMSource.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAwB,OAAO;AAE5C,OAAOC,8BAA8B,MAAM,kCAAkC;AAC7E,SAASC,WAAW,QAAQ,+BAA4B;AAExD,SAASC,2BAA2B,QAAQ,yBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AA4D7D;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,gBAAGN,IAAI,CACjC,CAAC;EAAEO,EAAE;EAAE,GAAGC;AAA4B,CAAC,KAAK;EAC1C,MAAMC,QAAQ,GAAGP,WAAW,CAACK,EAAE,CAAC;EAEhC,oBACEF,IAAA,CAACJ,8BAA8B;IAACM,EAAE,EAAEE,QAAS;IAAA,GAAKD,KAAK;IAAAE,QAAA,EACpDP,2BAA2B,CAACK,KAAK,CAACE,QAAQ,EAAE;MAC3CC,MAAM,EAAEF;IACV,CAAC;EAAC,CAC4B,CAAC;AAErC,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
codegenNativeComponent,
|
|
3
|
+
type CodegenTypes,
|
|
4
|
+
type HostComponent,
|
|
5
|
+
type ViewProps,
|
|
6
|
+
} from "react-native";
|
|
7
|
+
|
|
8
|
+
type NativeDEMEncoding = "mapbox" | "terrarium";
|
|
9
|
+
|
|
10
|
+
export interface NativeProps extends ViewProps {
|
|
11
|
+
id: string;
|
|
12
|
+
url?: string;
|
|
13
|
+
tiles?: string[];
|
|
14
|
+
|
|
15
|
+
tileSize?: CodegenTypes.WithDefault<CodegenTypes.Int32, 512>;
|
|
16
|
+
minzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
|
|
17
|
+
maxzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
|
|
18
|
+
attribution?: string;
|
|
19
|
+
|
|
20
|
+
encoding?: CodegenTypes.WithDefault<NativeDEMEncoding, "mapbox">;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default codegenNativeComponent<NativeProps>(
|
|
24
|
+
"MLRNRasterDEMSource",
|
|
25
|
+
) as HostComponent<NativeProps>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
import RasterSourceNativeComponent from "./RasterSourceNativeComponent";
|
|
5
|
+
import { useFrozenId } from "../../../hooks/useFrozenId.js";
|
|
6
|
+
import { cloneReactChildrenWithProps } from "../../../utils/index.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
/**
|
|
9
|
+
* RasterSource is a map content source that supplies raster image tiles to be
|
|
10
|
+
* shown on the map. The location of and metadata about the tiles are defined
|
|
11
|
+
* either by an option dictionary or by an external file that conforms to the
|
|
12
|
+
* TileJSON specification.
|
|
13
|
+
*/
|
|
14
|
+
export const RasterSource = /*#__PURE__*/memo(({
|
|
15
|
+
id,
|
|
16
|
+
...props
|
|
17
|
+
}) => {
|
|
18
|
+
const frozenId = useFrozenId(id);
|
|
19
|
+
return /*#__PURE__*/_jsx(RasterSourceNativeComponent, {
|
|
20
|
+
id: frozenId,
|
|
21
|
+
...props,
|
|
22
|
+
children: cloneReactChildrenWithProps(props.children, {
|
|
23
|
+
source: frozenId
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=RasterSource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","RasterSourceNativeComponent","useFrozenId","cloneReactChildrenWithProps","jsx","_jsx","RasterSource","id","props","frozenId","children","source"],"sourceRoot":"../../../../../src","sources":["components/sources/raster-source/RasterSource.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAwB,OAAO;AAE5C,OAAOC,2BAA2B,MAAM,+BAA+B;AACvE,SAASC,WAAW,QAAQ,+BAA4B;AAExD,SAASC,2BAA2B,QAAQ,yBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AA4D7D;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,YAAY,gBAAGN,IAAI,CAAC,CAAC;EAAEO,EAAE;EAAE,GAAGC;AAAyB,CAAC,KAAK;EACxE,MAAMC,QAAQ,GAAGP,WAAW,CAACK,EAAE,CAAC;EAEhC,oBACEF,IAAA,CAACJ,2BAA2B;IAACM,EAAE,EAAEE,QAAS;IAAA,GAAKD,KAAK;IAAAE,QAAA,EACjDP,2BAA2B,CAACK,KAAK,CAACE,QAAQ,EAAE;MAC3CC,MAAM,EAAEF;IACV,CAAC;EAAC,CACyB,CAAC;AAElC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
codegenNativeComponent,
|
|
3
|
+
type CodegenTypes,
|
|
4
|
+
type HostComponent,
|
|
5
|
+
type ViewProps,
|
|
6
|
+
} from "react-native";
|
|
7
|
+
|
|
8
|
+
type NativeScheme = "xyz" | "tms";
|
|
9
|
+
|
|
10
|
+
export interface NativeProps extends ViewProps {
|
|
11
|
+
id: string;
|
|
12
|
+
url?: string;
|
|
13
|
+
tiles?: string[];
|
|
14
|
+
|
|
15
|
+
tileSize?: CodegenTypes.WithDefault<CodegenTypes.Int32, 512>;
|
|
16
|
+
minzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
|
|
17
|
+
maxzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
|
|
18
|
+
attribution?: string;
|
|
19
|
+
|
|
20
|
+
scheme?: CodegenTypes.WithDefault<NativeScheme, "xyz">;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default codegenNativeComponent<NativeProps>(
|
|
24
|
+
"MLRNRasterSource",
|
|
25
|
+
) as HostComponent<NativeProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../../src","sources":["components/sources/vector-source/NativeVectorSourceModule.ts"],"mappings":";;AAAA,SAGEA,mBAAmB,QACd,cAAc;AAUrB,eAAeA,mBAAmB,CAACC,YAAY,CAAO,wBAAwB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { memo, useImperativeHandle, useRef } from "react";
|
|
4
|
+
import NativeVectorSourceModule from "./NativeVectorSourceModule.js";
|
|
5
|
+
import VectorSourceNativeComponent from "./VectorSourceNativeComponent";
|
|
6
|
+
import { useFrozenId } from "../../../hooks/useFrozenId.js";
|
|
7
|
+
import { cloneReactChildrenWithProps } from "../../../utils/index.js";
|
|
8
|
+
import { findNodeHandle } from "../../../utils/findNodeHandle.js";
|
|
9
|
+
import { getNativeFilter } from "../../../utils/getNativeFilter.js";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
/**
|
|
12
|
+
* VectorSource is a map content source that supplies tiled vector data in
|
|
13
|
+
* Mapbox Vector Tile format to be shown on the map. The location of and
|
|
14
|
+
* metadata about the tiles are defined either by an option dictionary or by an
|
|
15
|
+
* external file that conforms to the TileJSON specification.
|
|
16
|
+
*/
|
|
17
|
+
export const VectorSource = /*#__PURE__*/memo(({
|
|
18
|
+
id,
|
|
19
|
+
ref,
|
|
20
|
+
...props
|
|
21
|
+
}) => {
|
|
22
|
+
const nativeRef = useRef(null);
|
|
23
|
+
const frozenId = useFrozenId(id);
|
|
24
|
+
useImperativeHandle(ref, () => ({
|
|
25
|
+
querySourceFeatures: async ({
|
|
26
|
+
sourceLayer,
|
|
27
|
+
filter
|
|
28
|
+
}) => {
|
|
29
|
+
return NativeVectorSourceModule.querySourceFeatures(findNodeHandle(nativeRef.current), sourceLayer, getNativeFilter(filter));
|
|
30
|
+
}
|
|
31
|
+
}));
|
|
32
|
+
return /*#__PURE__*/_jsx(VectorSourceNativeComponent, {
|
|
33
|
+
ref: nativeRef,
|
|
34
|
+
id: frozenId,
|
|
35
|
+
hasOnPress: !!props.onPress,
|
|
36
|
+
...props,
|
|
37
|
+
children: cloneReactChildrenWithProps(props.children, {
|
|
38
|
+
source: frozenId
|
|
39
|
+
})
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=VectorSource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","useImperativeHandle","useRef","NativeVectorSourceModule","VectorSourceNativeComponent","useFrozenId","cloneReactChildrenWithProps","findNodeHandle","getNativeFilter","jsx","_jsx","VectorSource","id","ref","props","nativeRef","frozenId","querySourceFeatures","sourceLayer","filter","current","hasOnPress","onPress","children","source"],"sourceRoot":"../../../../../src","sources":["components/sources/vector-source/VectorSource.tsx"],"mappings":";;AACA,SAGEA,IAAI,EAGJC,mBAAmB,EACnBC,MAAM,QACD,OAAO;AAGd,OAAOC,wBAAwB,MAAM,+BAA4B;AACjE,OAAOC,2BAA2B,MAAM,+BAA+B;AACvE,SAASC,WAAW,QAAQ,+BAA4B;AAGxD,SAASC,2BAA2B,QAAQ,yBAAgB;AAC5D,SAASC,cAAc,QAAQ,kCAA+B;AAC9D,SAASC,eAAe,QAAQ,mCAAgC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AA2EjE;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,YAAY,gBAAGX,IAAI,CAAC,CAAC;EAAEY,EAAE;EAAEC,GAAG;EAAE,GAAGC;AAAyB,CAAC,KAAK;EAC7E,MAAMC,SAAS,GAAGb,MAAM,CAGtB,IAAI,CAAC;EAEP,MAAMc,QAAQ,GAAGX,WAAW,CAACO,EAAE,CAAC;EAEhCX,mBAAmB,CAACY,GAAG,EAAE,OAAO;IAC9BI,mBAAmB,EAAE,MAAAA,CAAO;MAC1BC,WAAW;MACXC;IAIF,CAAC,KAAiC;MAChC,OAAOhB,wBAAwB,CAACc,mBAAmB,CACjDV,cAAc,CAACQ,SAAS,CAACK,OAAO,CAAC,EACjCF,WAAW,EACXV,eAAe,CAACW,MAAM,CACxB,CAAC;IACH;EACF,CAAC,CAAC,CAAC;EAEH,oBACET,IAAA,CAACN,2BAA2B;IAC1BS,GAAG,EAAEE,SAAU;IACfH,EAAE,EAAEI,QAAS;IACbK,UAAU,EAAE,CAAC,CAACP,KAAK,CAACQ,OAAQ;IAAA,GACxBR,KAAK;IAAAS,QAAA,EAERjB,2BAA2B,CAACQ,KAAK,CAACS,QAAQ,EAAE;MAC3CC,MAAM,EAAER;IACV,CAAC;EAAC,CACyB,CAAC;AAElC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
codegenNativeComponent,
|
|
3
|
+
type CodegenTypes,
|
|
4
|
+
type HostComponent,
|
|
5
|
+
type ViewProps,
|
|
6
|
+
} from "react-native";
|
|
7
|
+
|
|
8
|
+
import type { UnsafeMixed } from "../../../types/codegen/UnsafeMixed";
|
|
9
|
+
|
|
10
|
+
type NativeScheme = "xyz" | "tms";
|
|
11
|
+
|
|
12
|
+
type NativeHitbox = {
|
|
13
|
+
top?: CodegenTypes.WithDefault<CodegenTypes.Int32, 0>;
|
|
14
|
+
right?: CodegenTypes.WithDefault<CodegenTypes.Int32, 0>;
|
|
15
|
+
bottom?: CodegenTypes.WithDefault<CodegenTypes.Int32, 0>;
|
|
16
|
+
left?: CodegenTypes.WithDefault<CodegenTypes.Int32, 0>;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
type NativePressEvent = {
|
|
20
|
+
lngLat: UnsafeMixed<
|
|
21
|
+
[longitude: CodegenTypes.Double, latitude: CodegenTypes.Double]
|
|
22
|
+
>;
|
|
23
|
+
point: UnsafeMixed<[x: CodegenTypes.Double, y: CodegenTypes.Double]>;
|
|
24
|
+
features: UnsafeMixed<GeoJSON.Feature[]>;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export interface NativeProps extends ViewProps {
|
|
28
|
+
id: string;
|
|
29
|
+
url?: string;
|
|
30
|
+
tiles?: string[];
|
|
31
|
+
|
|
32
|
+
minzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
|
|
33
|
+
maxzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
|
|
34
|
+
scheme?: CodegenTypes.WithDefault<NativeScheme, "xyz">;
|
|
35
|
+
attribution?: string;
|
|
36
|
+
|
|
37
|
+
hitbox?: NativeHitbox;
|
|
38
|
+
hasOnPress: boolean;
|
|
39
|
+
|
|
40
|
+
onPress?: CodegenTypes.BubblingEventHandler<NativePressEvent>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export default codegenNativeComponent<NativeProps>(
|
|
44
|
+
"MLRNVectorSource",
|
|
45
|
+
) as HostComponent<NativeProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import UserLocationNativeComponent from "./UserLocationNativeComponent";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export const NativeUserLocation = props => {
|
|
6
|
+
return /*#__PURE__*/_jsx(UserLocationNativeComponent, {
|
|
7
|
+
...props
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=NativeUserLocation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["UserLocationNativeComponent","jsx","_jsx","NativeUserLocation","props"],"sourceRoot":"../../../../src","sources":["components/user-location/NativeUserLocation.tsx"],"mappings":";;AAAA,OAAOA,2BAA2B,MAAM,+BAA+B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AA4BxE,OAAO,MAAMC,kBAAkB,GAAIC,KAA8B,IAAK;EACpE,oBAAOF,IAAA,CAACF,2BAA2B;IAAA,GAAKI;EAAK,CAAG,CAAC;AACnD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { memo, useMemo } from "react";
|
|
4
|
+
import { UserLocationPuck } from "./UserLocationPuck.js";
|
|
5
|
+
import headingIcon from "../../assets/heading.png";
|
|
6
|
+
import { useCurrentPosition } from "../../hooks/useCurrentPosition.js";
|
|
7
|
+
import { LayerAnnotation } from "../annotations/LayerAnnotation.js";
|
|
8
|
+
import { Images } from "../images/Images.js";
|
|
9
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
export const UserLocation = /*#__PURE__*/memo(({
|
|
11
|
+
animated = true,
|
|
12
|
+
accuracy = false,
|
|
13
|
+
heading = false,
|
|
14
|
+
minDisplacement,
|
|
15
|
+
children,
|
|
16
|
+
onPress
|
|
17
|
+
}) => {
|
|
18
|
+
const currentPosition = useCurrentPosition({
|
|
19
|
+
minDisplacement
|
|
20
|
+
});
|
|
21
|
+
const lngLat = useMemo(() => {
|
|
22
|
+
return currentPosition?.coords ? [currentPosition.coords.longitude, currentPosition.coords.latitude] : undefined;
|
|
23
|
+
}, [currentPosition?.coords]);
|
|
24
|
+
if (!lngLat || !currentPosition) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
28
|
+
children: [heading && /*#__PURE__*/_jsx(Images, {
|
|
29
|
+
images: {
|
|
30
|
+
"mlrn-user-location-puck-heading": headingIcon
|
|
31
|
+
}
|
|
32
|
+
}), /*#__PURE__*/_jsx(LayerAnnotation, {
|
|
33
|
+
animated: animated,
|
|
34
|
+
id: "mlrn-user-location",
|
|
35
|
+
testID: "mlrn-user-location",
|
|
36
|
+
onPress: onPress,
|
|
37
|
+
lngLat: lngLat,
|
|
38
|
+
children: children || /*#__PURE__*/_jsx(UserLocationPuck, {
|
|
39
|
+
testID: "mlrn-user-location-puck",
|
|
40
|
+
source: "mlrn-user-location",
|
|
41
|
+
accuracy: accuracy ? currentPosition.coords.accuracy : undefined,
|
|
42
|
+
heading: heading ? currentPosition.coords.heading ?? undefined : undefined
|
|
43
|
+
})
|
|
44
|
+
})]
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=UserLocation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","useMemo","UserLocationPuck","headingIcon","useCurrentPosition","LayerAnnotation","Images","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","UserLocation","animated","accuracy","heading","minDisplacement","children","onPress","currentPosition","lngLat","coords","longitude","latitude","undefined","images","id","testID","source"],"sourceRoot":"../../../../src","sources":["components/user-location/UserLocation.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAkBC,OAAO,QAAQ,OAAO;AAErD,SAASC,gBAAgB,QAAQ,uBAAoB;AACrD,OAAOC,WAAW,MAAM,0BAA0B;AAClD,SAASC,kBAAkB,QAAQ,mCAAgC;AAEnE,SAASC,eAAe,QAAQ,mCAAgC;AAChE,SAASC,MAAM,QAAQ,qBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAoC1C,OAAO,MAAMC,YAAY,gBAAGb,IAAI,CAC9B,CAAC;EACCc,QAAQ,GAAG,IAAI;EACfC,QAAQ,GAAG,KAAK;EAChBC,OAAO,GAAG,KAAK;EACfC,eAAe;EACfC,QAAQ;EACRC;AACiB,CAAC,KAAK;EACvB,MAAMC,eAAe,GAAGhB,kBAAkB,CAAC;IAAEa;EAAgB,CAAC,CAAC;EAE/D,MAAMI,MAA0B,GAAGpB,OAAO,CAAC,MAAM;IAC/C,OAAOmB,eAAe,EAAEE,MAAM,GAC1B,CAACF,eAAe,CAACE,MAAM,CAACC,SAAS,EAAEH,eAAe,CAACE,MAAM,CAACE,QAAQ,CAAC,GACnEC,SAAS;EACf,CAAC,EAAE,CAACL,eAAe,EAAEE,MAAM,CAAC,CAAC;EAE7B,IAAI,CAACD,MAAM,IAAI,CAACD,eAAe,EAAE;IAC/B,OAAO,IAAI;EACb;EAEA,oBACER,KAAA,CAAAF,SAAA;IAAAQ,QAAA,GACGF,OAAO,iBACNR,IAAA,CAACF,MAAM;MACLoB,MAAM,EAAE;QACN,iCAAiC,EAAEvB;MACrC;IAAE,CACH,CACF,eAEDK,IAAA,CAACH,eAAe;MACdS,QAAQ,EAAEA,QAAS;MACnBa,EAAE,EAAC,oBAAoB;MACvBC,MAAM,EAAC,oBAAoB;MAC3BT,OAAO,EAAEA,OAAQ;MACjBE,MAAM,EAAEA,MAAO;MAAAH,QAAA,EAEdA,QAAQ,iBACPV,IAAA,CAACN,gBAAgB;QACf0B,MAAM,EAAC,yBAAyB;QAChCC,MAAM,EAAC,oBAAoB;QAC3Bd,QAAQ,EAAEA,QAAQ,GAAGK,eAAe,CAACE,MAAM,CAACP,QAAQ,GAAGU,SAAU;QACjET,OAAO,EACLA,OAAO,GACFI,eAAe,CAACE,MAAM,CAACN,OAAO,IAAIS,SAAS,GAC5CA;MACL,CACF;IACF,CACc,CAAC;EAAA,CAClB,CAAC;AAEP,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
codegenNativeComponent,
|
|
3
|
+
type CodegenTypes,
|
|
4
|
+
type HostComponent,
|
|
5
|
+
type ViewProps,
|
|
6
|
+
} from "react-native";
|
|
7
|
+
|
|
8
|
+
export interface NativeProps extends ViewProps {
|
|
9
|
+
mode?: CodegenTypes.WithDefault<"default" | "heading" | "course", "default">;
|
|
10
|
+
|
|
11
|
+
androidPreferredFramesPerSecond?: CodegenTypes.WithDefault<
|
|
12
|
+
CodegenTypes.Int32,
|
|
13
|
+
-1
|
|
14
|
+
>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default codegenNativeComponent<NativeProps>(
|
|
18
|
+
"MLRNNativeUserLocation",
|
|
19
|
+
) as HostComponent<NativeProps>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
import { Layer } from "../layer/Layer.js";
|
|
5
|
+
import { UserLocationPuckHeading } from "./UserLocationPuckHeading.js";
|
|
6
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
const blue = "#33B5E5";
|
|
8
|
+
const CIRCLE_LAYERS_PAINT = {
|
|
9
|
+
accuracy: {
|
|
10
|
+
"circle-color": blue,
|
|
11
|
+
"circle-opacity": 0.2,
|
|
12
|
+
"circle-pitch-alignment": "map"
|
|
13
|
+
},
|
|
14
|
+
white: {
|
|
15
|
+
"circle-radius": 9,
|
|
16
|
+
"circle-color": "#fff",
|
|
17
|
+
"circle-pitch-alignment": "map"
|
|
18
|
+
},
|
|
19
|
+
blue: {
|
|
20
|
+
"circle-radius": 6,
|
|
21
|
+
"circle-color": blue,
|
|
22
|
+
"circle-pitch-alignment": "map"
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export const UserLocationPuck = /*#__PURE__*/memo(({
|
|
26
|
+
source,
|
|
27
|
+
accuracy,
|
|
28
|
+
heading
|
|
29
|
+
}) => {
|
|
30
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
31
|
+
children: [typeof accuracy === "number" && /*#__PURE__*/_jsx(Layer, {
|
|
32
|
+
type: "circle",
|
|
33
|
+
id: "mlrn-user-location-puck-accuracy",
|
|
34
|
+
testID: "mlrn-user-location-puck-accuracy",
|
|
35
|
+
source: source,
|
|
36
|
+
paint: {
|
|
37
|
+
...CIRCLE_LAYERS_PAINT.accuracy,
|
|
38
|
+
"circle-radius": ["interpolate", ["exponential", 2], ["zoom"], 0, CIRCLE_LAYERS_PAINT.white["circle-radius"], 22, CIRCLE_LAYERS_PAINT.white["circle-radius"] + accuracy * 100]
|
|
39
|
+
}
|
|
40
|
+
}), /*#__PURE__*/_jsx(Layer, {
|
|
41
|
+
type: "circle",
|
|
42
|
+
id: "mlrn-user-location-puck-white",
|
|
43
|
+
testID: "mlrn-user-location-puck-white",
|
|
44
|
+
source: source,
|
|
45
|
+
paint: CIRCLE_LAYERS_PAINT.white
|
|
46
|
+
}), /*#__PURE__*/_jsx(Layer, {
|
|
47
|
+
type: "circle",
|
|
48
|
+
id: "mlrn-user-location-puck-blue",
|
|
49
|
+
testID: "mlrn-user-location-puck-blue",
|
|
50
|
+
source: source,
|
|
51
|
+
paint: CIRCLE_LAYERS_PAINT.blue
|
|
52
|
+
}), typeof heading === "number" && /*#__PURE__*/_jsx(UserLocationPuckHeading, {
|
|
53
|
+
source: source,
|
|
54
|
+
beforeId: "mlrn-user-location-puck-white",
|
|
55
|
+
heading: heading
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=UserLocationPuck.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","Layer","UserLocationPuckHeading","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","blue","CIRCLE_LAYERS_PAINT","accuracy","white","UserLocationPuck","source","heading","children","type","id","testID","paint","beforeId"],"sourceRoot":"../../../../src","sources":["components/user-location/UserLocationPuck.tsx"],"mappings":";;AACA,SAASA,IAAI,QAAQ,OAAO;AAG5B,SAASC,KAAK,QAAQ,mBAAgB;AACtC,SAASC,uBAAuB,QAAQ,8BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAEpE,MAAMC,IAAI,GAAG,SAAS;AAEtB,MAAMC,mBAAmB,GAAG;EAC1BC,QAAQ,EAAE;IACR,cAAc,EAAEF,IAAI;IACpB,gBAAgB,EAAE,GAAG;IACrB,wBAAwB,EAAE;EAC5B,CAAC;EACDG,KAAK,EAAE;IACL,eAAe,EAAE,CAAC;IAClB,cAAc,EAAE,MAAM;IACtB,wBAAwB,EAAE;EAC5B,CAAC;EACDH,IAAI,EAAE;IACJ,eAAe,EAAE,CAAC;IAClB,cAAc,EAAEA,IAAI;IACpB,wBAAwB,EAAE;EAC5B;AACF,CAAsE;AAStE,OAAO,MAAMI,gBAAgB,gBAAGb,IAAI,CAClC,CAAC;EAAEc,MAAM;EAAEH,QAAQ;EAAEI;AAA+B,CAAC,KAAK;EACxD,oBACEP,KAAA,CAAAF,SAAA;IAAAU,QAAA,GACG,OAAOL,QAAQ,KAAK,QAAQ,iBAC3BP,IAAA,CAACH,KAAK;MACJgB,IAAI,EAAC,QAAQ;MACbC,EAAE,EAAC,kCAAkC;MACrCC,MAAM,EAAC,kCAAkC;MACzCL,MAAM,EAAEA,MAAO;MACfM,KAAK,EAAE;QACL,GAAGV,mBAAmB,CAACC,QAAQ;QAC/B,eAAe,EAAE,CACf,aAAa,EACb,CAAC,aAAa,EAAE,CAAC,CAAC,EAClB,CAAC,MAAM,CAAC,EACR,CAAC,EACDD,mBAAmB,CAACE,KAAK,CAAC,eAAe,CAAC,EAC1C,EAAE,EACFF,mBAAmB,CAACE,KAAK,CAAC,eAAe,CAAC,GAAGD,QAAQ,GAAG,GAAG;MAE/D;IAAE,CACH,CACF,eACDP,IAAA,CAACH,KAAK;MACJgB,IAAI,EAAC,QAAQ;MACbC,EAAE,EAAC,+BAA+B;MAClCC,MAAM,EAAC,+BAA+B;MACtCL,MAAM,EAAEA,MAAO;MACfM,KAAK,EAAEV,mBAAmB,CAACE;IAAM,CAClC,CAAC,eACFR,IAAA,CAACH,KAAK;MACJgB,IAAI,EAAC,QAAQ;MACbC,EAAE,EAAC,8BAA8B;MACjCC,MAAM,EAAC,8BAA8B;MACrCL,MAAM,EAAEA,MAAO;MACfM,KAAK,EAAEV,mBAAmB,CAACD;IAAK,CACjC,CAAC,EACD,OAAOM,OAAO,KAAK,QAAQ,iBAC1BX,IAAA,CAACF,uBAAuB;MACtBY,MAAM,EAAEA,MAAO;MACfO,QAAQ,EAAC,+BAA+B;MACxCN,OAAO,EAAEA;IAAQ,CAClB,CACF;EAAA,CACD,CAAC;AAEP,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
import { Layer } from "../layer/Layer.js";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const SYMBOL_LAYER_LAYOUT = {
|
|
7
|
+
"icon-image": "mlrn-user-location-puck-heading",
|
|
8
|
+
"icon-allow-overlap": true,
|
|
9
|
+
"icon-pitch-alignment": "map",
|
|
10
|
+
"icon-rotation-alignment": "map"
|
|
11
|
+
};
|
|
12
|
+
export const UserLocationPuckHeading = /*#__PURE__*/memo(({
|
|
13
|
+
source,
|
|
14
|
+
beforeId,
|
|
15
|
+
heading
|
|
16
|
+
}) => /*#__PURE__*/_jsx(Layer, {
|
|
17
|
+
type: "symbol",
|
|
18
|
+
id: "mlrn-user-location-puck-heading",
|
|
19
|
+
testID: "mlrn-user-location-puck-heading",
|
|
20
|
+
source: source,
|
|
21
|
+
beforeId: beforeId,
|
|
22
|
+
layout: {
|
|
23
|
+
...SYMBOL_LAYER_LAYOUT,
|
|
24
|
+
"icon-rotate": heading
|
|
25
|
+
}
|
|
26
|
+
}));
|
|
27
|
+
//# sourceMappingURL=UserLocationPuckHeading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","Layer","jsx","_jsx","SYMBOL_LAYER_LAYOUT","UserLocationPuckHeading","source","beforeId","heading","type","id","testID","layout"],"sourceRoot":"../../../../src","sources":["components/user-location/UserLocationPuckHeading.tsx"],"mappings":";;AACA,SAASA,IAAI,QAAQ,OAAO;AAG5B,SAASC,KAAK,QAAQ,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEvC,MAAMC,mBAAuD,GAAG;EAC9D,YAAY,EAAE,iCAAiC;EAC/C,oBAAoB,EAAE,IAAI;EAC1B,sBAAsB,EAAE,KAAK;EAC7B,yBAAyB,EAAE;AAC7B,CAAC;AAQD,OAAO,MAAMC,uBAAuB,gBAAGL,IAAI,CACzC,CAAC;EAAEM,MAAM;EAAEC,QAAQ;EAAEC;AAAsC,CAAC,kBAC1DL,IAAA,CAACF,KAAK;EACJQ,IAAI,EAAC,QAAQ;EACbC,EAAE,EAAC,iCAAiC;EACpCC,MAAM,EAAC,iCAAiC;EACxCL,MAAM,EAAEA,MAAO;EACfC,QAAQ,EAAEA,QAAS;EACnBK,MAAM,EAAE;IACN,GAAGR,mBAAmB;IACtB,aAAa,EAAEI;EACjB;AAAE,CACH,CAEL,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCallback, useEffect, useState } from "react";
|
|
4
|
+
import { LocationManager } from "../modules/location/LocationManager.js";
|
|
5
|
+
export function useCurrentPosition({
|
|
6
|
+
enabled = true,
|
|
7
|
+
minDisplacement
|
|
8
|
+
} = {}) {
|
|
9
|
+
const [currentPosition, setCurrentPosition] = useState();
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
if (minDisplacement !== undefined) {
|
|
12
|
+
LocationManager.setMinDisplacement(minDisplacement);
|
|
13
|
+
}
|
|
14
|
+
}, [minDisplacement]);
|
|
15
|
+
const handleUpdate = useCallback(position => {
|
|
16
|
+
setCurrentPosition(position);
|
|
17
|
+
}, []);
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
if (enabled) {
|
|
20
|
+
LocationManager.addListener(handleUpdate);
|
|
21
|
+
}
|
|
22
|
+
return () => {
|
|
23
|
+
if (enabled) {
|
|
24
|
+
LocationManager.removeListener(handleUpdate);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}, [enabled, handleUpdate]);
|
|
28
|
+
return currentPosition;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=useCurrentPosition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCallback","useEffect","useState","LocationManager","useCurrentPosition","enabled","minDisplacement","currentPosition","setCurrentPosition","undefined","setMinDisplacement","handleUpdate","position","addListener","removeListener"],"sourceRoot":"../../../src","sources":["hooks/useCurrentPosition.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAExD,SAEEC,eAAe,QACV,wCAAqC;AAkB5C,OAAO,SAASC,kBAAkBA,CAAC;EACjCC,OAAO,GAAG,IAAI;EACdC;AACyB,CAAC,GAAG,CAAC,CAAC,EAAE;EACjC,MAAM,CAACC,eAAe,EAAEC,kBAAkB,CAAC,GAAGN,QAAQ,CAAsB,CAAC;EAE7ED,SAAS,CAAC,MAAM;IACd,IAAIK,eAAe,KAAKG,SAAS,EAAE;MACjCN,eAAe,CAACO,kBAAkB,CAACJ,eAAe,CAAC;IACrD;EACF,CAAC,EAAE,CAACA,eAAe,CAAC,CAAC;EAErB,MAAMK,YAAY,GAAGX,WAAW,CAAEY,QAA6B,IAAK;IAClEJ,kBAAkB,CAACI,QAAQ,CAAC;EAC9B,CAAC,EAAE,EAAE,CAAC;EAENX,SAAS,CAAC,MAAM;IACd,IAAII,OAAO,EAAE;MACXF,eAAe,CAACU,WAAW,CAACF,YAAY,CAAC;IAC3C;IAEA,OAAO,MAAM;MACX,IAAIN,OAAO,EAAE;QACXF,eAAe,CAACW,cAAc,CAACH,YAAY,CAAC;MAC9C;IACF,CAAC;EACH,CAAC,EAAE,CAACN,OAAO,EAAEM,YAAY,CAAC,CAAC;EAE3B,OAAOJ,eAAe;AACxB","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
let generatedIdCounter = 0;
|
|
5
|
+
export function useFrozenId(id) {
|
|
6
|
+
const [frozenId] = useState(id ? id : `mlrn-${generatedIdCounter++}`);
|
|
7
|
+
if (id && id !== frozenId) {
|
|
8
|
+
throw new Error("`id` cannot be changed");
|
|
9
|
+
}
|
|
10
|
+
return frozenId;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=useFrozenId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useState","generatedIdCounter","useFrozenId","id","frozenId","Error"],"sourceRoot":"../../../src","sources":["hooks/useFrozenId.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,OAAO;AAEhC,IAAIC,kBAAkB,GAAG,CAAC;AAE1B,OAAO,SAASC,WAAWA,CAACC,EAAW,EAAE;EACvC,MAAM,CAACC,QAAQ,CAAC,GAAGJ,QAAQ,CAACG,EAAE,GAAGA,EAAE,GAAG,QAAQF,kBAAkB,EAAE,EAAE,CAAC;EAErE,IAAIE,EAAE,IAAIA,EAAE,KAAKC,QAAQ,EAAE;IACzB,MAAM,IAAIC,KAAK,CAAC,wBAAwB,CAAC;EAC3C;EAEA,OAAOD,QAAQ;AACjB","ignoreList":[]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useRef } from "react";
|
|
4
|
+
import { runNativeCommand, isAndroid } from "../utils/index.js";
|
|
5
|
+
let callbackIncrement = 0;
|
|
6
|
+
export const useNativeBridge = _nativeModuleName => {
|
|
7
|
+
const _callbackMap = useRef(new Map());
|
|
8
|
+
const _preRefMapMethodQueue = useRef([]);
|
|
9
|
+
const _addAddAndroidCallback = (id, resolve, reject) => {
|
|
10
|
+
_callbackMap.current.set(id, {
|
|
11
|
+
resolve,
|
|
12
|
+
reject
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
const _removeAndroidCallback = id => {
|
|
16
|
+
_callbackMap.current.delete(id);
|
|
17
|
+
};
|
|
18
|
+
const _onAndroidCallback = e => {
|
|
19
|
+
const callbackID = e.nativeEvent.type;
|
|
20
|
+
const callback = _callbackMap.current.get(callbackID);
|
|
21
|
+
if (!callback) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
_callbackMap.current.delete(callbackID);
|
|
25
|
+
const {
|
|
26
|
+
payload
|
|
27
|
+
} = e.nativeEvent;
|
|
28
|
+
if (payload.error) {
|
|
29
|
+
callback.reject.call(null, new Error(payload.error));
|
|
30
|
+
} else {
|
|
31
|
+
callback.resolve.call(null, payload);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const _runPendingNativeCommands = async nativeRef => {
|
|
35
|
+
if (nativeRef) {
|
|
36
|
+
while (_preRefMapMethodQueue.current.length > 0) {
|
|
37
|
+
const item = _preRefMapMethodQueue.current.pop();
|
|
38
|
+
if (item && item.method && item.resolver) {
|
|
39
|
+
const res = await _runNativeCommand(item.method.name, nativeRef, item.method.args);
|
|
40
|
+
item.resolver(res);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const _runNativeCommand = (methodName, nativeRef, args = []) => {
|
|
46
|
+
if (!nativeRef) {
|
|
47
|
+
return new Promise(resolve => {
|
|
48
|
+
_preRefMapMethodQueue.current.push({
|
|
49
|
+
method: {
|
|
50
|
+
name: methodName,
|
|
51
|
+
args
|
|
52
|
+
},
|
|
53
|
+
resolver: resolve
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
if (isAndroid()) {
|
|
58
|
+
return new Promise((resolve, reject) => {
|
|
59
|
+
callbackIncrement += 1;
|
|
60
|
+
const callbackID = `${methodName}_${callbackIncrement}`;
|
|
61
|
+
_addAddAndroidCallback(callbackID, resolve, reject);
|
|
62
|
+
args.unshift(callbackID);
|
|
63
|
+
runNativeCommand(_nativeModuleName, methodName, nativeRef, args);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
return runNativeCommand(_nativeModuleName, methodName, nativeRef, args);
|
|
67
|
+
};
|
|
68
|
+
return {
|
|
69
|
+
_nativeModuleName,
|
|
70
|
+
_onAndroidCallback,
|
|
71
|
+
_callbackMap,
|
|
72
|
+
_preRefMapMethodQueue,
|
|
73
|
+
_addAddAndroidCallback,
|
|
74
|
+
_removeAndroidCallback,
|
|
75
|
+
_runPendingNativeCommands,
|
|
76
|
+
_runNativeCommand
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=useNativeBridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useRef","runNativeCommand","isAndroid","callbackIncrement","useNativeBridge","_nativeModuleName","_callbackMap","Map","_preRefMapMethodQueue","_addAddAndroidCallback","id","resolve","reject","current","set","_removeAndroidCallback","delete","_onAndroidCallback","e","callbackID","nativeEvent","type","callback","get","payload","error","call","Error","_runPendingNativeCommands","nativeRef","length","item","pop","method","resolver","res","_runNativeCommand","name","args","methodName","Promise","push","unshift"],"sourceRoot":"../../../src","sources":["hooks/useNativeBridge.ts"],"mappings":";;AAAA,SAIEA,MAAM,QACD,OAAO;AAEd,SAASC,gBAAgB,EAAEC,SAAS,QAAwB,mBAAU;AAOtE,IAAIC,iBAAiB,GAAG,CAAC;AAuBzB,OAAO,MAAMC,eAAwD,GACnEC,iBAAyB,IACtB;EACH,MAAMC,YAAY,GAAGN,MAAM,CAAmB,IAAIO,GAAG,CAAC,CAAC,CAAC;EACxD,MAAMC,qBAAqB,GAAGR,MAAM,CAAQ,EAAE,CAAC;EAE/C,MAAMS,sBAAsB,GAAGA,CAC7BC,EAAU,EACVC,OAAoC,EACpCC,MAA8B,KACrB;IACTN,YAAY,CAACO,OAAO,CAACC,GAAG,CAACJ,EAAE,EAAE;MAAEC,OAAO;MAAEC;IAAO,CAAC,CAAC;EACnD,CAAC;EAED,MAAMG,sBAAsB,GAAIL,EAAU,IAAW;IACnDJ,YAAY,CAACO,OAAO,CAACG,MAAM,CAACN,EAAE,CAAC;EACjC,CAAC;EAED,MAAMO,kBAAkB,GAAIC,CAAqC,IAAW;IAC1E,MAAMC,UAAU,GAAGD,CAAC,CAACE,WAAW,CAACC,IAAI;IACrC,MAAMC,QAAQ,GAAGhB,YAAY,CAACO,OAAO,CAACU,GAAG,CAACJ,UAAU,CAAC;IAErD,IAAI,CAACG,QAAQ,EAAE;MACb;IACF;IAEAhB,YAAY,CAACO,OAAO,CAACG,MAAM,CAACG,UAAU,CAAC;IACvC,MAAM;MAAEK;IAAQ,CAAC,GAAGN,CAAC,CAACE,WAAW;IACjC,IAAII,OAAO,CAACC,KAAK,EAAE;MACjBH,QAAQ,CAACV,MAAM,CAACc,IAAI,CAAC,IAAI,EAAE,IAAIC,KAAK,CAACH,OAAO,CAACC,KAAK,CAAC,CAAC;IACtD,CAAC,MAAM;MACLH,QAAQ,CAACX,OAAO,CAACe,IAAI,CAAC,IAAI,EAAEF,OAAO,CAAC;IACtC;EACF,CAAC;EAED,MAAMI,yBAAyB,GAAG,MAChCC,SAAqC,IACnB;IAClB,IAAIA,SAAS,EAAE;MACb,OAAOrB,qBAAqB,CAACK,OAAO,CAACiB,MAAM,GAAG,CAAC,EAAE;QAC/C,MAAMC,IAAI,GAAGvB,qBAAqB,CAACK,OAAO,CAACmB,GAAG,CAAC,CAAC;QAEhD,IAAID,IAAI,IAAIA,IAAI,CAACE,MAAM,IAAIF,IAAI,CAACG,QAAQ,EAAE;UACxC,MAAMC,GAAG,GAAG,MAAMC,iBAAiB,CACjCL,IAAI,CAACE,MAAM,CAACI,IAAI,EAChBR,SAAS,EACTE,IAAI,CAACE,MAAM,CAACK,IACd,CAAC;UACDP,IAAI,CAACG,QAAQ,CAACC,GAAG,CAAC;QACpB;MACF;IACF;EACF,CAAC;EAED,MAAMC,iBAAiB,GAAGA,CACxBG,UAAkB,EAClBV,SAAqC,EACrCS,IAAiB,GAAG,EAAE,KACE;IACxB,IAAI,CAACT,SAAS,EAAE;MACd,OAAO,IAAIW,OAAO,CAAE7B,OAAO,IAAK;QAC9BH,qBAAqB,CAACK,OAAO,CAAC4B,IAAI,CAAC;UACjCR,MAAM,EAAE;YAAEI,IAAI,EAAEE,UAAU;YAAED;UAAK,CAAC;UAClCJ,QAAQ,EAAEvB;QACZ,CAAC,CAAC;MACJ,CAAC,CAAC;IACJ;IAEA,IAAIT,SAAS,CAAC,CAAC,EAAE;MACf,OAAO,IAAIsC,OAAO,CAAC,CAAC7B,OAAO,EAAEC,MAAM,KAAK;QACtCT,iBAAiB,IAAI,CAAC;QACtB,MAAMgB,UAAU,GAAG,GAAGoB,UAAU,IAAIpC,iBAAiB,EAAE;QACvDM,sBAAsB,CAACU,UAAU,EAAER,OAAO,EAAEC,MAAM,CAAC;QACnD0B,IAAI,CAACI,OAAO,CAACvB,UAAU,CAAC;QACxBlB,gBAAgB,CAACI,iBAAiB,EAAEkC,UAAU,EAAEV,SAAS,EAAES,IAAI,CAAC;MAClE,CAAC,CAAC;IACJ;IACA,OAAOrC,gBAAgB,CAACI,iBAAiB,EAAEkC,UAAU,EAAEV,SAAS,EAAES,IAAI,CAAC;EACzE,CAAC;EAED,OAAO;IACLjC,iBAAiB;IACjBY,kBAAkB;IAClBX,YAAY;IACZE,qBAAqB;IACrBC,sBAAsB;IACtBM,sBAAsB;IACtBa,yBAAyB;IACzBQ;EACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export { Camera } from "./components/camera/Camera.js";
|
|
4
|
+
export { Map } from "./components/map/Map.js";
|
|
5
|
+
export { ViewAnnotation } from "./components/annotations/view-annotation/ViewAnnotation.js";
|
|
6
|
+
export { LayerAnnotation } from "./components/annotations/LayerAnnotation.js";
|
|
7
|
+
export { Callout } from "./components/annotations/callout/Callout.js";
|
|
8
|
+
export { NativeUserLocation } from "./components/user-location/NativeUserLocation.js";
|
|
9
|
+
export { UserLocation } from "./components/user-location/UserLocation.js";
|
|
10
|
+
export { useCurrentPosition } from "./hooks/useCurrentPosition.js";
|
|
11
|
+
export { ImageSource } from "./components/sources/image-source/ImageSource.js";
|
|
12
|
+
export { GeoJSONSource } from "./components/sources/geojson-source/GeoJSONSource.js";
|
|
13
|
+
export { RasterDEMSource } from "./components/sources/raster-dem-source/RasterDEMSource.js";
|
|
14
|
+
export { RasterSource } from "./components/sources/raster-source/RasterSource.js";
|
|
15
|
+
export { VectorSource } from "./components/sources/vector-source/VectorSource.js";
|
|
16
|
+
export { Layer } from "./components/layer/Layer.js";
|
|
17
|
+
export { Images } from "./components/images/Images.js";
|
|
18
|
+
export { Marker } from "./components/annotations/marker/Marker.js";
|
|
19
|
+
export { LocationManager } from "./modules/location/LocationManager.js";
|
|
20
|
+
export { LogManager } from "./modules/log/LogManager.js";
|
|
21
|
+
export { NetworkManager } from "./modules/network/NetworkManager.js";
|
|
22
|
+
export { OfflineManager } from "./modules/offline/OfflineManager.js";
|
|
23
|
+
export { OfflinePack } from "./modules/offline/OfflinePack.js";
|
|
24
|
+
export { StaticMapImageManager } from "./modules/static-map/StaticMapManager.js";
|
|
25
|
+
export { TransformRequestManager } from "./modules/transform-request/TransformRequestManager.js";
|
|
26
|
+
export { Animated } from "./utils/animated/Animated.js";
|
|
27
|
+
//# sourceMappingURL=index.js.map
|