@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,153 @@
|
|
|
1
|
+
import { Animated } from "react-native";
|
|
2
|
+
|
|
3
|
+
let uniqueID = 0;
|
|
4
|
+
|
|
5
|
+
type AnimatedPointValueIn =
|
|
6
|
+
| GeoJSON.Point
|
|
7
|
+
| { type: "Point"; coordinates: Animated.AnimatedValue[] };
|
|
8
|
+
|
|
9
|
+
const AnimatedWithChildren = Object.getPrototypeOf(
|
|
10
|
+
Animated.ValueXY,
|
|
11
|
+
) as typeof Animated.AnimatedWithChildren;
|
|
12
|
+
|
|
13
|
+
export class AnimatedPoint extends AnimatedWithChildren {
|
|
14
|
+
longitude: Animated.Value;
|
|
15
|
+
latitude: Animated.Value;
|
|
16
|
+
|
|
17
|
+
_lngLatListeners: Record<string, { longitude: string; latitude: string }>;
|
|
18
|
+
|
|
19
|
+
constructor(valueIn?: AnimatedPointValueIn) {
|
|
20
|
+
super();
|
|
21
|
+
|
|
22
|
+
const longitudeIn = valueIn?.coordinates[0] ?? 0;
|
|
23
|
+
const latitudeIn = valueIn?.coordinates[1] ?? 0;
|
|
24
|
+
|
|
25
|
+
if (longitudeIn instanceof Animated.Value) {
|
|
26
|
+
this.longitude = longitudeIn;
|
|
27
|
+
} else {
|
|
28
|
+
this.longitude = new Animated.Value(longitudeIn);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (latitudeIn instanceof Animated.Value) {
|
|
32
|
+
this.latitude = latitudeIn;
|
|
33
|
+
} else {
|
|
34
|
+
this.latitude = new Animated.Value(latitudeIn);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
this._lngLatListeners = {};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
setValue(value: GeoJSON.Point): void {
|
|
41
|
+
this.longitude.setValue(value.coordinates[0] ?? 0);
|
|
42
|
+
this.latitude.setValue(value.coordinates[1] ?? 0);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
setOffset(offset: GeoJSON.Point): void {
|
|
46
|
+
this.longitude.setOffset(offset.coordinates[0] ?? 0);
|
|
47
|
+
this.latitude.setOffset(offset.coordinates[1] ?? 0);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
flattenOffset(): void {
|
|
51
|
+
this.longitude.flattenOffset();
|
|
52
|
+
this.latitude.flattenOffset();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
stopAnimation(callback?: (value: GeoJSON.Point) => void): void {
|
|
56
|
+
this.longitude.stopAnimation();
|
|
57
|
+
this.latitude.stopAnimation();
|
|
58
|
+
|
|
59
|
+
if (typeof callback === "function") {
|
|
60
|
+
callback(this.__getValue());
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
addListener(callback?: (value: GeoJSON.Point) => void): string {
|
|
65
|
+
uniqueID += 1;
|
|
66
|
+
const id = `${uniqueID}-${Date.now()}`;
|
|
67
|
+
|
|
68
|
+
const completeCallback = (): void => {
|
|
69
|
+
if (typeof callback === "function") {
|
|
70
|
+
callback(this.__getValue());
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
this._lngLatListeners[id] = {
|
|
75
|
+
longitude: this.longitude.addListener(completeCallback),
|
|
76
|
+
latitude: this.latitude.addListener(completeCallback),
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
return id;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
removeListener(id: string): void {
|
|
83
|
+
const listener = this._lngLatListeners[id];
|
|
84
|
+
|
|
85
|
+
if (listener) {
|
|
86
|
+
this.longitude.removeListener(listener.longitude);
|
|
87
|
+
this.latitude.removeListener(listener.latitude);
|
|
88
|
+
delete this._lngLatListeners[id];
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
spring({
|
|
93
|
+
toValue,
|
|
94
|
+
...config
|
|
95
|
+
}: Omit<Animated.SpringAnimationConfig, "useNativeDriver" | "toValue"> & {
|
|
96
|
+
toValue: GeoJSON.Point;
|
|
97
|
+
}): Animated.CompositeAnimation {
|
|
98
|
+
return Animated.parallel([
|
|
99
|
+
Animated.spring(this.longitude, {
|
|
100
|
+
...config,
|
|
101
|
+
toValue: toValue.coordinates[0] ?? 0,
|
|
102
|
+
useNativeDriver: false,
|
|
103
|
+
}),
|
|
104
|
+
Animated.spring(this.latitude, {
|
|
105
|
+
...config,
|
|
106
|
+
toValue: toValue.coordinates[1] ?? 0,
|
|
107
|
+
useNativeDriver: false,
|
|
108
|
+
}),
|
|
109
|
+
]);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
timing({
|
|
113
|
+
toValue,
|
|
114
|
+
...config
|
|
115
|
+
}: Omit<Animated.TimingAnimationConfig, "useNativeDriver" | "toValue"> & {
|
|
116
|
+
toValue: GeoJSON.Point;
|
|
117
|
+
}): Animated.CompositeAnimation {
|
|
118
|
+
return Animated.parallel([
|
|
119
|
+
Animated.timing(this.longitude, {
|
|
120
|
+
...config,
|
|
121
|
+
toValue: toValue.coordinates[0] ?? 0,
|
|
122
|
+
useNativeDriver: false,
|
|
123
|
+
}),
|
|
124
|
+
Animated.timing(this.latitude, {
|
|
125
|
+
...config,
|
|
126
|
+
toValue: toValue.coordinates[1] ?? 0,
|
|
127
|
+
useNativeDriver: false,
|
|
128
|
+
}),
|
|
129
|
+
]);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
__getValue(): GeoJSON.Point {
|
|
133
|
+
return {
|
|
134
|
+
type: "Point",
|
|
135
|
+
coordinates: [
|
|
136
|
+
(this.longitude as any).__getValue(),
|
|
137
|
+
(this.latitude as any).__getValue(),
|
|
138
|
+
],
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
__attach(): void {
|
|
143
|
+
(this.longitude as any).__addChild(this);
|
|
144
|
+
(this.latitude as any).__addChild(this);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
__detach(): void {
|
|
148
|
+
(this.longitude as any).__removeChild(this);
|
|
149
|
+
(this.latitude as any).__removeChild(this);
|
|
150
|
+
// @ts-ignore
|
|
151
|
+
super.__detach();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { distance } from "@turf/distance";
|
|
2
|
+
import {
|
|
3
|
+
convertLength,
|
|
4
|
+
type Coord,
|
|
5
|
+
lineString,
|
|
6
|
+
point,
|
|
7
|
+
type Units,
|
|
8
|
+
} from "@turf/helpers";
|
|
9
|
+
import { length } from "@turf/length";
|
|
10
|
+
import { nearestPointOnLine } from "@turf/nearest-point-on-line";
|
|
11
|
+
|
|
12
|
+
import {
|
|
13
|
+
AbstractAnimatedCoordinates,
|
|
14
|
+
type AnimatedCoordinates,
|
|
15
|
+
} from "./AbstractAnimatedCoordinates";
|
|
16
|
+
|
|
17
|
+
interface AnimatedRouteToValue {
|
|
18
|
+
end: /**
|
|
19
|
+
* Animate to this point on the coordinates array
|
|
20
|
+
*/
|
|
21
|
+
| { point: Coord | AnimatedCoordinates }
|
|
22
|
+
/**
|
|
23
|
+
* Animate to this length of the coordinates array
|
|
24
|
+
*/
|
|
25
|
+
| {
|
|
26
|
+
along: number;
|
|
27
|
+
units?: Units;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface AnimatedRouteState {
|
|
32
|
+
actRoute?: AnimatedCoordinates[];
|
|
33
|
+
fullRoute: AnimatedCoordinates[];
|
|
34
|
+
end: {
|
|
35
|
+
from: number;
|
|
36
|
+
current?: number;
|
|
37
|
+
to: number;
|
|
38
|
+
} & ({ point?: Coord | AnimatedCoordinates } | { along?: number });
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export class AnimatedRouteCoordinatesArray extends AbstractAnimatedCoordinates<
|
|
42
|
+
AnimatedRouteState,
|
|
43
|
+
AnimatedRouteToValue
|
|
44
|
+
> {
|
|
45
|
+
/**
|
|
46
|
+
* Calculate initial state
|
|
47
|
+
*
|
|
48
|
+
* @param coordinatesArray -
|
|
49
|
+
* @returns {AnimatedRouteState}
|
|
50
|
+
*/
|
|
51
|
+
protected onInitialState(
|
|
52
|
+
coordinatesArray: AnimatedCoordinates[],
|
|
53
|
+
): AnimatedRouteState {
|
|
54
|
+
return {
|
|
55
|
+
fullRoute: coordinatesArray.map(
|
|
56
|
+
(coordinates): AnimatedCoordinates => [coordinates[0], coordinates[1]],
|
|
57
|
+
),
|
|
58
|
+
end: { from: 0, to: 0 },
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Calculate value from state
|
|
64
|
+
*
|
|
65
|
+
* @param state - Previous state
|
|
66
|
+
* @returns {AnimatedCoordinates[]}
|
|
67
|
+
*/
|
|
68
|
+
protected onGetValue(state: AnimatedRouteState): AnimatedCoordinates[] {
|
|
69
|
+
return state.actRoute || state.fullRoute;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Calculates state based on startingState and progress, returns a new state
|
|
74
|
+
*
|
|
75
|
+
* @param state - Previous state
|
|
76
|
+
* @param progress - Value between 0 and 1
|
|
77
|
+
* @returns {AnimatedRouteState}
|
|
78
|
+
*/
|
|
79
|
+
protected onCalculate(
|
|
80
|
+
state: AnimatedRouteState,
|
|
81
|
+
progress: number,
|
|
82
|
+
): AnimatedRouteState {
|
|
83
|
+
const { fullRoute, end } = state;
|
|
84
|
+
const currentEnd = end.from * (1.0 - progress) + progress * end.to;
|
|
85
|
+
|
|
86
|
+
let prevSum = 0;
|
|
87
|
+
let actSum = 0;
|
|
88
|
+
let i = fullRoute.length - 1;
|
|
89
|
+
while (actSum < currentEnd && i > 0) {
|
|
90
|
+
prevSum = actSum;
|
|
91
|
+
const start = fullRoute[i];
|
|
92
|
+
const end = fullRoute[i - 1];
|
|
93
|
+
actSum +=
|
|
94
|
+
start && end ? distance(point(start), point(end), this.distconf) : 0;
|
|
95
|
+
i -= 1;
|
|
96
|
+
}
|
|
97
|
+
if (actSum <= currentEnd) {
|
|
98
|
+
const actRoute = [...fullRoute.slice(0, i + 1)];
|
|
99
|
+
return { fullRoute, end: { ...end, current: currentEnd }, actRoute };
|
|
100
|
+
}
|
|
101
|
+
const r = (currentEnd - prevSum) / (actSum - prevSum);
|
|
102
|
+
const or = 1.0 - r;
|
|
103
|
+
|
|
104
|
+
const actRoute = [
|
|
105
|
+
...fullRoute.slice(0, i + 1),
|
|
106
|
+
[
|
|
107
|
+
(fullRoute[i]?.[0] ?? 0) * r + (fullRoute[i + 1]?.[0] ?? 0) * or,
|
|
108
|
+
(fullRoute[i]?.[1] ?? 0) * r + (fullRoute[i + 1]?.[1] ?? 0) * or,
|
|
109
|
+
] as AnimatedCoordinates,
|
|
110
|
+
];
|
|
111
|
+
return { fullRoute, end: { ...end, current: currentEnd }, actRoute };
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Subclasses can override to start a new animation
|
|
116
|
+
*
|
|
117
|
+
* @param state -
|
|
118
|
+
* @param toValue - to value from animate
|
|
119
|
+
* @returns {object} The state
|
|
120
|
+
*/
|
|
121
|
+
protected onStart(
|
|
122
|
+
state: AnimatedRouteState,
|
|
123
|
+
toValue: AnimatedRouteToValue,
|
|
124
|
+
): AnimatedRouteState {
|
|
125
|
+
const { fullRoute, end } = state;
|
|
126
|
+
const fullRouteLineString = lineString(fullRoute);
|
|
127
|
+
|
|
128
|
+
let to: number | undefined = undefined;
|
|
129
|
+
|
|
130
|
+
if ("along" in toValue.end) {
|
|
131
|
+
to =
|
|
132
|
+
length(fullRouteLineString) -
|
|
133
|
+
convertLength(toValue.end.along, toValue.end.units);
|
|
134
|
+
} else {
|
|
135
|
+
const nearest = nearestPointOnLine(
|
|
136
|
+
fullRouteLineString,
|
|
137
|
+
toValue.end.point,
|
|
138
|
+
);
|
|
139
|
+
to = length(fullRouteLineString) - nearest.properties.location!;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
fullRoute,
|
|
144
|
+
end: {
|
|
145
|
+
...end,
|
|
146
|
+
from: end.current ?? end.from,
|
|
147
|
+
to,
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
get originalRoute(): AnimatedCoordinates[] {
|
|
153
|
+
return this.state.fullRoute;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { AllLayerStyle } from "../types/MapVinaRNStyles";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Converts a kebab-case string to camelCase.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* kebabToCamel('fill-color') // Returns: 'fillColor'
|
|
8
|
+
* kebabToCamel('line-gap-width') // Returns: 'lineGapWidth'
|
|
9
|
+
*/
|
|
10
|
+
function kebabToCamel(str: string): string {
|
|
11
|
+
return str.replace(/-([a-z])/g, (_, char) => char.toUpperCase());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Converts style spec compliant paint/layout objects (kebab-case) to internal
|
|
16
|
+
* style format (camelCase).
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* convertToInternalStyle({ 'fill-color': 'red' })
|
|
20
|
+
* // Returns: { fillColor: 'red' }
|
|
21
|
+
*/
|
|
22
|
+
export function convertToInternalStyle(
|
|
23
|
+
specStyle: Record<string, unknown> | undefined,
|
|
24
|
+
): Partial<AllLayerStyle> | undefined {
|
|
25
|
+
if (!specStyle) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const result: Record<string, unknown> = {};
|
|
30
|
+
|
|
31
|
+
for (const key of Object.keys(specStyle)) {
|
|
32
|
+
result[kebabToCamel(key)] = specStyle[key];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return result as Partial<AllLayerStyle>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Merges paint and layout props into a single internal style object. Priority
|
|
40
|
+
* order (highest to lowest): paint > layout > style (deprecated)
|
|
41
|
+
*/
|
|
42
|
+
export function mergeStyleProps(
|
|
43
|
+
paint: Record<string, unknown> | undefined,
|
|
44
|
+
layout: Record<string, unknown> | undefined,
|
|
45
|
+
deprecatedStyle: AllLayerStyle | undefined,
|
|
46
|
+
): AllLayerStyle | undefined {
|
|
47
|
+
const convertedPaint = convertToInternalStyle(paint);
|
|
48
|
+
const convertedLayout = convertToInternalStyle(layout);
|
|
49
|
+
|
|
50
|
+
// If nothing provided, return undefined
|
|
51
|
+
if (!convertedPaint && !convertedLayout && !deprecatedStyle) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Merge: deprecated style has lowest precedence
|
|
56
|
+
return {
|
|
57
|
+
...deprecatedStyle,
|
|
58
|
+
...convertedLayout,
|
|
59
|
+
...convertedPaint,
|
|
60
|
+
} as AllLayerStyle;
|
|
61
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Component } from "react";
|
|
2
|
+
import { findNodeHandle as rnFindNodeHandle } from "react-native";
|
|
3
|
+
|
|
4
|
+
export const findNodeHandle = (ref: Component | null) => {
|
|
5
|
+
const nodeHandle = rnFindNodeHandle(ref);
|
|
6
|
+
|
|
7
|
+
if (nodeHandle === null) {
|
|
8
|
+
throw new Error(
|
|
9
|
+
"NativeComponent ref is null, wait for the map being initialized",
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return nodeHandle;
|
|
14
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FilterSpecification } from "@mapvina/mapvina-gl-style-spec";
|
|
2
|
+
|
|
3
|
+
export function getNativeFilter(
|
|
4
|
+
filter: FilterSpecification | undefined,
|
|
5
|
+
): unknown[] {
|
|
6
|
+
if (Array.isArray(filter)) {
|
|
7
|
+
return filter;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
if (typeof filter === "boolean") {
|
|
11
|
+
return ["literal", filter] satisfies FilterSpecification;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return [];
|
|
15
|
+
}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
// DO NOT MODIFY
|
|
2
|
+
// This file is auto-generated from scripts/src/templates/renderGetStylePropertyType.ts
|
|
3
|
+
|
|
4
|
+
import { isAndroid } from "./index";
|
|
5
|
+
|
|
6
|
+
const StyleType = {
|
|
7
|
+
Constant: "constant",
|
|
8
|
+
Color: "color",
|
|
9
|
+
Transition: "transition",
|
|
10
|
+
Translation: "translation",
|
|
11
|
+
Function: "function",
|
|
12
|
+
Image: "image",
|
|
13
|
+
Enum: "enum",
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const STYLE_MAP = {
|
|
17
|
+
fillSortKey: StyleType.Constant,
|
|
18
|
+
fillAntialias: StyleType.Constant,
|
|
19
|
+
fillOpacity: StyleType.Constant,
|
|
20
|
+
fillOpacityTransition: StyleType.Transition,
|
|
21
|
+
fillColor: StyleType.Color,
|
|
22
|
+
fillColorTransition: StyleType.Transition,
|
|
23
|
+
fillOutlineColor: StyleType.Color,
|
|
24
|
+
fillOutlineColorTransition: StyleType.Transition,
|
|
25
|
+
fillTranslate: StyleType.Translation,
|
|
26
|
+
fillTranslateTransition: StyleType.Transition,
|
|
27
|
+
fillTranslateAnchor: StyleType.Enum,
|
|
28
|
+
fillPattern: StyleType.Image,
|
|
29
|
+
fillPatternTransition: StyleType.Transition,
|
|
30
|
+
|
|
31
|
+
lineCap: StyleType.Enum,
|
|
32
|
+
lineJoin: StyleType.Enum,
|
|
33
|
+
lineMiterLimit: StyleType.Constant,
|
|
34
|
+
lineRoundLimit: StyleType.Constant,
|
|
35
|
+
lineSortKey: StyleType.Constant,
|
|
36
|
+
lineOpacity: StyleType.Constant,
|
|
37
|
+
lineOpacityTransition: StyleType.Transition,
|
|
38
|
+
lineColor: StyleType.Color,
|
|
39
|
+
lineColorTransition: StyleType.Transition,
|
|
40
|
+
lineTranslate: StyleType.Translation,
|
|
41
|
+
lineTranslateTransition: StyleType.Transition,
|
|
42
|
+
lineTranslateAnchor: StyleType.Enum,
|
|
43
|
+
lineWidth: StyleType.Constant,
|
|
44
|
+
lineWidthTransition: StyleType.Transition,
|
|
45
|
+
lineGapWidth: StyleType.Constant,
|
|
46
|
+
lineGapWidthTransition: StyleType.Transition,
|
|
47
|
+
lineOffset: StyleType.Constant,
|
|
48
|
+
lineOffsetTransition: StyleType.Transition,
|
|
49
|
+
lineBlur: StyleType.Constant,
|
|
50
|
+
lineBlurTransition: StyleType.Transition,
|
|
51
|
+
lineDasharray: StyleType.Constant,
|
|
52
|
+
lineDasharrayTransition: StyleType.Transition,
|
|
53
|
+
linePattern: StyleType.Image,
|
|
54
|
+
linePatternTransition: StyleType.Transition,
|
|
55
|
+
lineGradient: StyleType.Color,
|
|
56
|
+
|
|
57
|
+
symbolPlacement: StyleType.Enum,
|
|
58
|
+
symbolSpacing: StyleType.Constant,
|
|
59
|
+
symbolAvoidEdges: StyleType.Constant,
|
|
60
|
+
symbolSortKey: StyleType.Constant,
|
|
61
|
+
symbolZOrder: StyleType.Enum,
|
|
62
|
+
iconAllowOverlap: StyleType.Constant,
|
|
63
|
+
iconOverlap: StyleType.Enum,
|
|
64
|
+
iconIgnorePlacement: StyleType.Constant,
|
|
65
|
+
iconOptional: StyleType.Constant,
|
|
66
|
+
iconRotationAlignment: StyleType.Enum,
|
|
67
|
+
iconSize: StyleType.Constant,
|
|
68
|
+
iconTextFit: StyleType.Enum,
|
|
69
|
+
iconTextFitPadding: StyleType.Constant,
|
|
70
|
+
iconImage: StyleType.Image,
|
|
71
|
+
iconRotate: StyleType.Constant,
|
|
72
|
+
iconPadding: StyleType.Constant,
|
|
73
|
+
iconKeepUpright: StyleType.Constant,
|
|
74
|
+
iconOffset: StyleType.Constant,
|
|
75
|
+
iconAnchor: StyleType.Enum,
|
|
76
|
+
iconPitchAlignment: StyleType.Enum,
|
|
77
|
+
textPitchAlignment: StyleType.Enum,
|
|
78
|
+
textRotationAlignment: StyleType.Enum,
|
|
79
|
+
textField: StyleType.Constant,
|
|
80
|
+
textFont: StyleType.Constant,
|
|
81
|
+
textSize: StyleType.Constant,
|
|
82
|
+
textMaxWidth: StyleType.Constant,
|
|
83
|
+
textLineHeight: StyleType.Constant,
|
|
84
|
+
textLetterSpacing: StyleType.Constant,
|
|
85
|
+
textJustify: StyleType.Enum,
|
|
86
|
+
textRadialOffset: StyleType.Constant,
|
|
87
|
+
textVariableAnchor: StyleType.Constant,
|
|
88
|
+
textAnchor: StyleType.Enum,
|
|
89
|
+
textMaxAngle: StyleType.Constant,
|
|
90
|
+
textWritingMode: StyleType.Constant,
|
|
91
|
+
textRotate: StyleType.Constant,
|
|
92
|
+
textPadding: StyleType.Constant,
|
|
93
|
+
textKeepUpright: StyleType.Constant,
|
|
94
|
+
textTransform: StyleType.Enum,
|
|
95
|
+
textOffset: StyleType.Constant,
|
|
96
|
+
textAllowOverlap: StyleType.Constant,
|
|
97
|
+
textOverlap: StyleType.Enum,
|
|
98
|
+
textIgnorePlacement: StyleType.Constant,
|
|
99
|
+
textOptional: StyleType.Constant,
|
|
100
|
+
iconOpacity: StyleType.Constant,
|
|
101
|
+
iconOpacityTransition: StyleType.Transition,
|
|
102
|
+
iconColor: StyleType.Color,
|
|
103
|
+
iconColorTransition: StyleType.Transition,
|
|
104
|
+
iconHaloColor: StyleType.Color,
|
|
105
|
+
iconHaloColorTransition: StyleType.Transition,
|
|
106
|
+
iconHaloWidth: StyleType.Constant,
|
|
107
|
+
iconHaloWidthTransition: StyleType.Transition,
|
|
108
|
+
iconHaloBlur: StyleType.Constant,
|
|
109
|
+
iconHaloBlurTransition: StyleType.Transition,
|
|
110
|
+
iconTranslate: StyleType.Translation,
|
|
111
|
+
iconTranslateTransition: StyleType.Transition,
|
|
112
|
+
iconTranslateAnchor: StyleType.Enum,
|
|
113
|
+
textOpacity: StyleType.Constant,
|
|
114
|
+
textOpacityTransition: StyleType.Transition,
|
|
115
|
+
textColor: StyleType.Color,
|
|
116
|
+
textColorTransition: StyleType.Transition,
|
|
117
|
+
textHaloColor: StyleType.Color,
|
|
118
|
+
textHaloColorTransition: StyleType.Transition,
|
|
119
|
+
textHaloWidth: StyleType.Constant,
|
|
120
|
+
textHaloWidthTransition: StyleType.Transition,
|
|
121
|
+
textHaloBlur: StyleType.Constant,
|
|
122
|
+
textHaloBlurTransition: StyleType.Transition,
|
|
123
|
+
textTranslate: StyleType.Translation,
|
|
124
|
+
textTranslateTransition: StyleType.Transition,
|
|
125
|
+
textTranslateAnchor: StyleType.Enum,
|
|
126
|
+
|
|
127
|
+
circleSortKey: StyleType.Constant,
|
|
128
|
+
circleRadius: StyleType.Constant,
|
|
129
|
+
circleRadiusTransition: StyleType.Transition,
|
|
130
|
+
circleColor: StyleType.Color,
|
|
131
|
+
circleColorTransition: StyleType.Transition,
|
|
132
|
+
circleBlur: StyleType.Constant,
|
|
133
|
+
circleBlurTransition: StyleType.Transition,
|
|
134
|
+
circleOpacity: StyleType.Constant,
|
|
135
|
+
circleOpacityTransition: StyleType.Transition,
|
|
136
|
+
circleTranslate: StyleType.Translation,
|
|
137
|
+
circleTranslateTransition: StyleType.Transition,
|
|
138
|
+
circleTranslateAnchor: StyleType.Enum,
|
|
139
|
+
circlePitchScale: StyleType.Enum,
|
|
140
|
+
circlePitchAlignment: StyleType.Enum,
|
|
141
|
+
circleStrokeWidth: StyleType.Constant,
|
|
142
|
+
circleStrokeWidthTransition: StyleType.Transition,
|
|
143
|
+
circleStrokeColor: StyleType.Color,
|
|
144
|
+
circleStrokeColorTransition: StyleType.Transition,
|
|
145
|
+
circleStrokeOpacity: StyleType.Constant,
|
|
146
|
+
circleStrokeOpacityTransition: StyleType.Transition,
|
|
147
|
+
|
|
148
|
+
heatmapRadius: StyleType.Constant,
|
|
149
|
+
heatmapRadiusTransition: StyleType.Transition,
|
|
150
|
+
heatmapWeight: StyleType.Constant,
|
|
151
|
+
heatmapIntensity: StyleType.Constant,
|
|
152
|
+
heatmapIntensityTransition: StyleType.Transition,
|
|
153
|
+
heatmapColor: StyleType.Color,
|
|
154
|
+
heatmapOpacity: StyleType.Constant,
|
|
155
|
+
heatmapOpacityTransition: StyleType.Transition,
|
|
156
|
+
|
|
157
|
+
fillExtrusionOpacity: StyleType.Constant,
|
|
158
|
+
fillExtrusionOpacityTransition: StyleType.Transition,
|
|
159
|
+
fillExtrusionColor: StyleType.Color,
|
|
160
|
+
fillExtrusionColorTransition: StyleType.Transition,
|
|
161
|
+
fillExtrusionTranslate: StyleType.Translation,
|
|
162
|
+
fillExtrusionTranslateTransition: StyleType.Transition,
|
|
163
|
+
fillExtrusionTranslateAnchor: StyleType.Enum,
|
|
164
|
+
fillExtrusionPattern: StyleType.Image,
|
|
165
|
+
fillExtrusionPatternTransition: StyleType.Transition,
|
|
166
|
+
fillExtrusionHeight: StyleType.Constant,
|
|
167
|
+
fillExtrusionHeightTransition: StyleType.Transition,
|
|
168
|
+
fillExtrusionBase: StyleType.Constant,
|
|
169
|
+
fillExtrusionBaseTransition: StyleType.Transition,
|
|
170
|
+
fillExtrusionVerticalGradient: StyleType.Constant,
|
|
171
|
+
|
|
172
|
+
rasterOpacity: StyleType.Constant,
|
|
173
|
+
rasterOpacityTransition: StyleType.Transition,
|
|
174
|
+
rasterHueRotate: StyleType.Constant,
|
|
175
|
+
rasterHueRotateTransition: StyleType.Transition,
|
|
176
|
+
rasterBrightnessMin: StyleType.Constant,
|
|
177
|
+
rasterBrightnessMinTransition: StyleType.Transition,
|
|
178
|
+
rasterBrightnessMax: StyleType.Constant,
|
|
179
|
+
rasterBrightnessMaxTransition: StyleType.Transition,
|
|
180
|
+
rasterSaturation: StyleType.Constant,
|
|
181
|
+
rasterSaturationTransition: StyleType.Transition,
|
|
182
|
+
rasterContrast: StyleType.Constant,
|
|
183
|
+
rasterContrastTransition: StyleType.Transition,
|
|
184
|
+
rasterResampling: StyleType.Enum,
|
|
185
|
+
rasterFadeDuration: StyleType.Constant,
|
|
186
|
+
|
|
187
|
+
hillshadeIlluminationDirection: StyleType.Constant,
|
|
188
|
+
hillshadeIlluminationAltitude: StyleType.Constant,
|
|
189
|
+
hillshadeIlluminationAnchor: StyleType.Enum,
|
|
190
|
+
hillshadeExaggeration: StyleType.Constant,
|
|
191
|
+
hillshadeExaggerationTransition: StyleType.Transition,
|
|
192
|
+
hillshadeShadowColor: StyleType.Color,
|
|
193
|
+
hillshadeShadowColorTransition: StyleType.Transition,
|
|
194
|
+
hillshadeHighlightColor: StyleType.Color,
|
|
195
|
+
hillshadeHighlightColorTransition: StyleType.Transition,
|
|
196
|
+
hillshadeAccentColor: StyleType.Color,
|
|
197
|
+
hillshadeAccentColorTransition: StyleType.Transition,
|
|
198
|
+
hillshadeMethod: StyleType.Enum,
|
|
199
|
+
|
|
200
|
+
backgroundColor: StyleType.Color,
|
|
201
|
+
backgroundColorTransition: StyleType.Transition,
|
|
202
|
+
backgroundPattern: StyleType.Image,
|
|
203
|
+
backgroundPatternTransition: StyleType.Transition,
|
|
204
|
+
backgroundOpacity: StyleType.Constant,
|
|
205
|
+
backgroundOpacityTransition: StyleType.Transition,
|
|
206
|
+
|
|
207
|
+
anchor: StyleType.Enum,
|
|
208
|
+
position: StyleType.Constant,
|
|
209
|
+
positionTransition: StyleType.Transition,
|
|
210
|
+
color: StyleType.Color,
|
|
211
|
+
colorTransition: StyleType.Transition,
|
|
212
|
+
intensity: StyleType.Constant,
|
|
213
|
+
intensityTransition: StyleType.Transition,
|
|
214
|
+
|
|
215
|
+
visibility: StyleType.Constant,
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
const STYLE_OVERRIDES = {
|
|
219
|
+
// padding
|
|
220
|
+
iconTextFitPadding: {
|
|
221
|
+
iosType: "edgeinsets",
|
|
222
|
+
},
|
|
223
|
+
|
|
224
|
+
// offsets
|
|
225
|
+
iconOffset: {
|
|
226
|
+
iosType: "vector",
|
|
227
|
+
},
|
|
228
|
+
textOffset: {
|
|
229
|
+
iosType: "vector",
|
|
230
|
+
},
|
|
231
|
+
lineOffset: {
|
|
232
|
+
iosType: "vector",
|
|
233
|
+
},
|
|
234
|
+
|
|
235
|
+
// translates
|
|
236
|
+
fillTranslate: {
|
|
237
|
+
iosType: "vector",
|
|
238
|
+
},
|
|
239
|
+
lineTranslate: {
|
|
240
|
+
iosType: "vector",
|
|
241
|
+
},
|
|
242
|
+
iconTranslate: {
|
|
243
|
+
iosType: "vector",
|
|
244
|
+
},
|
|
245
|
+
textTranslate: {
|
|
246
|
+
iosType: "vector",
|
|
247
|
+
},
|
|
248
|
+
circleTranslate: {
|
|
249
|
+
iosType: "vector",
|
|
250
|
+
},
|
|
251
|
+
fillExtrusionTranslate: {
|
|
252
|
+
iosType: "vector",
|
|
253
|
+
},
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
export function getStylePropertyType(
|
|
257
|
+
styleProperty: keyof typeof STYLE_OVERRIDES,
|
|
258
|
+
): string {
|
|
259
|
+
if (!isAndroid() && STYLE_OVERRIDES[styleProperty]) {
|
|
260
|
+
return STYLE_OVERRIDES[styleProperty].iosType;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (STYLE_MAP[styleProperty]) {
|
|
264
|
+
return STYLE_MAP[styleProperty];
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
throw new Error(`${styleProperty} is not a valid MapVina layer style`);
|
|
268
|
+
}
|