@maplibre/maplibre-react-native 10.0.0-alpha.27 → 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 +4 -0
- package/README.md +2 -2
- 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} +1 -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 +5 -5
- 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/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 -344
- package/scripts/templates/MaplibreStyles.ts.ejs +0 -102
- 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/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 -505
- 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/{javascript → src}/utils/styleMap.ts +0 -0
package/docs/ShapeSource.md
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
<!-- DO NOT MODIFY -->
|
|
2
|
-
<!-- This file is auto-generated from javascript/components/ShapeSource.tsx -->
|
|
3
|
-
# `<MapLibreGL.ShapeSource />`
|
|
4
|
-
ShapeSource is a map content source that supplies vector shapes to be shown on the map.<br/>The shape may be a url or a GeoJSON object
|
|
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` | An HTTP(S) URL, absolute file URL, or local file URL relative to the current application’s resource bundle. |
|
|
11
|
-
| shape | `GeoJSON.GeometryCollection \| GeoJSON.Feature \| GeoJSON.FeatureCollection \| GeoJSON.Geometry` | `none` | `false` | The contents of the source. A shape can represent a GeoJSON geometry, a feature, or a feature colllection. |
|
|
12
|
-
| cluster | `boolean` | `none` | `false` | Enables clustering on the source for point shapes. |
|
|
13
|
-
| clusterRadius | `number` | `none` | `false` | Specifies the radius of each cluster if clustering is enabled.<br/>A value of 512 produces a radius equal to the width of a tile.<br/>The default value is 50. |
|
|
14
|
-
| clusterMaxZoomLevel | `number` | `none` | `false` | Specifies the maximum zoom level at which to cluster points if clustering is enabled.<br/>Defaults to one zoom level less than the value of maxZoomLevel so that, at the maximum zoom level,<br/>the shapes are not clustered. |
|
|
15
|
-
| clusterProperties | `shape` | `none` | `false` | Specifies custom properties on the generated clusters if clustering<br/>is enabled, aggregating values from clustered points.<br/><br/>Has the form `{ "property_name": [operator, map_expression]}`, where<br/> `operator` is a custom reduce expression that references a special `["accumulated"]` value -<br/> it accumulates the property value from clusters/points the cluster contains<br/> `map_expression` produces the value of a single point<br/><br/>Example: `{ "resultingSum": [["+", ["accumulated"], ["get", "resultingSum"]], ["get", "scalerank"]] }` |
|
|
16
|
-
| [object Object] | `ExpressionField` | `none` | `true` | FIX ME NO DESCRIPTION |
|
|
17
|
-
| maxZoomLevel | `number` | `none` | `false` | Specifies the maximum zoom level at which to create vector tiles.<br/>A greater value produces greater detail at high zoom levels.<br/>The default value is 18. |
|
|
18
|
-
| buffer | `number` | `none` | `false` | Specifies the size of the tile buffer on each side.<br/>A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself.<br/>Larger values produce fewer rendering artifacts near tile edges and slower performance.<br/>The default value is 128. |
|
|
19
|
-
| tolerance | `number` | `none` | `false` | Specifies the Douglas-Peucker simplification tolerance.<br/>A greater value produces simpler geometries and improves performance.<br/>The default value is 0.375. |
|
|
20
|
-
| lineMetrics | `boolean` | `none` | `false` | Whether to calculate line distance metrics.<br/>This is required for line layers that specify lineGradient values.<br/>The default value is false. |
|
|
21
|
-
| onPress | `func` | `none` | `false` | Source press listener, gets called when a user presses one of the children layers only<br/>if that layer has a higher z-index than another source layers<br/><br/>@param {Object} event<br/>@param {Object[]} event.features - the geojson features that have hit by the press (might be multiple)<br/>@param {Object} event.coordinates - the coordinates of the click<br/>@param {Object} event.point - the point of the click<br/>@return void<br/>*signature:*`(event:OnPressEvent) => void` |
|
|
22
|
-
| hitbox | `shape` | `none` | `false` | Overrides the default touch hitbox(44x44 pixels) for the source layers |
|
|
23
|
-
| width | `number` | `none` | `true` | `width` of hitbox |
|
|
24
|
-
| height | `number` | `none` | `true` | `height` of hitbox |
|
|
25
|
-
| children | `ReactElement \| ReactElement[]` | `none` | `false` | FIX ME NO DESCRIPTION |
|
|
26
|
-
|
|
27
|
-
## Methods
|
|
28
|
-
### `features([filter])`
|
|
29
|
-
|
|
30
|
-
Returns all features from the source that match the query parameters regardless of whether or not the feature is<br/>currently rendered on the map.
|
|
31
|
-
|
|
32
|
-
#### Arguments
|
|
33
|
-
| Name | Type | Required | Description |
|
|
34
|
-
| ---- | :--: | :------: | :----------: |
|
|
35
|
-
| `filter` | `FilterExpression` | `No` | an optional filter statement to filter the returned Features. |
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
```javascript
|
|
40
|
-
shapeSource.features()
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
### `getClusterExpansionZoom(feature)`
|
|
45
|
-
|
|
46
|
-
Returns the zoom needed to expand the cluster.
|
|
47
|
-
|
|
48
|
-
#### Arguments
|
|
49
|
-
| Name | Type | Required | Description |
|
|
50
|
-
| ---- | :--: | :------: | :----------: |
|
|
51
|
-
| `feature` | `GeoJSON.Feature` | `Yes` | The feature cluster to expand. |
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
```javascript
|
|
56
|
-
const zoom = await shapeSource.getClusterExpansionZoom(clusterId);
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### `getClusterLeaves(feature, limit, offset)`
|
|
61
|
-
|
|
62
|
-
Returns the FeatureCollection from the cluster.
|
|
63
|
-
|
|
64
|
-
#### Arguments
|
|
65
|
-
| Name | Type | Required | Description |
|
|
66
|
-
| ---- | :--: | :------: | :----------: |
|
|
67
|
-
| `feature` | `GeoJSON.Feature` | `Yes` | The feature cluster to expand. |
|
|
68
|
-
| `limit` | `number` | `Yes` | The number of points to return. |
|
|
69
|
-
| `offset` | `number` | `Yes` | The amount of points to skip (for pagination). |
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
```javascript
|
|
74
|
-
const collection = await shapeSource.getClusterLeaves(clusterId, limit, offset);
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
### `getClusterChildren(feature)`
|
|
79
|
-
|
|
80
|
-
Returns the FeatureCollection from the cluster (on the next zoom level).
|
|
81
|
-
|
|
82
|
-
#### Arguments
|
|
83
|
-
| Name | Type | Required | Description |
|
|
84
|
-
| ---- | :--: | :------: | :----------: |
|
|
85
|
-
| `feature` | `GeoJSON.Feature` | `Yes` | The feature cluster to expand. |
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
```javascript
|
|
90
|
-
const collection = await shapeSource.getClusterChildren(clusterId);
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
### `onPress(event)`
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
#### Arguments
|
|
99
|
-
| Name | Type | Required | Description |
|
|
100
|
-
| ---- | :--: | :------: | :----------: |
|
|
101
|
-
| `event` | `NativeSyntheticEvent` | `Yes` | undefined |
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
package/docs/Style.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- DO NOT MODIFY -->
|
|
2
|
-
<!-- This file is auto-generated from javascript/components/Style.tsx -->
|
|
3
|
-
# `<MapLibreGL.Style />`
|
|
4
|
-
Style is a component that automatically adds sources / layers to the map using MapLibre Style Spec.<br/>Only [`sources`](https://maplibre.org/maplibre-gl-js-docs/style-spec/sources/) & [`layers`](https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/) are supported.<br/>Other fields such as `sprites`, `glyphs` etc. will be ignored. Not all layer / source attributes from the style spec are supported, in general the supported attributes will be mentioned under https://github.com/maplibre/maplibre-react-native/tree/main/docs.<br/><br/>TODO: Maintainer forking this project does not understand the above comment regarding what is supported.
|
|
5
|
-
|
|
6
|
-
## Props
|
|
7
|
-
| Prop | Type | Default | Required | Description |
|
|
8
|
-
| ---- | :--: | :-----: | :------: | :----------: |
|
|
9
|
-
| json | `MaplibreJSON \| URL` | `none` | `false` | A JSON object conforming to the schema described in the MapLibre Style Specification, or a URL to such JSON. |
|
|
10
|
-
|
|
11
|
-
|
package/docs/StyleSheet.md
DELETED
|
@@ -1,451 +0,0 @@
|
|
|
1
|
-
## StyleSheet
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Stylesheet is now a JS object, see [CHANGELOG.md](../CHANGELOG.md) for more details
|
|
5
|
-
|
|
6
|
-
See (MapLibre expression specs)[https://maplibre.org/maplibre-gl-js-docs/style-spec/expressions/] for reference on expressions.
|
|
7
|
-
|
|
8
|
-
### Style functions
|
|
9
|
-
|
|
10
|
-
#### zoom based expressions (replaces camera(stops[, interpolationMode]))
|
|
11
|
-
|
|
12
|
-
This is a value function defining a style value that changes as the zoom level changes. The layout and paint attribute properties of the layer can be set to style function objects. Use a camera function to create the illusion of depth and control data density.
|
|
13
|
-
|
|
14
|
-
new:
|
|
15
|
-
```js
|
|
16
|
-
// color would change based on zoom level keys.
|
|
17
|
-
[
|
|
18
|
-
'interpolate',
|
|
19
|
-
['exponential', 1.5],
|
|
20
|
-
['zoom'],
|
|
21
|
-
0, 'blue',
|
|
22
|
-
10, 'green',
|
|
23
|
-
20, 'yellow'
|
|
24
|
-
];
|
|
25
|
-
|
|
26
|
-
// Example of use inside stylesheet
|
|
27
|
-
{
|
|
28
|
-
fillColor: [
|
|
29
|
-
'step',
|
|
30
|
-
['zoom'],
|
|
31
|
-
'blue',
|
|
32
|
-
20, 'green'
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
old:
|
|
38
|
-
|
|
39
|
-
```js
|
|
40
|
-
// color would change based on zoom level keys.
|
|
41
|
-
MapLibreGL.StyleSheet.camera({
|
|
42
|
-
0: 'blue',
|
|
43
|
-
10: 'green',
|
|
44
|
-
20: 'yellow',
|
|
45
|
-
}, MapLibreGL.InterpolationMode.Exponential);
|
|
46
|
-
|
|
47
|
-
// Example of use inside stylesheet
|
|
48
|
-
MapLibreGL.StyleSheet.create({
|
|
49
|
-
fillColor: MapLibreGL.StyleSheet.camera({
|
|
50
|
-
15: 'blue',
|
|
51
|
-
20: 'green',
|
|
52
|
-
}, MapLibreGL.InterpolationMode.Interval),
|
|
53
|
-
});
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
#### attribute based expressions (replaces source(stops, attributeName[, interpolationMode]))
|
|
57
|
-
|
|
58
|
-
This is a value function defining a style value that changes with its properties. The layout and paint attribute properties of the layer can be set to style function objects. Use source functions to visually differentate types of features within the same layer or create data visualizations.
|
|
59
|
-
|
|
60
|
-
new:
|
|
61
|
-
```js
|
|
62
|
-
// would color the layer based the property rating=[1, 5]
|
|
63
|
-
[
|
|
64
|
-
'step',
|
|
65
|
-
['get', 'rating'],
|
|
66
|
-
'red',
|
|
67
|
-
2, 'orange',
|
|
68
|
-
3, 'yellow',
|
|
69
|
-
4, 'yellowgreen',
|
|
70
|
-
5, 'green',
|
|
71
|
-
];
|
|
72
|
-
|
|
73
|
-
// Example of use inside stylesheet
|
|
74
|
-
{
|
|
75
|
-
circleColor: [
|
|
76
|
-
'step',
|
|
77
|
-
['get', 'rating'],
|
|
78
|
-
'red',
|
|
79
|
-
2, 'orange',
|
|
80
|
-
3, 'yellow',
|
|
81
|
-
4, 'yellowgreen',
|
|
82
|
-
5, 'green',
|
|
83
|
-
],
|
|
84
|
-
}
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
old:
|
|
89
|
-
|
|
90
|
-
```js
|
|
91
|
-
// would color the layer based the property rating=[1, 5]
|
|
92
|
-
MapLibreGL.StyleSheet.source([
|
|
93
|
-
[1, 'red'],
|
|
94
|
-
[2, 'orange'],
|
|
95
|
-
[3, 'yellow'],
|
|
96
|
-
[4, 'yellowgreen'],
|
|
97
|
-
[5, 'green'],
|
|
98
|
-
], 'rating', MapLibreGL.InterpolationMode.Categorical);
|
|
99
|
-
|
|
100
|
-
// Example of use inside stylesheet
|
|
101
|
-
MapLibreGL.StyleSheet.create({
|
|
102
|
-
circleColor: MapLibreGL.StyleSheet.source([
|
|
103
|
-
[1, 'red'],
|
|
104
|
-
[2, 'orange'],
|
|
105
|
-
[3, 'yellow'],
|
|
106
|
-
[4, 'yellowgreen'],
|
|
107
|
-
[5, 'green'],
|
|
108
|
-
], 'rating', MapLibreGL.InterpolationMode.Categorical),
|
|
109
|
-
});
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
#### nested expressions (replaces composite(stops, attributeName[, interpolationMode]))
|
|
113
|
-
|
|
114
|
-
This is a value function defining a style value that changes with the feature attributes at each map zoom level. The layout and paint attribute properties of the layer can be set to style function objects. Use composite functions to allow the appearance of a map feature to change with both its attributes and the map zoom level. Note that support for composite functions is not yet complete in the Android/iOS SDK's.
|
|
115
|
-
|
|
116
|
-
new:
|
|
117
|
-
```js
|
|
118
|
-
// would change based on the zoom level and rating value
|
|
119
|
-
// {zoom_level}: [{value}, {style_value}]
|
|
120
|
-
[
|
|
121
|
-
'step',
|
|
122
|
-
['zoom'],
|
|
123
|
-
[
|
|
124
|
-
'step',
|
|
125
|
-
['get','rating'],
|
|
126
|
-
0,
|
|
127
|
-
5, 5
|
|
128
|
-
],
|
|
129
|
-
20, [
|
|
130
|
-
'step',
|
|
131
|
-
['get','rating'],
|
|
132
|
-
0,
|
|
133
|
-
5, 20
|
|
134
|
-
]
|
|
135
|
-
]
|
|
136
|
-
|
|
137
|
-
{
|
|
138
|
-
circleRadius: [
|
|
139
|
-
'step',
|
|
140
|
-
['zoom'],
|
|
141
|
-
[ 'step',
|
|
142
|
-
['get','rating'],
|
|
143
|
-
0,
|
|
144
|
-
5, 5
|
|
145
|
-
],
|
|
146
|
-
20, [ 'step',
|
|
147
|
-
['get','rating'],
|
|
148
|
-
0,
|
|
149
|
-
5, 20
|
|
150
|
-
],
|
|
151
|
-
]
|
|
152
|
-
};
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
old:
|
|
157
|
-
|
|
158
|
-
```js
|
|
159
|
-
// would change based on the zoom level and rating value
|
|
160
|
-
// {zoom_level}: [{value}, {style_value}]
|
|
161
|
-
MapLibreGL.StyleSheet.composite({
|
|
162
|
-
0: [0, 0],
|
|
163
|
-
0: [5, 5],
|
|
164
|
-
20: [0, 0],
|
|
165
|
-
20: [5, 20],
|
|
166
|
-
}, 'rating', MapLibreGL.InterpolationMode.Interval);
|
|
167
|
-
|
|
168
|
-
MapLibreGL.StyleSheet.create({
|
|
169
|
-
circleRadius: MapLibreGL.StyleSheet.composite({
|
|
170
|
-
0: [0, 0],
|
|
171
|
-
0: [5, 5],
|
|
172
|
-
20: [0, 0],
|
|
173
|
-
20: [5, 20],
|
|
174
|
-
}, 'rating', MapLibreGL.InterpolationMode.Interval),
|
|
175
|
-
});
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
### Simple expressions
|
|
179
|
-
|
|
180
|
-
#### ['get', attributeName] - replaces identity(attributeName)
|
|
181
|
-
|
|
182
|
-
This is just a source style function under the hood. For example say if you had a feature property with an attribute height. Identity means that it will just equal the attribute value, so there is no need to provide any stops
|
|
183
|
-
|
|
184
|
-
new:
|
|
185
|
-
```js
|
|
186
|
-
{
|
|
187
|
-
fillExtrusionHeight: ['get', 'height'],
|
|
188
|
-
}
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
old:
|
|
192
|
-
|
|
193
|
-
```js
|
|
194
|
-
MapLibreGL.StyleSheet.create({
|
|
195
|
-
fillExtrusionHeight: MapLibreGL.StyleSheet.identity('height'),
|
|
196
|
-
});
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
### StyleSheet Examples
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
#### new:
|
|
203
|
-
|
|
204
|
-
```js
|
|
205
|
-
const styles = {
|
|
206
|
-
buildings: {
|
|
207
|
-
fillColor: 'blue',
|
|
208
|
-
},
|
|
209
|
-
street: {
|
|
210
|
-
lineColor: 'green',
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
...
|
|
215
|
-
|
|
216
|
-
<MapLibreGL.FillLayer ... style={styles.buildings} />
|
|
217
|
-
<MapLibreGL.FillLayer ... style={styles.street} />
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
```js
|
|
221
|
-
const layerStyles = {
|
|
222
|
-
singlePoint: {
|
|
223
|
-
circleColor: 'green',
|
|
224
|
-
circleOpacity: 0.84,
|
|
225
|
-
circleStrokeWidth: 2,
|
|
226
|
-
circleStrokeColor: 'white',
|
|
227
|
-
circleRadius: 5,
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
clusteredPoints: {
|
|
231
|
-
circleColor: [
|
|
232
|
-
'interpolate',
|
|
233
|
-
['exponential', 1.5],
|
|
234
|
-
['get','point_count'],
|
|
235
|
-
25, 'yellow',
|
|
236
|
-
50, 'red',
|
|
237
|
-
75, 'blue',
|
|
238
|
-
100, 'orange',
|
|
239
|
-
300, 'pink',
|
|
240
|
-
750, 'white',
|
|
241
|
-
],
|
|
242
|
-
|
|
243
|
-
circleRadius: [
|
|
244
|
-
'interpolate',
|
|
245
|
-
['exponential', 1.5],
|
|
246
|
-
['get','point_count'],
|
|
247
|
-
[0, 15],
|
|
248
|
-
[100, 20],
|
|
249
|
-
[750, 30],
|
|
250
|
-
],
|
|
251
|
-
|
|
252
|
-
circleOpacity: 0.84,
|
|
253
|
-
circleStrokeWidth: 2,
|
|
254
|
-
circleStrokeColor: 'white',
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
clusterCount: {
|
|
258
|
-
textField: ['get', 'point_count'],
|
|
259
|
-
textSize: 12,
|
|
260
|
-
},
|
|
261
|
-
});
|
|
262
|
-
|
|
263
|
-
...
|
|
264
|
-
|
|
265
|
-
<MapLibreGL.SymbolLayer
|
|
266
|
-
id='pointCount'
|
|
267
|
-
style={layerStyles.clusterCount} />
|
|
268
|
-
|
|
269
|
-
<MapLibreGL.CircleLayer
|
|
270
|
-
id='clusteredPoints'
|
|
271
|
-
belowLayerID='pointCount'
|
|
272
|
-
filter={['has', 'point_count']}
|
|
273
|
-
style={layerStyles.clusteredPoints} />
|
|
274
|
-
|
|
275
|
-
<MapLibreGL.CircleLayer
|
|
276
|
-
id='singlePoint'
|
|
277
|
-
filter={['!has', 'point_count']}
|
|
278
|
-
style={layerStyles.singlePoint} />
|
|
279
|
-
```
|
|
280
|
-
|
|
281
|
-
```javascript
|
|
282
|
-
const layerStyles = MapLibreGL.StyleSheet.create({
|
|
283
|
-
building: {
|
|
284
|
-
fillExtrusionOpacity: 1,
|
|
285
|
-
fillExtrusionHeight: ['get', 'height'],
|
|
286
|
-
fillExtrusionBase: ['get', 'min_height'],
|
|
287
|
-
fillExtrusionColor: [
|
|
288
|
-
'interpolate',
|
|
289
|
-
['exponential', 1.5],
|
|
290
|
-
['get', 'height'],
|
|
291
|
-
[0, 'white'],
|
|
292
|
-
[50, 'blue'],
|
|
293
|
-
[100, 'red'],
|
|
294
|
-
],
|
|
295
|
-
},
|
|
296
|
-
fillExtrusionColorTransition: { duration: 2000, delay: 0 },
|
|
297
|
-
},
|
|
298
|
-
streets
|
|
299
|
-
:
|
|
300
|
-
{
|
|
301
|
-
lineColor: 'blue',
|
|
302
|
-
lineWidth
|
|
303
|
-
:
|
|
304
|
-
2,
|
|
305
|
-
lineOpacity
|
|
306
|
-
:
|
|
307
|
-
0.50,
|
|
308
|
-
lineJoin
|
|
309
|
-
:
|
|
310
|
-
MapLibreGL.LineJoin.Round,
|
|
311
|
-
lineCap
|
|
312
|
-
:
|
|
313
|
-
MapLibreGL.LineCap.Round,
|
|
314
|
-
lineDasharray
|
|
315
|
-
:
|
|
316
|
-
[2, 2],
|
|
317
|
-
}
|
|
318
|
-
,
|
|
319
|
-
})
|
|
320
|
-
;
|
|
321
|
-
|
|
322
|
-
...
|
|
323
|
-
|
|
324
|
-
<MapLibreGL.FillExtrusionLayer
|
|
325
|
-
id='building3d'
|
|
326
|
-
sourceLayerID='building'
|
|
327
|
-
style={layerStyles.building}/>
|
|
328
|
-
|
|
329
|
-
<MapLibreGL.LineLayer
|
|
330
|
-
id='streetLineColor'
|
|
331
|
-
sourceLayerID='road'
|
|
332
|
-
minZoomLevel={14}
|
|
333
|
-
belowLayerID='building3d'
|
|
334
|
-
style={layerStyles.streets}/>
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
#### old:
|
|
338
|
-
|
|
339
|
-
```js
|
|
340
|
-
const styles = MapLibreGL.StyleSheet.create({
|
|
341
|
-
buildings: {
|
|
342
|
-
fillColor: 'blue',
|
|
343
|
-
},
|
|
344
|
-
street: {
|
|
345
|
-
lineColor: 'green',
|
|
346
|
-
}
|
|
347
|
-
});
|
|
348
|
-
|
|
349
|
-
...
|
|
350
|
-
|
|
351
|
-
<MapLibreGL.FillLayer ...
|
|
352
|
-
style = { styles.buildings }
|
|
353
|
-
/>
|
|
354
|
-
<MapLibreGL.FillLayer ...
|
|
355
|
-
style = { styles.street }
|
|
356
|
-
/>
|
|
357
|
-
```
|
|
358
|
-
|
|
359
|
-
```js
|
|
360
|
-
const layerStyles = MapLibreGL.StyleSheet.create({
|
|
361
|
-
singlePoint: {
|
|
362
|
-
circleColor: 'green',
|
|
363
|
-
circleOpacity: 0.84,
|
|
364
|
-
circleStrokeWidth: 2,
|
|
365
|
-
circleStrokeColor: 'white',
|
|
366
|
-
circleRadius: 5,
|
|
367
|
-
},
|
|
368
|
-
|
|
369
|
-
clusteredPoints: {
|
|
370
|
-
circleColor: MapLibreGL.StyleSheet.source([
|
|
371
|
-
[25, 'yellow'],
|
|
372
|
-
[50, 'red'],
|
|
373
|
-
[75, 'blue'],
|
|
374
|
-
[100, 'orange'],
|
|
375
|
-
[300, 'pink'],
|
|
376
|
-
[750, 'white'],
|
|
377
|
-
], 'point_count', MapLibreGL.InterpolationMode.Exponential),
|
|
378
|
-
|
|
379
|
-
circleRadius: MapLibreGL.StyleSheet.source([
|
|
380
|
-
[0, 15],
|
|
381
|
-
[100, 20],
|
|
382
|
-
[750, 30],
|
|
383
|
-
], 'point_count', MapLibreGL.InterpolationMode.Exponential),
|
|
384
|
-
|
|
385
|
-
circleOpacity: 0.84,
|
|
386
|
-
circleStrokeWidth: 2,
|
|
387
|
-
circleStrokeColor: 'white',
|
|
388
|
-
},
|
|
389
|
-
|
|
390
|
-
clusterCount: {
|
|
391
|
-
textField: '{point_count}',
|
|
392
|
-
textSize: 12,
|
|
393
|
-
},
|
|
394
|
-
});
|
|
395
|
-
|
|
396
|
-
...
|
|
397
|
-
|
|
398
|
-
<MapLibreGL.SymbolLayer
|
|
399
|
-
id='pointCount'
|
|
400
|
-
style={layerStyles.clusterCount}/>
|
|
401
|
-
|
|
402
|
-
<MapLibreGL.CircleLayer
|
|
403
|
-
id='clusteredPoints'
|
|
404
|
-
belowLayerID='pointCount'
|
|
405
|
-
filter={['has', 'point_count']}
|
|
406
|
-
style={layerStyles.clusteredPoints}/>
|
|
407
|
-
|
|
408
|
-
<MapLibreGL.CircleLayer
|
|
409
|
-
id='singlePoint'
|
|
410
|
-
filter={['!has', 'point_count']}
|
|
411
|
-
style={layerStyles.singlePoint}/>
|
|
412
|
-
```
|
|
413
|
-
|
|
414
|
-
```javascript
|
|
415
|
-
const layerStyles = MapLibreGL.StyleSheet.create({
|
|
416
|
-
building: {
|
|
417
|
-
fillExtrusionOpacity: 1,
|
|
418
|
-
fillExtrusionHeight: MapLibreGL.StyleSheet.identity('height'),
|
|
419
|
-
fillExtrusionBase: MapLibreGL.StyleSheet.identity('min_height'),
|
|
420
|
-
fillExtrusionColor: MapLibreGL.StyleSheet.source([
|
|
421
|
-
[0, 'white'],
|
|
422
|
-
[50, 'blue'],
|
|
423
|
-
[100, 'red'],
|
|
424
|
-
], 'height', MapLibreGL.InterpolationMode.Exponential),
|
|
425
|
-
fillExtrusionColorTransition: { duration: 2000, delay: 0 },
|
|
426
|
-
},
|
|
427
|
-
streets: {
|
|
428
|
-
lineColor: 'blue',
|
|
429
|
-
lineWidth: 2,
|
|
430
|
-
lineOpacity: 0.50,
|
|
431
|
-
lineJoin: MapLibreGL.LineJoin.Round,
|
|
432
|
-
lineCap: MapLibreGL.LineCap.Round,
|
|
433
|
-
lineDasharray: [2, 2],
|
|
434
|
-
},
|
|
435
|
-
});
|
|
436
|
-
|
|
437
|
-
...
|
|
438
|
-
|
|
439
|
-
<MapLibreGL.FillExtrusionLayer
|
|
440
|
-
id='building3d'
|
|
441
|
-
sourceLayerID='building'
|
|
442
|
-
style={layerStyles.building} />
|
|
443
|
-
|
|
444
|
-
<MapLibreGL.LineLayer
|
|
445
|
-
id='streetLineColor'
|
|
446
|
-
sourceLayerID='road'
|
|
447
|
-
minZoomLevel={14}
|
|
448
|
-
belowLayerID='building3d'
|
|
449
|
-
style={layerStyles.streets} />
|
|
450
|
-
```
|
|
451
|
-
|