@maplibre/maplibre-react-native 10.0.0-alpha.26 → 10.0.0-alpha.28
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/CHANGELOG.md +8 -0
- package/README.md +2 -2
- package/android/src/main/java/com/maplibre/rctmln/components/styles/RCTMLNStyleFactory.java +1 -1
- package/ios/RCTMLN/RCTMLNStyle.h +1 -1
- package/ios/RCTMLN/RCTMLNStyle.m +1 -1
- package/lib/commonjs/MLNModule.js +27 -0
- package/lib/commonjs/MLNModule.js.map +1 -0
- package/lib/commonjs/MapLibreRN.js +281 -0
- package/lib/commonjs/MapLibreRN.js.map +1 -0
- package/lib/commonjs/assets/png.d.js +2 -0
- package/lib/commonjs/assets/png.d.js.map +1 -0
- package/lib/commonjs/components/Annotation.js +109 -0
- package/lib/commonjs/components/Annotation.js.map +1 -0
- package/lib/commonjs/components/BackgroundLayer.js +33 -0
- package/lib/commonjs/components/BackgroundLayer.js.map +1 -0
- package/lib/commonjs/components/Callout.js +101 -0
- package/lib/commonjs/components/Callout.js.map +1 -0
- package/lib/commonjs/components/Camera.js +285 -0
- package/lib/commonjs/components/Camera.js.map +1 -0
- package/lib/commonjs/components/CircleLayer.js +37 -0
- package/lib/commonjs/components/CircleLayer.js.map +1 -0
- package/lib/commonjs/components/FillExtrusionLayer.js +36 -0
- package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -0
- package/lib/commonjs/components/FillLayer.js +36 -0
- package/lib/commonjs/components/FillLayer.js.map +1 -0
- package/lib/commonjs/components/HeadingIndicator.js +28 -0
- package/lib/commonjs/components/HeadingIndicator.js.map +1 -0
- package/lib/commonjs/components/HeatmapLayer.js +35 -0
- package/lib/commonjs/components/HeatmapLayer.js.map +1 -0
- package/lib/commonjs/components/ImageSource.js +42 -0
- package/lib/commonjs/components/ImageSource.js.map +1 -0
- package/lib/commonjs/components/Images.js +80 -0
- package/lib/commonjs/components/Images.js.map +1 -0
- package/lib/commonjs/components/Light.js +32 -0
- package/lib/commonjs/components/Light.js.map +1 -0
- package/lib/commonjs/components/LineLayer.js +36 -0
- package/lib/commonjs/components/LineLayer.js.map +1 -0
- package/lib/commonjs/components/MapView.js +463 -0
- package/lib/commonjs/components/MapView.js.map +1 -0
- package/lib/commonjs/components/MarkerView.js +61 -0
- package/lib/commonjs/components/MarkerView.js.map +1 -0
- package/lib/commonjs/components/NativeUserLocation.js +17 -0
- package/lib/commonjs/components/NativeUserLocation.js.map +1 -0
- package/lib/commonjs/components/PointAnnotation.js +121 -0
- package/lib/commonjs/components/PointAnnotation.js.map +1 -0
- package/lib/commonjs/components/RasterLayer.js +32 -0
- package/lib/commonjs/components/RasterLayer.js.map +1 -0
- package/lib/commonjs/components/RasterSource.js +67 -0
- package/lib/commonjs/components/RasterSource.js.map +1 -0
- package/lib/commonjs/components/ShapeSource.js +203 -0
- package/lib/commonjs/components/ShapeSource.js.map +1 -0
- package/lib/commonjs/components/Style.js +266 -0
- package/lib/commonjs/components/Style.js.map +1 -0
- package/lib/commonjs/components/SymbolLayer.js +53 -0
- package/lib/commonjs/components/SymbolLayer.js.map +1 -0
- package/lib/commonjs/components/UserLocation.js +188 -0
- package/lib/commonjs/components/UserLocation.js.map +1 -0
- package/lib/commonjs/components/VectorSource.js +129 -0
- package/lib/commonjs/components/VectorSource.js.map +1 -0
- package/lib/commonjs/hooks/useAbstractLayer.js +53 -0
- package/lib/commonjs/hooks/useAbstractLayer.js.map +1 -0
- package/lib/commonjs/hooks/useAbstractSource.js +24 -0
- package/lib/commonjs/hooks/useAbstractSource.js.map +1 -0
- package/lib/commonjs/hooks/useNativeBridge.js +84 -0
- package/lib/commonjs/hooks/useNativeBridge.js.map +1 -0
- package/lib/commonjs/hooks/useNativeRef.js +14 -0
- package/lib/commonjs/hooks/useNativeRef.js.map +1 -0
- package/lib/commonjs/hooks/useOnce.js +16 -0
- package/lib/commonjs/hooks/useOnce.js.map +1 -0
- package/lib/commonjs/index.js +23 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/modules/location/locationManager.js +91 -0
- package/lib/commonjs/modules/location/locationManager.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +37 -0
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflinePack.js +40 -0
- package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -0
- package/lib/commonjs/modules/offline/offlineManager.js +346 -0
- package/lib/commonjs/modules/offline/offlineManager.js.map +1 -0
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js +58 -0
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -0
- package/lib/commonjs/modules/snapshot/snapshotManager.js +66 -0
- package/lib/commonjs/modules/snapshot/snapshotManager.js.map +1 -0
- package/lib/commonjs/requestAndroidLocationPermissions.js +25 -0
- package/lib/commonjs/requestAndroidLocationPermissions.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/CameraMode.js +14 -0
- package/lib/commonjs/types/CameraMode.js.map +1 -0
- package/lib/commonjs/types/MapLibreRNEvent.js +6 -0
- package/lib/commonjs/types/MapLibreRNEvent.js.map +1 -0
- package/lib/commonjs/types/OnPressEvent.js +2 -0
- package/lib/commonjs/types/OnPressEvent.js.map +1 -0
- package/lib/commonjs/types/StyleURL.js +11 -0
- package/lib/commonjs/types/StyleURL.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/Logger.js +118 -0
- package/lib/commonjs/utils/Logger.js.map +1 -0
- package/lib/commonjs/utils/MapLibreRNStyles.d.js +181 -0
- package/lib/commonjs/utils/MapLibreRNStyles.d.js.map +1 -0
- package/lib/commonjs/utils/StyleValue.js +39 -0
- package/lib/commonjs/utils/StyleValue.js.map +1 -0
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +95 -0
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js.map +1 -0
- package/lib/commonjs/utils/animated/Animated.js +47 -0
- package/lib/commonjs/utils/animated/Animated.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +92 -0
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js +40 -0
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedPoint.js +111 -0
- package/lib/commonjs/utils/animated/AnimatedPoint.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +137 -0
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedShape.js +75 -0
- package/lib/commonjs/utils/animated/AnimatedShape.js.map +1 -0
- package/lib/commonjs/utils/deprecation.js +31 -0
- package/lib/commonjs/utils/deprecation.js.map +1 -0
- package/lib/commonjs/utils/filterUtils.js +13 -0
- package/lib/commonjs/utils/filterUtils.js.map +1 -0
- package/lib/commonjs/utils/index.js +97 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/commonjs/utils/makeNativeBounds.js +11 -0
- package/lib/commonjs/utils/makeNativeBounds.js.map +1 -0
- package/lib/commonjs/utils/styleMap.js +255 -0
- package/lib/commonjs/utils/styleMap.js.map +1 -0
- package/lib/module/MLNModule.js +15 -0
- package/lib/module/MLNModule.js.map +1 -0
- package/lib/module/MapLibreRN.js +37 -0
- package/lib/module/MapLibreRN.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/Annotation.js +104 -0
- package/lib/module/components/Annotation.js.map +1 -0
- package/lib/module/components/BackgroundLayer.js +28 -0
- package/lib/module/components/BackgroundLayer.js.map +1 -0
- package/lib/module/components/Callout.js +97 -0
- package/lib/module/components/Callout.js.map +1 -0
- package/lib/module/components/Camera.js +280 -0
- package/lib/module/components/Camera.js.map +1 -0
- package/lib/module/components/CircleLayer.js +32 -0
- package/lib/module/components/CircleLayer.js.map +1 -0
- package/lib/module/components/FillExtrusionLayer.js +31 -0
- package/lib/module/components/FillExtrusionLayer.js.map +1 -0
- package/lib/module/components/FillLayer.js +31 -0
- package/lib/module/components/FillLayer.js.map +1 -0
- package/lib/module/components/HeadingIndicator.js +23 -0
- package/lib/module/components/HeadingIndicator.js.map +1 -0
- package/lib/module/components/HeatmapLayer.js +30 -0
- package/lib/module/components/HeatmapLayer.js.map +1 -0
- package/lib/module/components/ImageSource.js +37 -0
- package/lib/module/components/ImageSource.js.map +1 -0
- package/lib/module/components/Images.js +76 -0
- package/lib/module/components/Images.js.map +1 -0
- package/lib/module/components/Light.js +27 -0
- package/lib/module/components/Light.js.map +1 -0
- package/lib/module/components/LineLayer.js +31 -0
- package/lib/module/components/LineLayer.js.map +1 -0
- package/lib/module/components/MapView.js +458 -0
- package/lib/module/components/MapView.js.map +1 -0
- package/lib/module/components/MarkerView.js +56 -0
- package/lib/module/components/MarkerView.js.map +1 -0
- package/lib/module/components/NativeUserLocation.js +13 -0
- package/lib/module/components/NativeUserLocation.js.map +1 -0
- package/lib/module/components/PointAnnotation.js +116 -0
- package/lib/module/components/PointAnnotation.js.map +1 -0
- package/lib/module/components/RasterLayer.js +27 -0
- package/lib/module/components/RasterLayer.js.map +1 -0
- package/lib/module/components/RasterSource.js +62 -0
- package/lib/module/components/RasterSource.js.map +1 -0
- package/lib/module/components/ShapeSource.js +198 -0
- package/lib/module/components/ShapeSource.js.map +1 -0
- package/lib/module/components/Style.js +261 -0
- package/lib/module/components/Style.js.map +1 -0
- package/lib/module/components/SymbolLayer.js +48 -0
- package/lib/module/components/SymbolLayer.js.map +1 -0
- package/lib/module/components/UserLocation.js +182 -0
- package/lib/module/components/UserLocation.js.map +1 -0
- package/lib/module/components/VectorSource.js +124 -0
- package/lib/module/components/VectorSource.js.map +1 -0
- package/lib/module/hooks/useAbstractLayer.js +49 -0
- package/lib/module/hooks/useAbstractLayer.js.map +1 -0
- package/lib/module/hooks/useAbstractSource.js +20 -0
- package/lib/module/hooks/useAbstractSource.js.map +1 -0
- package/lib/module/hooks/useNativeBridge.js +80 -0
- package/lib/module/hooks/useNativeBridge.js.map +1 -0
- package/lib/module/hooks/useNativeRef.js +10 -0
- package/lib/module/hooks/useNativeRef.js.map +1 -0
- package/lib/module/hooks/useOnce.js +12 -0
- package/lib/module/hooks/useOnce.js.map +1 -0
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/modules/location/locationManager.js +87 -0
- package/lib/module/modules/location/locationManager.js.map +1 -0
- package/lib/module/modules/offline/OfflineCreatePackOptions.js +33 -0
- package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -0
- package/lib/module/modules/offline/OfflinePack.js +36 -0
- package/lib/module/modules/offline/OfflinePack.js.map +1 -0
- package/lib/module/modules/offline/offlineManager.js +341 -0
- package/lib/module/modules/offline/offlineManager.js.map +1 -0
- package/lib/module/modules/snapshot/SnapshotOptions.js +53 -0
- package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -0
- package/lib/module/modules/snapshot/snapshotManager.js +61 -0
- package/lib/module/modules/snapshot/snapshotManager.js.map +1 -0
- package/lib/module/requestAndroidLocationPermissions.js +21 -0
- package/lib/module/requestAndroidLocationPermissions.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/CameraMode.js +10 -0
- package/lib/module/types/CameraMode.js.map +1 -0
- package/lib/module/types/MapLibreRNEvent.js +4 -0
- package/lib/module/types/MapLibreRNEvent.js.map +1 -0
- package/lib/module/types/OnPressEvent.js +2 -0
- package/lib/module/types/OnPressEvent.js.map +1 -0
- package/lib/module/types/StyleURL.js +7 -0
- package/lib/module/types/StyleURL.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/Logger.js +114 -0
- package/lib/module/utils/Logger.js.map +1 -0
- package/lib/module/utils/MapLibreRNStyles.d.js +180 -0
- package/lib/module/utils/MapLibreRNStyles.d.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 +92 -0
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js.map +1 -0
- package/lib/module/utils/animated/Animated.js +42 -0
- package/lib/module/utils/animated/Animated.js.map +1 -0
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js +87 -0
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js.map +1 -0
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js +36 -0
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -0
- package/lib/module/utils/animated/AnimatedPoint.js +107 -0
- package/lib/module/utils/animated/AnimatedPoint.js.map +1 -0
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +131 -0
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -0
- package/lib/module/utils/animated/AnimatedShape.js +71 -0
- package/lib/module/utils/animated/AnimatedShape.js.map +1 -0
- package/lib/module/utils/deprecation.js +27 -0
- package/lib/module/utils/deprecation.js.map +1 -0
- package/lib/module/utils/filterUtils.js +9 -0
- package/lib/module/utils/filterUtils.js.map +1 -0
- package/lib/module/utils/index.js +81 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/module/utils/makeNativeBounds.js +7 -0
- package/lib/module/utils/makeNativeBounds.js.map +1 -0
- package/lib/module/utils/styleMap.js +249 -0
- package/lib/module/utils/styleMap.js.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/MLNModule.d.ts +21 -0
- package/lib/typescript/commonjs/src/MLNModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts +42 -0
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Annotation.d.ts +21 -0
- package/lib/typescript/commonjs/src/components/Annotation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts +14 -0
- package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Callout.d.ts +35 -0
- package/lib/typescript/commonjs/src/components/Callout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Camera.d.ts +134 -0
- package/lib/typescript/commonjs/src/components/Camera.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/CircleLayer.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/CircleLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/FillLayer.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/FillLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ImageSource.d.ts +31 -0
- package/lib/typescript/commonjs/src/components/ImageSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Images.d.ts +33 -0
- package/lib/typescript/commonjs/src/components/Images.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Light.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/Light.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/LineLayer.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/LineLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/MapView.d.ts +235 -0
- package/lib/typescript/commonjs/src/components/MapView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/MarkerView.d.ts +44 -0
- package/lib/typescript/commonjs/src/components/MarkerView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts +26 -0
- package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts +91 -0
- package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/RasterLayer.d.ts +14 -0
- package/lib/typescript/commonjs/src/components/RasterLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/RasterSource.d.ts +53 -0
- package/lib/typescript/commonjs/src/components/RasterSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ShapeSource.d.ts +124 -0
- package/lib/typescript/commonjs/src/components/ShapeSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Style.d.ts +81 -0
- package/lib/typescript/commonjs/src/components/Style.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts +22 -0
- package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/UserLocation.d.ts +70 -0
- package/lib/typescript/commonjs/src/components/UserLocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/VectorSource.d.ts +70 -0
- package/lib/typescript/commonjs/src/components/VectorSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts +62 -0
- package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts +7 -0
- package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts +21 -0
- package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts +8 -0
- package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useOnce.d.ts +3 -0
- package/lib/typescript/commonjs/src/hooks/useOnce.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts +64 -0
- package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts +21 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts +24 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts +210 -0
- package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts +42 -0
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/snapshot/snapshotManager.d.ts +52 -0
- package/lib/typescript/commonjs/src/modules/snapshot/snapshotManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/requestAndroidLocationPermissions.d.ts +2 -0
- package/lib/typescript/commonjs/src/requestAndroidLocationPermissions.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/BaseProps.d.ts +4 -0
- package/lib/typescript/commonjs/src/types/BaseProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/CameraMode.d.ts +7 -0
- package/lib/typescript/commonjs/src/types/CameraMode.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/MapLibreRNEvent.d.ts +6 -0
- package/lib/typescript/commonjs/src/types/MapLibreRNEvent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/OnPressEvent.d.ts +12 -0
- package/lib/typescript/commonjs/src/types/OnPressEvent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/StyleURL.d.ts +4 -0
- package/lib/typescript/commonjs/src/types/StyleURL.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts +29 -0
- package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/Logger.d.ts +52 -0
- package/lib/typescript/commonjs/src/utils/Logger.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/StyleValue.d.ts +10 -0
- package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts +36 -0
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts +33 -0
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts +40 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +11 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts +31 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +54 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts +27 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/deprecation.d.ts +6 -0
- package/lib/typescript/commonjs/src/utils/deprecation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/filterUtils.d.ts +3 -0
- package/lib/typescript/commonjs/src/utils/filterUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/index.d.ts +21 -0
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/makeNativeBounds.d.ts +2 -0
- package/lib/typescript/commonjs/src/utils/makeNativeBounds.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/styleMap.d.ts +231 -0
- package/lib/typescript/commonjs/src/utils/styleMap.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/MLNModule.d.ts +21 -0
- package/lib/typescript/module/src/MLNModule.d.ts.map +1 -0
- package/lib/typescript/module/src/MapLibreRN.d.ts +42 -0
- package/lib/typescript/module/src/MapLibreRN.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Annotation.d.ts +21 -0
- package/lib/typescript/module/src/components/Annotation.d.ts.map +1 -0
- package/lib/typescript/module/src/components/BackgroundLayer.d.ts +14 -0
- package/lib/typescript/module/src/components/BackgroundLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Callout.d.ts +35 -0
- package/lib/typescript/module/src/components/Callout.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Camera.d.ts +134 -0
- package/lib/typescript/module/src/components/Camera.d.ts.map +1 -0
- package/lib/typescript/module/src/components/CircleLayer.d.ts +17 -0
- package/lib/typescript/module/src/components/CircleLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts +17 -0
- package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/FillLayer.d.ts +17 -0
- package/lib/typescript/module/src/components/FillLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/HeadingIndicator.d.ts +8 -0
- package/lib/typescript/module/src/components/HeadingIndicator.d.ts.map +1 -0
- package/lib/typescript/module/src/components/HeatmapLayer.d.ts +17 -0
- package/lib/typescript/module/src/components/HeatmapLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ImageSource.d.ts +31 -0
- package/lib/typescript/module/src/components/ImageSource.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Images.d.ts +33 -0
- package/lib/typescript/module/src/components/Images.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Light.d.ts +17 -0
- package/lib/typescript/module/src/components/Light.d.ts.map +1 -0
- package/lib/typescript/module/src/components/LineLayer.d.ts +17 -0
- package/lib/typescript/module/src/components/LineLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/MapView.d.ts +235 -0
- package/lib/typescript/module/src/components/MapView.d.ts.map +1 -0
- package/lib/typescript/module/src/components/MarkerView.d.ts +44 -0
- package/lib/typescript/module/src/components/MarkerView.d.ts.map +1 -0
- package/lib/typescript/module/src/components/NativeUserLocation.d.ts +26 -0
- package/lib/typescript/module/src/components/NativeUserLocation.d.ts.map +1 -0
- package/lib/typescript/module/src/components/PointAnnotation.d.ts +91 -0
- package/lib/typescript/module/src/components/PointAnnotation.d.ts.map +1 -0
- package/lib/typescript/module/src/components/RasterLayer.d.ts +14 -0
- package/lib/typescript/module/src/components/RasterLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/RasterSource.d.ts +53 -0
- package/lib/typescript/module/src/components/RasterSource.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ShapeSource.d.ts +124 -0
- package/lib/typescript/module/src/components/ShapeSource.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Style.d.ts +81 -0
- package/lib/typescript/module/src/components/Style.d.ts.map +1 -0
- package/lib/typescript/module/src/components/SymbolLayer.d.ts +22 -0
- package/lib/typescript/module/src/components/SymbolLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/UserLocation.d.ts +70 -0
- package/lib/typescript/module/src/components/UserLocation.d.ts.map +1 -0
- package/lib/typescript/module/src/components/VectorSource.d.ts +70 -0
- package/lib/typescript/module/src/components/VectorSource.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts +62 -0
- package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useAbstractSource.d.ts +7 -0
- package/lib/typescript/module/src/hooks/useAbstractSource.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useNativeBridge.d.ts +21 -0
- package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useNativeRef.d.ts +8 -0
- package/lib/typescript/module/src/hooks/useNativeRef.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useOnce.d.ts +3 -0
- package/lib/typescript/module/src/hooks/useOnce.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +4 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/location/locationManager.d.ts +64 -0
- package/lib/typescript/module/src/modules/location/locationManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts +21 -0
- package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts +24 -0
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/offlineManager.d.ts +210 -0
- package/lib/typescript/module/src/modules/offline/offlineManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts +42 -0
- package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/snapshot/snapshotManager.d.ts +52 -0
- package/lib/typescript/module/src/modules/snapshot/snapshotManager.d.ts.map +1 -0
- package/lib/typescript/module/src/requestAndroidLocationPermissions.d.ts +2 -0
- package/lib/typescript/module/src/requestAndroidLocationPermissions.d.ts.map +1 -0
- package/lib/typescript/module/src/types/BaseProps.d.ts +4 -0
- package/lib/typescript/module/src/types/BaseProps.d.ts.map +1 -0
- package/lib/typescript/module/src/types/CameraMode.d.ts +7 -0
- package/lib/typescript/module/src/types/CameraMode.d.ts.map +1 -0
- package/lib/typescript/module/src/types/MapLibreRNEvent.d.ts +6 -0
- package/lib/typescript/module/src/types/MapLibreRNEvent.d.ts.map +1 -0
- package/lib/typescript/module/src/types/OnPressEvent.d.ts +12 -0
- package/lib/typescript/module/src/types/OnPressEvent.d.ts.map +1 -0
- package/lib/typescript/module/src/types/StyleURL.d.ts +4 -0
- package/lib/typescript/module/src/types/StyleURL.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/BridgeValue.d.ts +29 -0
- package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/Logger.d.ts +52 -0
- package/lib/typescript/module/src/utils/Logger.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/StyleValue.d.ts +10 -0
- package/lib/typescript/module/src/utils/StyleValue.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts +36 -0
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/animated/Animated.d.ts +33 -0
- package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts +40 -0
- package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +11 -0
- package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts +31 -0
- package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +54 -0
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts +27 -0
- package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/deprecation.d.ts +6 -0
- package/lib/typescript/module/src/utils/deprecation.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/filterUtils.d.ts +3 -0
- package/lib/typescript/module/src/utils/filterUtils.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/index.d.ts +21 -0
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/makeNativeBounds.d.ts +2 -0
- package/lib/typescript/module/src/utils/makeNativeBounds.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/styleMap.d.ts +231 -0
- package/lib/typescript/module/src/utils/styleMap.d.ts.map +1 -0
- package/package.json +83 -6
- package/plugin/build/withMapLibre.d.ts +1 -1
- package/{javascript/Maplibre.ts → src/MapLibreRN.ts} +1 -1
- 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/{javascript → src}/components/Annotation.tsx +8 -8
- package/{javascript → src}/components/BackgroundLayer.tsx +4 -4
- package/{javascript → src}/components/Callout.tsx +5 -5
- package/{javascript → src}/components/Camera.tsx +5 -5
- package/{javascript → src}/components/CircleLayer.tsx +4 -4
- package/{javascript → src}/components/FillExtrusionLayer.tsx +4 -4
- package/{javascript → src}/components/FillLayer.tsx +4 -4
- package/{javascript → src}/components/HeadingIndicator.tsx +3 -4
- package/{javascript → src}/components/HeatmapLayer.tsx +4 -4
- package/{javascript → src}/components/ImageSource.tsx +2 -2
- package/{javascript → src}/components/Images.tsx +7 -7
- package/{javascript → src}/components/Light.tsx +6 -4
- package/{javascript → src}/components/LineLayer.tsx +4 -4
- package/{javascript → src}/components/MapView.tsx +12 -11
- package/{javascript → src}/components/MarkerView.tsx +2 -2
- package/{javascript → src}/components/NativeUserLocation.tsx +1 -1
- package/{javascript → src}/components/PointAnnotation.tsx +5 -5
- package/{javascript → src}/components/RasterLayer.tsx +4 -4
- package/{javascript → src}/components/RasterSource.tsx +1 -1
- package/{javascript → src}/components/ShapeSource.tsx +13 -9
- package/{javascript → src}/components/Style.tsx +32 -29
- package/{javascript → src}/components/SymbolLayer.tsx +7 -7
- package/{javascript → src}/components/UserLocation.tsx +18 -8
- package/{javascript → src}/components/VectorSource.tsx +6 -6
- package/{javascript → src}/hooks/useAbstractLayer.ts +9 -9
- package/{javascript → src}/hooks/useAbstractSource.ts +2 -2
- package/{javascript → src}/hooks/useNativeBridge.ts +2 -2
- package/{javascript → src}/hooks/useNativeRef.ts +2 -2
- package/src/index.ts +4 -0
- package/{javascript → src}/modules/location/locationManager.ts +1 -1
- package/{javascript → src}/modules/offline/offlineManager.ts +18 -13
- package/{javascript → src}/modules/snapshot/snapshotManager.ts +1 -1
- package/{javascript → src}/requestAndroidLocationPermissions.ts +3 -3
- package/src/types/BaseProps.ts +3 -0
- package/src/types/MapLibreRNEvent.ts +7 -0
- package/{javascript → src}/types/OnPressEvent.ts +1 -3
- package/src/types/StyleURL.ts +3 -0
- package/{javascript → src}/utils/BridgeValue.ts +8 -8
- package/{javascript → src}/utils/Logger.ts +1 -1
- package/{javascript/utils/MaplibreStyles.d.ts → src/utils/MapLibreRNStyles.d.ts} +3 -1
- package/{javascript → src}/utils/StyleValue.ts +2 -2
- package/{javascript → src}/utils/animated/Animated.ts +2 -2
- package/{javascript → src}/utils/animated/AnimatedCoordinatesArray.ts +24 -19
- package/{javascript → src}/utils/animated/AnimatedPoint.ts +4 -4
- package/{javascript → src}/utils/animated/AnimatedRouteCoordinatesArray.ts +14 -9
- package/{javascript → src}/utils/filterUtils.ts +1 -1
- package/{javascript → src}/utils/index.ts +13 -12
- package/{javascript → src}/utils/styleMap.ts +1 -1
- package/.eslintrc.js +0 -5
- package/.git-blame-ignore-revs +0 -3
- package/.gitattributes +0 -1
- package/.nvmrc +0 -1
- package/.sonarcloud.properties +0 -15
- package/CODE_OF_CONDUCT.md +0 -2
- package/CONTRIBUTING.md +0 -61
- package/RELEASE.md +0 -30
- package/assets/indoor_building_map_android.png +0 -0
- package/assets/indoor_building_map_ios.png +0 -0
- package/babel.config.js +0 -12
- package/docs/Annotation.md +0 -29
- package/docs/Annotations.md +0 -12
- package/docs/BackgroundLayer.md +0 -166
- package/docs/Callout.md +0 -16
- package/docs/Camera.md +0 -132
- package/docs/CircleLayer.md +0 -487
- package/docs/CustomHttpHeaders.md +0 -87
- package/docs/FillExtrusionLayer.md +0 -349
- package/docs/FillLayer.md +0 -317
- package/docs/GettingStarted.md +0 -113
- package/docs/HeadingIndicator.md +0 -11
- package/docs/HeatmapLayer.md +0 -214
- package/docs/ImageSource.md +0 -14
- package/docs/Images.md +0 -15
- package/docs/Light.md +0 -167
- package/docs/LineLayer.md +0 -603
- package/docs/Logger.md +0 -23
- package/docs/MapLibreGL.md +0 -65
- package/docs/MapView.md +0 -178
- package/docs/MarkerView.md +0 -17
- package/docs/NativeUserLocation.md +0 -13
- package/docs/PointAnnotation.md +0 -28
- package/docs/RasterLayer.md +0 -357
- package/docs/RasterSource.md +0 -19
- package/docs/ShapeSource.md +0 -104
- package/docs/Style.md +0 -11
- package/docs/StyleSheet.md +0 -451
- package/docs/SymbolLayer.md +0 -1752
- package/docs/UserLocation.md +0 -43
- package/docs/VectorSource.md +0 -50
- package/docs/coordinates.md +0 -7
- package/docs/docs.json +0 -5390
- package/docs/location.md +0 -7
- package/docs/offlineManager.md +0 -231
- package/docs/snapshotManager.md +0 -54
- package/ios/RCTMLN/index.d.ts +0 -1183
- package/javascript/index.ts +0 -4
- package/javascript/types/BaseProps.ts +0 -5
- package/javascript/types/index.ts +0 -11
- package/jest-setup.ts +0 -113
- package/jest.config.js +0 -8
- package/plugin/install.md +0 -25
- package/scripts/.eslintrc.js +0 -3
- package/scripts/codegen.ts +0 -340
- package/scripts/templates/MaplibreStyles.ts.ejs +0 -100
- package/scripts/templates/RCTMLNStyle.h.ejs +0 -34
- package/scripts/templates/RCTMLNStyle.m.ejs +0 -98
- package/scripts/templates/RCTMLNStyleFactory.java.ejs +0 -108
- package/scripts/templates/component.md.ejs +0 -125
- package/scripts/templates/index.d.ts.ejs +0 -86
- package/scripts/templates/styleMap.ts.ejs +0 -86
- package/scripts/utils/DocJSONBuilder.ts +0 -463
- package/scripts/utils/JSDocNodeTree.ts +0 -135
- package/scripts/utils/MarkdownBuilder.ts +0 -44
- package/scripts/utils/TemplateHelpers.ts +0 -499
- package/scripts/utils/getNativeVersion.ts +0 -53
- package/tsconfig.json +0 -22
- /package/{assets → lib/commonjs/assets}/heading.png +0 -0
- /package/{assets → lib/commonjs/assets}/heading@2x.png +0 -0
- /package/{assets → lib/commonjs/assets}/heading@3x.png +0 -0
- /package/{javascript → src}/MLNModule.ts +0 -0
- /package/{javascript → src}/hooks/useOnce.ts +0 -0
- /package/{javascript → src}/modules/offline/OfflineCreatePackOptions.ts +0 -0
- /package/{javascript → src}/modules/offline/OfflinePack.ts +0 -0
- /package/{javascript → src}/modules/snapshot/SnapshotOptions.ts +0 -0
- /package/{javascript → src}/types/CameraMode.ts +0 -0
- /package/{javascript → src}/utils/animated/AbstractAnimatedCoordinates.ts +0 -0
- /package/{javascript → src}/utils/animated/AnimatedExtractCoordinateFromArray.ts +0 -0
- /package/{javascript → src}/utils/animated/AnimatedShape.ts +0 -0
- /package/{javascript → src}/utils/deprecation.ts +0 -0
- /package/{javascript → src}/utils/makeNativeBounds.ts +0 -0
package/docs/MapView.md
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
<!-- DO NOT MODIFY! -->
|
|
2
|
-
<!-- This file is auto-generated from javascript/components/MapView.tsx -->
|
|
3
|
-
# `<MapLibreGL.MapView />`
|
|
4
|
-
MapView backed by MapLibre Native
|
|
5
|
-
|
|
6
|
-
## Props
|
|
7
|
-
| Prop | Type | Default | Required | Description |
|
|
8
|
-
| ---- | :--: | :-----: | :------: | :----------: |
|
|
9
|
-
| contentInset | `number[] \| number` | `none` | `false` | The distance from the edges of the map view’s frame to the edges of the map view’s logical viewport. |
|
|
10
|
-
| style | `ViewProps["style"]` | `none` | `false` | Style for wrapping React Native View |
|
|
11
|
-
| styleURL | `string` | `none` | `false` | Style URL for map - notice, if non is set it _will_ default to `MapLibreGL.StyleURL.Default` |
|
|
12
|
-
| styleJSON | `string` | `none` | `false` | StyleJSON for map - according to TileJSON specs: https://github.com/mapbox/tilejson-spec |
|
|
13
|
-
| preferredFramesPerSecond | `number` | `none` | `false` | iOS: The preferred frame rate at which the map view is rendered.<br/>The default value for this property is MLNMapViewPreferredFramesPerSecondDefault,<br/>which will adaptively set the preferred frame rate based on the capability of<br/>the user’s device to maintain a smooth experience. This property can be set to arbitrary integer values.<br/><br/>Android: The maximum frame rate at which the map view is rendered, but it can't excess the ability of device hardware.<br/>This property can be set to arbitrary integer values. |
|
|
14
|
-
| localizeLabels | `boolean` | `false` | `false` | Automatically change the language of the map labels to the system’s preferred language,<br/>this is not something that can be toggled on/off |
|
|
15
|
-
| zoomEnabled | `boolean` | `none` | `false` | Enable/Disable zoom on the map |
|
|
16
|
-
| scrollEnabled | `boolean` | `true` | `false` | Enable/Disable scroll on the map |
|
|
17
|
-
| pitchEnabled | `boolean` | `true` | `false` | Enable/Disable pitch on map |
|
|
18
|
-
| rotateEnabled | `boolean` | `true` | `false` | Enable/Disable rotation on map |
|
|
19
|
-
| attributionEnabled | `boolean` | `true` | `false` | Enable/Disable attribution on map.<br/><br/>This must be enabled for Mapbox-hosted tiles and styles. Please refer to the Mapbox Terms of Service.<br/>Other providers do not require this. |
|
|
20
|
-
| attributionPosition | `{ top?: number; left?: number } \| { top?: number; right?: number } \| { bottom?: number; left?: number } \| { bottom?: number; right?: number }` | `none` | `false` | Adds attribution offset, e.g. `{top: 8, left: 8}` will put attribution button in top-left corner of the map |
|
|
21
|
-
| tintColor | `string \| unknown[]` | `none` | `false` | MapView's tintColor |
|
|
22
|
-
| logoEnabled | `boolean` | `false` | `false` | Enable/Disable the logo on the map. |
|
|
23
|
-
| logoPosition | `{ top?: number; left?: number } \| { top?: number; right?: number } \| { bottom?: number; left?: number } \| { bottom?: number; right?: number }` | `none` | `false` | Adds logo offset, e.g. `{top: 8, left: 8}` will put the logo in top-left corner of the map |
|
|
24
|
-
| compassEnabled | `boolean` | `none` | `false` | Enable/Disable the compass from appearing on the map |
|
|
25
|
-
| compassViewPosition | `number` | `none` | `false` | Change corner of map the compass starts at. 0: TopLeft, 1: TopRight, 2: BottomLeft, 3: BottomRight |
|
|
26
|
-
| compassViewMargins | `object` | `none` | `false` | Add margins to the compass with x and y values |
|
|
27
|
-
| surfaceView | `boolean` | `false` | `false` | [Android only] Enable/Disable use of GLSurfaceView insted of TextureView. |
|
|
28
|
-
| onUserLocationUpdate | `func` | `none` | `false` | This event is triggered when the user location is updated.<br/>*signature:*`(location:Location) => void` |
|
|
29
|
-
| regionWillChangeDebounceTime | `number` | `10` | `false` | The emitted frequency of regionwillchange events |
|
|
30
|
-
| regionDidChangeDebounceTime | `number` | `500` | `false` | The emitted frequency of regiondidchange events |
|
|
31
|
-
| children | `ReactNode` | `none` | `true` | FIX ME NO DESCRIPTION |
|
|
32
|
-
|
|
33
|
-
## Methods
|
|
34
|
-
### `getPointInView(coordinate)`
|
|
35
|
-
|
|
36
|
-
Converts a geographic coordinate to a point in the given view’s coordinate system.
|
|
37
|
-
|
|
38
|
-
#### Arguments
|
|
39
|
-
| Name | Type | Required | Description |
|
|
40
|
-
| ---- | :--: | :------: | :----------: |
|
|
41
|
-
| `coordinate` | `GeoJSON.Position` | `Yes` | A point expressed in the map view's coordinate system. |
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
```javascript
|
|
46
|
-
const pointInView = await this._map.getPointInView([-37.817070, 144.949901]);
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
### `getCoordinateFromView(point)`
|
|
51
|
-
|
|
52
|
-
Converts a point in the given view’s coordinate system to a geographic coordinate.
|
|
53
|
-
|
|
54
|
-
#### Arguments
|
|
55
|
-
| Name | Type | Required | Description |
|
|
56
|
-
| ---- | :--: | :------: | :----------: |
|
|
57
|
-
| `point` | `Array` | `Yes` | A point expressed in the given view’s coordinate system. |
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
```javascript
|
|
62
|
-
const coordinate = await this._map.getCoordinateFromView([100, 100]);
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
### `getVisibleBounds()`
|
|
67
|
-
|
|
68
|
-
The coordinate bounds(ne, sw) visible in the users’s viewport.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
```javascript
|
|
74
|
-
const visibleBounds = await this._map.getVisibleBounds();
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
### `queryRenderedFeaturesAtPoint(point, [filter], [layerIDs])`
|
|
79
|
-
|
|
80
|
-
Returns an array of rendered map features that intersect with a given point.
|
|
81
|
-
|
|
82
|
-
#### Arguments
|
|
83
|
-
| Name | Type | Required | Description |
|
|
84
|
-
| ---- | :--: | :------: | :----------: |
|
|
85
|
-
| `point` | `tuple` | `Yes` | undefined |
|
|
86
|
-
| `filter` | `FilterExpression` | `No` | A set of strings that correspond to the names of layers defined in the current style. Only the features contained in these layers are included in the returned array. |
|
|
87
|
-
| `layerIDs` | `Array` | `No` | A array of layer id's to filter the features by |
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
```javascript
|
|
92
|
-
this._map.queryRenderedFeaturesAtPoint([30, 40], ['==', 'type', 'Point'], ['id1', 'id2'])
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### `queryRenderedFeaturesInRect(bbox, [filter], [layerIDs])`
|
|
97
|
-
|
|
98
|
-
Returns an array of rendered map features that intersect with the given rectangle,<br/>restricted to the given style layers and filtered by the given predicate.
|
|
99
|
-
|
|
100
|
-
#### Arguments
|
|
101
|
-
| Name | Type | Required | Description |
|
|
102
|
-
| ---- | :--: | :------: | :----------: |
|
|
103
|
-
| `bbox` | `GeoJSON.BBox` | `Yes` | A rectangle expressed in the map view’s coordinate system. |
|
|
104
|
-
| `filter` | `FilterExpression` | `No` | A set of strings that correspond to the names of layers defined in the current style. Only the features contained in these layers are included in the returned array. |
|
|
105
|
-
| `layerIDs` | `Array` | `No` | A array of layer id's to filter the features by |
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
```javascript
|
|
110
|
-
this._map.queryRenderedFeaturesInRect([30, 40, 20, 10], ['==', 'type', 'Point'], ['id1', 'id2'])
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
### `setCamera()`
|
|
115
|
-
|
|
116
|
-
Map camera will perform updates based on provided config. Deprecated use Camera#setCamera.
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
### `takeSnap([writeToDisk])`
|
|
121
|
-
|
|
122
|
-
Takes snapshot of map with current tiles and returns a URI to the image
|
|
123
|
-
|
|
124
|
-
#### Arguments
|
|
125
|
-
| Name | Type | Required | Description |
|
|
126
|
-
| ---- | :--: | :------: | :----------: |
|
|
127
|
-
| `writeToDisk` | `Boolean` | `No` | If true will create a temp file, otherwise it is in base64 |
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
### `getZoom()`
|
|
131
|
-
|
|
132
|
-
Returns the current zoom of the map view.
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
```javascript
|
|
138
|
-
const zoom = await this._map.getZoom();
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
### `getCenter()`
|
|
143
|
-
|
|
144
|
-
Returns the map's geographical centerpoint
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
```javascript
|
|
150
|
-
const center = await this._map.getCenter();
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
### `setSourceVisibility(visible, sourceId, [sourceLayerId])`
|
|
155
|
-
|
|
156
|
-
Sets the visibility of all the layers referencing the specified `sourceLayerId` and/or `sourceId`
|
|
157
|
-
|
|
158
|
-
#### Arguments
|
|
159
|
-
| Name | Type | Required | Description |
|
|
160
|
-
| ---- | :--: | :------: | :----------: |
|
|
161
|
-
| `visible` | `boolean` | `Yes` | Visibility of the layers |
|
|
162
|
-
| `sourceId` | `string` | `Yes` | Identifier of the target source (e.g. 'composite') |
|
|
163
|
-
| `sourceLayerId` | `String` | `No` | Identifier of the target source-layer (e.g. 'building') |
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
```javascript
|
|
168
|
-
await this._map.setSourceVisibility(false, 'composite', 'building')
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
### `showAttribution()`
|
|
173
|
-
|
|
174
|
-
Show the attribution and telemetry action sheet.<br/>If you implement a custom attribution button, you should add this action to the button.
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
package/docs/MarkerView.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<!-- DO NOT MODIFY! -->
|
|
2
|
-
<!-- This file is auto-generated from javascript/components/MarkerView.tsx -->
|
|
3
|
-
# `<MapLibreGL.MarkerView />`
|
|
4
|
-
MarkerView allows you to place a interactive react native marker to the map.<br/><br/>If you have static view consider using PointAnnotation or SymbolLayer they'll offer much better performance<br/>.<br/>This is based on [MakerView plugin](https://docs.mapbox.com/android/plugins/overview/markerview/) on Android<br/>and PointAnnotation on iOS.
|
|
5
|
-
|
|
6
|
-
## Props
|
|
7
|
-
| Prop | Type | Default | Required | Description |
|
|
8
|
-
| ---- | :--: | :-----: | :------: | :----------: |
|
|
9
|
-
| coordinate | `Array` | `none` | `true` | The center point (specified as a map coordinate) of the marker.<br/>See also #anchor. |
|
|
10
|
-
| anchor | `shape` | `{ x: 0.5, y: 0.5 }` | `false` | Specifies the anchor being set on a particular point of the annotation.<br/>The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],<br/>where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.<br/>Note this is only for custom annotations not the default pin view.<br/>Defaults to the center of the view. |
|
|
11
|
-
| x | `number` | `none` | `true` | `x` of anchor |
|
|
12
|
-
| y | `number` | `none` | `true` | `y` of anchor |
|
|
13
|
-
| allowOverlap | `boolean` | `false` | `false` | FIX ME NO DESCRIPTION |
|
|
14
|
-
| isSelected | `boolean` | `false` | `false` | FIX ME NO DESCRIPTION |
|
|
15
|
-
| children | `ReactReactElement` | `none` | `true` | Expects one child - can be container with multiple elements |
|
|
16
|
-
|
|
17
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- DO NOT MODIFY! -->
|
|
2
|
-
<!-- This file is auto-generated from javascript/components/NativeUserLocation.tsx -->
|
|
3
|
-
# `<MapLibreGL.NativeUserLocation />`
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## Props
|
|
7
|
-
| Prop | Type | Default | Required | Description |
|
|
8
|
-
| ---- | :--: | :-----: | :------: | :----------: |
|
|
9
|
-
| androidRenderMode | `"normal" \| "compass" \| "gps"` | `none` | `false` | Android render mode.<br/><br/> - normal: just a circle<br/> - compass: triangle with heading<br/> - gps: large arrow<br/><br/>@platform android |
|
|
10
|
-
| iosShowsUserHeadingIndicator | `boolean` | `none` | `false` | iOS only. A Boolean value indicating whether the user location annotation may display a permanent heading indicator.<br/><br/>@platform ios |
|
|
11
|
-
| androidPreferredFramesPerSecond | `number` | `none` | `false` | Android only. Set max FPS at which location animators can output updates. Use this setting to limit animation rate of the location puck on higher zoom levels to decrease the stress on the device's CPU which can directly improve battery life, without sacrificing UX. |
|
|
12
|
-
|
|
13
|
-
|
package/docs/PointAnnotation.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<!-- DO NOT MODIFY! -->
|
|
2
|
-
<!-- This file is auto-generated from javascript/components/PointAnnotation.tsx -->
|
|
3
|
-
# `<MapLibreGL.PointAnnotation />`
|
|
4
|
-
PointAnnotation represents a one-dimensional shape located at a single geographical coordinate.<br/><br/>Consider using ShapeSource and SymbolLayer instead, if you have many points and you have static images,<br/>they'll offer much better performance<br/><br/>.<br/>If you need interctive views please use MarkerView,<br/>as with PointAnnotation on Android child views are rendered onto a bitmap for better performance.
|
|
5
|
-
|
|
6
|
-
## Props
|
|
7
|
-
| Prop | Type | Default | Required | Description |
|
|
8
|
-
| ---- | :--: | :-----: | :------: | :----------: |
|
|
9
|
-
| id | `string` | `none` | `true` | A string that uniquely identifies the annotation |
|
|
10
|
-
| title | `string` | `none` | `false` | The string containing the annotation’s title. Note this is required to be set if you want to see a callout appear on iOS. |
|
|
11
|
-
| snippet | `string` | `none` | `false` | The string containing the annotation’s snippet(subtitle). Not displayed in the default callout. |
|
|
12
|
-
| selected | `boolean` | `none` | `false` | Manually selects/deselects annotation<br/>@type {[type]} |
|
|
13
|
-
| draggable | `boolean` | `false` | `false` | Enable or disable dragging. Defaults to false. |
|
|
14
|
-
| coordinate | `Array` | `none` | `true` | The center point (specified as a map coordinate) of the annotation. |
|
|
15
|
-
| anchor | `shape` | `{ x: 0.5, y: 0.5 }` | `false` | Specifies the anchor being set on a particular point of the annotation.<br/>The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],<br/>where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.<br/>Note this is only for custom annotations not the default pin view.<br/>Defaults to the center of the view. |
|
|
16
|
-
| x | `number` | `none` | `true` | See anchor |
|
|
17
|
-
| y | `number` | `none` | `true` | See anchor |
|
|
18
|
-
| children | `React.ReactElement \| [React.ReactElement, React.ReactElement]` | `none` | `true` | Expects one child, and an optional callout can be added as well |
|
|
19
|
-
| style | `ViewProps["style"]` | `none` | `false` | FIX ME NO DESCRIPTION |
|
|
20
|
-
|
|
21
|
-
## Methods
|
|
22
|
-
### `refresh()`
|
|
23
|
-
|
|
24
|
-
On android point annotation is rendered offscreen with a canvas into an image.<br/>To rerender the image from the current state of the view call refresh.<br/>Call this for example from Image#onLoad.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
package/docs/RasterLayer.md
DELETED
|
@@ -1,357 +0,0 @@
|
|
|
1
|
-
<!-- DO NOT MODIFY! -->
|
|
2
|
-
<!-- This file is auto-generated from javascript/components/RasterLayer.tsx -->
|
|
3
|
-
# `<MapLibreGL.RasterLayer />`
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## Props
|
|
7
|
-
| Prop | Type | Default | Required | Description |
|
|
8
|
-
| ---- | :--: | :-----: | :------: | :----------: |
|
|
9
|
-
| style | `RasterLayerStyleProps` | `none` | `false` | Customizable style attributes |
|
|
10
|
-
| sourceID | `FIX ME UNKNOWN TYPE` | `MapLibreGL.StyleSource.DefaultSourceID` | `false` | FIX ME NO DESCRIPTION |
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Styles
|
|
14
|
-
|
|
15
|
-
* <a href="#name">`visibility`</a><br/>
|
|
16
|
-
* <a href="#name-1">`rasterOpacity`</a><br/>
|
|
17
|
-
* <a href="#name-2">`rasterHueRotate`</a><br/>
|
|
18
|
-
* <a href="#name-3">`rasterBrightnessMin`</a><br/>
|
|
19
|
-
* <a href="#name-4">`rasterBrightnessMax`</a><br/>
|
|
20
|
-
* <a href="#name-5">`rasterSaturation`</a><br/>
|
|
21
|
-
* <a href="#name-6">`rasterContrast`</a><br/>
|
|
22
|
-
* <a href="#name-7">`rasterResampling`</a><br/>
|
|
23
|
-
* <a href="#name-8">`rasterFadeDuration`</a><br/>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
### `visibility`
|
|
27
|
-
|
|
28
|
-
Whether this layer is displayed.
|
|
29
|
-
|
|
30
|
-
<dl>
|
|
31
|
-
<dt>Type</dt>
|
|
32
|
-
<dd>
|
|
33
|
-
<code>enum</code>
|
|
34
|
-
</dd>
|
|
35
|
-
<dt>Default Value</dt>
|
|
36
|
-
<dd><code>visible</code></dd>
|
|
37
|
-
<dt>Supported Values</dt>
|
|
38
|
-
<dd>
|
|
39
|
-
<ul>
|
|
40
|
-
<li>
|
|
41
|
-
<code>visible</code>: The layer is shown.
|
|
42
|
-
</li>
|
|
43
|
-
<li>
|
|
44
|
-
<code>none</code>: The layer is not shown.
|
|
45
|
-
</li>
|
|
46
|
-
</ul>
|
|
47
|
-
</dd>
|
|
48
|
-
</dl>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
### `rasterOpacity`
|
|
53
|
-
|
|
54
|
-
The opacity at which the image will be drawn.
|
|
55
|
-
|
|
56
|
-
<dl>
|
|
57
|
-
<dt>Type</dt>
|
|
58
|
-
<dd>
|
|
59
|
-
<code>number</code>
|
|
60
|
-
</dd>
|
|
61
|
-
<dt>Default Value</dt>
|
|
62
|
-
<dd><code>1</code></dd>
|
|
63
|
-
</ul>
|
|
64
|
-
</dd>
|
|
65
|
-
<dt>Minimum</dt>
|
|
66
|
-
<dd><code>0</code></dd>
|
|
67
|
-
<dt>Maximum</dt>
|
|
68
|
-
<dd><code>1</code></dd>
|
|
69
|
-
<dt>Expression Parameters</dt>
|
|
70
|
-
<dd><code>zoom</code></dd>
|
|
71
|
-
</dl>
|
|
72
|
-
|
|
73
|
-
### `rasterOpacityTransition`
|
|
74
|
-
|
|
75
|
-
The transition affecting any changes to this layer’s rasterOpacity property.
|
|
76
|
-
|
|
77
|
-
<dl>
|
|
78
|
-
<dt>Type</dt>
|
|
79
|
-
<dd>
|
|
80
|
-
<code>{ duration, delay }</code>
|
|
81
|
-
</dd>
|
|
82
|
-
|
|
83
|
-
<dt>Units</dt>
|
|
84
|
-
<dd>
|
|
85
|
-
<code>milliseconds</code>
|
|
86
|
-
</dd>
|
|
87
|
-
|
|
88
|
-
<dt>Default Value</dt>
|
|
89
|
-
<dd>
|
|
90
|
-
<code>{duration: 300, delay: 0}</code>
|
|
91
|
-
</dd>
|
|
92
|
-
</dl>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
### `rasterHueRotate`
|
|
96
|
-
|
|
97
|
-
Rotates hues around the color wheel.
|
|
98
|
-
|
|
99
|
-
<dl>
|
|
100
|
-
<dt>Type</dt>
|
|
101
|
-
<dd>
|
|
102
|
-
<code>number</code>
|
|
103
|
-
</dd>
|
|
104
|
-
<dt>Default Value</dt>
|
|
105
|
-
<dd><code>0</code></dd>
|
|
106
|
-
</ul>
|
|
107
|
-
</dd>
|
|
108
|
-
<dt>Units</dt>
|
|
109
|
-
<dd><code>degrees</code></dd>
|
|
110
|
-
<dt>Expression Parameters</dt>
|
|
111
|
-
<dd><code>zoom</code></dd>
|
|
112
|
-
</dl>
|
|
113
|
-
|
|
114
|
-
### `rasterHueRotateTransition`
|
|
115
|
-
|
|
116
|
-
The transition affecting any changes to this layer’s rasterHueRotate property.
|
|
117
|
-
|
|
118
|
-
<dl>
|
|
119
|
-
<dt>Type</dt>
|
|
120
|
-
<dd>
|
|
121
|
-
<code>{ duration, delay }</code>
|
|
122
|
-
</dd>
|
|
123
|
-
|
|
124
|
-
<dt>Units</dt>
|
|
125
|
-
<dd>
|
|
126
|
-
<code>milliseconds</code>
|
|
127
|
-
</dd>
|
|
128
|
-
|
|
129
|
-
<dt>Default Value</dt>
|
|
130
|
-
<dd>
|
|
131
|
-
<code>{duration: 300, delay: 0}</code>
|
|
132
|
-
</dd>
|
|
133
|
-
</dl>
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
### `rasterBrightnessMin`
|
|
137
|
-
|
|
138
|
-
Increase or reduce the brightness of the image. The value is the minimum brightness.
|
|
139
|
-
|
|
140
|
-
<dl>
|
|
141
|
-
<dt>Type</dt>
|
|
142
|
-
<dd>
|
|
143
|
-
<code>number</code>
|
|
144
|
-
</dd>
|
|
145
|
-
<dt>Default Value</dt>
|
|
146
|
-
<dd><code>0</code></dd>
|
|
147
|
-
</ul>
|
|
148
|
-
</dd>
|
|
149
|
-
<dt>Minimum</dt>
|
|
150
|
-
<dd><code>0</code></dd>
|
|
151
|
-
<dt>Maximum</dt>
|
|
152
|
-
<dd><code>1</code></dd>
|
|
153
|
-
<dt>Expression Parameters</dt>
|
|
154
|
-
<dd><code>zoom</code></dd>
|
|
155
|
-
</dl>
|
|
156
|
-
|
|
157
|
-
### `rasterBrightnessMinTransition`
|
|
158
|
-
|
|
159
|
-
The transition affecting any changes to this layer’s rasterBrightnessMin property.
|
|
160
|
-
|
|
161
|
-
<dl>
|
|
162
|
-
<dt>Type</dt>
|
|
163
|
-
<dd>
|
|
164
|
-
<code>{ duration, delay }</code>
|
|
165
|
-
</dd>
|
|
166
|
-
|
|
167
|
-
<dt>Units</dt>
|
|
168
|
-
<dd>
|
|
169
|
-
<code>milliseconds</code>
|
|
170
|
-
</dd>
|
|
171
|
-
|
|
172
|
-
<dt>Default Value</dt>
|
|
173
|
-
<dd>
|
|
174
|
-
<code>{duration: 300, delay: 0}</code>
|
|
175
|
-
</dd>
|
|
176
|
-
</dl>
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
### `rasterBrightnessMax`
|
|
180
|
-
|
|
181
|
-
Increase or reduce the brightness of the image. The value is the maximum brightness.
|
|
182
|
-
|
|
183
|
-
<dl>
|
|
184
|
-
<dt>Type</dt>
|
|
185
|
-
<dd>
|
|
186
|
-
<code>number</code>
|
|
187
|
-
</dd>
|
|
188
|
-
<dt>Default Value</dt>
|
|
189
|
-
<dd><code>1</code></dd>
|
|
190
|
-
</ul>
|
|
191
|
-
</dd>
|
|
192
|
-
<dt>Minimum</dt>
|
|
193
|
-
<dd><code>0</code></dd>
|
|
194
|
-
<dt>Maximum</dt>
|
|
195
|
-
<dd><code>1</code></dd>
|
|
196
|
-
<dt>Expression Parameters</dt>
|
|
197
|
-
<dd><code>zoom</code></dd>
|
|
198
|
-
</dl>
|
|
199
|
-
|
|
200
|
-
### `rasterBrightnessMaxTransition`
|
|
201
|
-
|
|
202
|
-
The transition affecting any changes to this layer’s rasterBrightnessMax property.
|
|
203
|
-
|
|
204
|
-
<dl>
|
|
205
|
-
<dt>Type</dt>
|
|
206
|
-
<dd>
|
|
207
|
-
<code>{ duration, delay }</code>
|
|
208
|
-
</dd>
|
|
209
|
-
|
|
210
|
-
<dt>Units</dt>
|
|
211
|
-
<dd>
|
|
212
|
-
<code>milliseconds</code>
|
|
213
|
-
</dd>
|
|
214
|
-
|
|
215
|
-
<dt>Default Value</dt>
|
|
216
|
-
<dd>
|
|
217
|
-
<code>{duration: 300, delay: 0}</code>
|
|
218
|
-
</dd>
|
|
219
|
-
</dl>
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
### `rasterSaturation`
|
|
223
|
-
|
|
224
|
-
Increase or reduce the saturation of the image.
|
|
225
|
-
|
|
226
|
-
<dl>
|
|
227
|
-
<dt>Type</dt>
|
|
228
|
-
<dd>
|
|
229
|
-
<code>number</code>
|
|
230
|
-
</dd>
|
|
231
|
-
<dt>Default Value</dt>
|
|
232
|
-
<dd><code>0</code></dd>
|
|
233
|
-
</ul>
|
|
234
|
-
</dd>
|
|
235
|
-
<dt>Minimum</dt>
|
|
236
|
-
<dd><code>-1</code></dd>
|
|
237
|
-
<dt>Maximum</dt>
|
|
238
|
-
<dd><code>1</code></dd>
|
|
239
|
-
<dt>Expression Parameters</dt>
|
|
240
|
-
<dd><code>zoom</code></dd>
|
|
241
|
-
</dl>
|
|
242
|
-
|
|
243
|
-
### `rasterSaturationTransition`
|
|
244
|
-
|
|
245
|
-
The transition affecting any changes to this layer’s rasterSaturation property.
|
|
246
|
-
|
|
247
|
-
<dl>
|
|
248
|
-
<dt>Type</dt>
|
|
249
|
-
<dd>
|
|
250
|
-
<code>{ duration, delay }</code>
|
|
251
|
-
</dd>
|
|
252
|
-
|
|
253
|
-
<dt>Units</dt>
|
|
254
|
-
<dd>
|
|
255
|
-
<code>milliseconds</code>
|
|
256
|
-
</dd>
|
|
257
|
-
|
|
258
|
-
<dt>Default Value</dt>
|
|
259
|
-
<dd>
|
|
260
|
-
<code>{duration: 300, delay: 0}</code>
|
|
261
|
-
</dd>
|
|
262
|
-
</dl>
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
### `rasterContrast`
|
|
266
|
-
|
|
267
|
-
Increase or reduce the contrast of the image.
|
|
268
|
-
|
|
269
|
-
<dl>
|
|
270
|
-
<dt>Type</dt>
|
|
271
|
-
<dd>
|
|
272
|
-
<code>number</code>
|
|
273
|
-
</dd>
|
|
274
|
-
<dt>Default Value</dt>
|
|
275
|
-
<dd><code>0</code></dd>
|
|
276
|
-
</ul>
|
|
277
|
-
</dd>
|
|
278
|
-
<dt>Minimum</dt>
|
|
279
|
-
<dd><code>-1</code></dd>
|
|
280
|
-
<dt>Maximum</dt>
|
|
281
|
-
<dd><code>1</code></dd>
|
|
282
|
-
<dt>Expression Parameters</dt>
|
|
283
|
-
<dd><code>zoom</code></dd>
|
|
284
|
-
</dl>
|
|
285
|
-
|
|
286
|
-
### `rasterContrastTransition`
|
|
287
|
-
|
|
288
|
-
The transition affecting any changes to this layer’s rasterContrast property.
|
|
289
|
-
|
|
290
|
-
<dl>
|
|
291
|
-
<dt>Type</dt>
|
|
292
|
-
<dd>
|
|
293
|
-
<code>{ duration, delay }</code>
|
|
294
|
-
</dd>
|
|
295
|
-
|
|
296
|
-
<dt>Units</dt>
|
|
297
|
-
<dd>
|
|
298
|
-
<code>milliseconds</code>
|
|
299
|
-
</dd>
|
|
300
|
-
|
|
301
|
-
<dt>Default Value</dt>
|
|
302
|
-
<dd>
|
|
303
|
-
<code>{duration: 300, delay: 0}</code>
|
|
304
|
-
</dd>
|
|
305
|
-
</dl>
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
### `rasterResampling`
|
|
309
|
-
|
|
310
|
-
The resampling/interpolation method to use for overscaling, also known as texture magnification filter
|
|
311
|
-
|
|
312
|
-
<dl>
|
|
313
|
-
<dt>Type</dt>
|
|
314
|
-
<dd>
|
|
315
|
-
<code>enum</code>
|
|
316
|
-
</dd>
|
|
317
|
-
<dt>Default Value</dt>
|
|
318
|
-
<dd><code>linear</code></dd>
|
|
319
|
-
<dt>Supported Values</dt>
|
|
320
|
-
<dd>
|
|
321
|
-
<ul>
|
|
322
|
-
<li>
|
|
323
|
-
<code>linear</code>: (Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled
|
|
324
|
-
</li>
|
|
325
|
-
<li>
|
|
326
|
-
<code>nearest</code>: Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled
|
|
327
|
-
</li>
|
|
328
|
-
</ul>
|
|
329
|
-
</dd>
|
|
330
|
-
<dt>Expression Parameters</dt>
|
|
331
|
-
<dd><code>zoom</code></dd>
|
|
332
|
-
</dl>
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
### `rasterFadeDuration`
|
|
337
|
-
|
|
338
|
-
Fade duration when a new tile is added, or when a video is started or its coordinates are updated.
|
|
339
|
-
|
|
340
|
-
<dl>
|
|
341
|
-
<dt>Type</dt>
|
|
342
|
-
<dd>
|
|
343
|
-
<code>number</code>
|
|
344
|
-
</dd>
|
|
345
|
-
<dt>Default Value</dt>
|
|
346
|
-
<dd><code>300</code></dd>
|
|
347
|
-
</ul>
|
|
348
|
-
</dd>
|
|
349
|
-
<dt>Units</dt>
|
|
350
|
-
<dd><code>milliseconds</code></dd>
|
|
351
|
-
<dt>Minimum</dt>
|
|
352
|
-
<dd><code>0</code></dd>
|
|
353
|
-
<dt>Expression Parameters</dt>
|
|
354
|
-
<dd><code>zoom</code></dd>
|
|
355
|
-
</dl>
|
|
356
|
-
|
|
357
|
-
|
package/docs/RasterSource.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!-- DO NOT MODIFY! -->
|
|
2
|
-
<!-- This file is auto-generated from javascript/components/RasterSource.tsx -->
|
|
3
|
-
# `<MapLibreGL.RasterSource />`
|
|
4
|
-
RasterSource is a map content source that supplies raster image tiles to be shown on the map.<br/>The location of and metadata about the tiles are defined either by an option dictionary<br/>or by an external file that conforms to the TileJSON specification.
|
|
5
|
-
|
|
6
|
-
## Props
|
|
7
|
-
| Prop | Type | Default | Required | Description |
|
|
8
|
-
| ---- | :--: | :-----: | :------: | :----------: |
|
|
9
|
-
| id | `string` | `MapLibreGL.StyleSource.DefaultSourceID` | `false` | A string that uniquely identifies the source. |
|
|
10
|
-
| url | `string` | `none` | `false` | A URL to a TileJSON configuration file describing the source’s contents and other metadata. |
|
|
11
|
-
| tileUrlTemplates | `Array` | `none` | `false` | An array of tile URL templates. If multiple endpoints are specified, clients may use any combination of endpoints.<br/>Example: https://example.com/raster-tiles/{z}/{x}/{y}.png |
|
|
12
|
-
| minZoomLevel | `number` | `none` | `false` | An unsigned integer that specifies the minimum zoom level at which to display tiles from the source.<br/>The value should be between 0 and 22, inclusive, and less than<br/>maxZoomLevel, if specified. The default value for this option is 0. |
|
|
13
|
-
| maxZoomLevel | `number` | `none` | `false` | An unsigned integer that specifies the maximum zoom level at which to display tiles from the source.<br/>The value should be between 0 and 22, inclusive, and less than<br/>minZoomLevel, if specified. The default value for this option is 22. |
|
|
14
|
-
| tileSize | `number` | `none` | `false` | Size of the map tiles.<br/>Mapbox urls default to 256, all others default to 512. |
|
|
15
|
-
| tms | `boolean` | `none` | `false` | Influences the y direction of the tile coordinates. (tms inverts y axis) |
|
|
16
|
-
| attribution | `string` | `none` | `false` | An HTML or literal text string defining the buttons to be displayed in an action sheet when the<br/>source is part of a map view’s style and the map view’s attribution button is pressed. |
|
|
17
|
-
| children | `React.ReactElement \| React.ReactElement[]` | `none` | `false` | FIX ME NO DESCRIPTION |
|
|
18
|
-
|
|
19
|
-
|