@rnmapbox/maps 10.0.0-beta.49 → 10.0.0-beta.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/.gitignore +9 -0
- package/android/.npmignore +9 -0
- package/android/rctmgl/.gitignore +1 -0
- package/android/rctmgl/.npmignore +1 -0
- package/android/rctmgl/src/main/java-mapboxgl/common/com/mapbox/rctmgl/modules/RCTMGLModule.java +2 -1
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/modules/RCTMGLModule.kt +3 -1
- package/index.d.ts +1 -1
- package/ios/RCTMGL/MGLModule.m +2 -1
- package/ios/RCTMGL-v10/MGLModule.m +3 -1
- package/ios/RCTMGL-v10/MGLModule.swift +15 -2
- package/javascript/components/AbstractLayer.tsx +2 -1
- package/javascript/components/Camera.tsx +1 -2
- package/javascript/index.js +2 -2
- package/javascript/requestAndroidLocationPermissions.ts +1 -2
- package/javascript/utils/{MapboxStyles.ts → MapboxStyles.d.ts} +0 -0
- package/javascript/utils/StyleValue.ts +3 -8
- package/lib/commonjs/classes/AnimatedCoordinatesArray.js +165 -0
- package/lib/commonjs/classes/AnimatedCoordinatesArray.js.map +1 -0
- package/lib/commonjs/classes/AnimatedExtractCoordinateFromArray.js +44 -0
- package/lib/commonjs/classes/AnimatedExtractCoordinateFromArray.js.map +1 -0
- package/lib/commonjs/classes/AnimatedPoint.js +117 -0
- package/lib/commonjs/classes/AnimatedPoint.js.map +1 -0
- package/lib/commonjs/classes/AnimatedRouteCoordinatesArray.js +155 -0
- package/lib/commonjs/classes/AnimatedRouteCoordinatesArray.js.map +1 -0
- package/lib/commonjs/classes/AnimatedShape.js +78 -0
- package/lib/commonjs/classes/AnimatedShape.js.map +1 -0
- package/lib/commonjs/classes/index.d.js +17 -0
- package/lib/commonjs/classes/index.d.js.map +1 -0
- package/lib/commonjs/classes/index.js +61 -0
- package/lib/commonjs/classes/index.js.map +1 -0
- package/lib/commonjs/components/AbstractLayer.js +61 -0
- package/lib/commonjs/components/AbstractLayer.js.map +1 -0
- package/lib/commonjs/components/AbstractSource.js +26 -0
- package/lib/commonjs/components/AbstractSource.js.map +1 -0
- package/lib/commonjs/components/Atmosphere.js +26 -0
- package/lib/commonjs/components/Atmosphere.js.map +1 -0
- package/lib/commonjs/components/BackgroundLayer.js +82 -0
- package/lib/commonjs/components/BackgroundLayer.js.map +1 -0
- package/lib/commonjs/components/Callout.js +119 -0
- package/lib/commonjs/components/Callout.js.map +1 -0
- package/lib/commonjs/components/Camera.js +336 -0
- package/lib/commonjs/components/Camera.js.map +1 -0
- package/lib/commonjs/components/CircleLayer.js +87 -0
- package/lib/commonjs/components/CircleLayer.js.map +1 -0
- package/lib/commonjs/components/FillExtrusionLayer.js +89 -0
- package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -0
- package/lib/commonjs/components/FillLayer.js +89 -0
- package/lib/commonjs/components/FillLayer.js.map +1 -0
- package/lib/commonjs/components/HeadingIndicator.js +33 -0
- package/lib/commonjs/components/HeadingIndicator.js.map +1 -0
- package/lib/commonjs/components/HeatmapLayer.js +90 -0
- package/lib/commonjs/components/HeatmapLayer.js.map +1 -0
- package/lib/commonjs/components/ImageSource.js +66 -0
- package/lib/commonjs/components/ImageSource.js.map +1 -0
- package/lib/commonjs/components/Images.js +98 -0
- package/lib/commonjs/components/Images.js.map +1 -0
- package/lib/commonjs/components/Light.js +51 -0
- package/lib/commonjs/components/Light.js.map +1 -0
- package/lib/commonjs/components/LineLayer.js +89 -0
- package/lib/commonjs/components/LineLayer.js.map +1 -0
- package/lib/commonjs/components/MapView.js +740 -0
- package/lib/commonjs/components/MapView.js.map +1 -0
- package/lib/commonjs/components/MarkerView.js +102 -0
- package/lib/commonjs/components/MarkerView.js.map +1 -0
- package/lib/commonjs/components/NativeBridgeComponent.js +85 -0
- package/lib/commonjs/components/NativeBridgeComponent.js.map +1 -0
- package/lib/commonjs/components/NativeUserLocation.js +41 -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/RasterDemSource.js +95 -0
- package/lib/commonjs/components/RasterDemSource.js.map +1 -0
- package/lib/commonjs/components/RasterLayer.js +85 -0
- package/lib/commonjs/components/RasterLayer.js.map +1 -0
- package/lib/commonjs/components/RasterSource.js +112 -0
- package/lib/commonjs/components/RasterSource.js.map +1 -0
- package/lib/commonjs/components/ShapeSource.js +193 -0
- package/lib/commonjs/components/ShapeSource.js.map +1 -0
- package/lib/commonjs/components/SkyLayer.js +73 -0
- package/lib/commonjs/components/SkyLayer.js.map +1 -0
- package/lib/commonjs/components/Style.js +269 -0
- package/lib/commonjs/components/Style.js.map +1 -0
- package/lib/commonjs/components/SymbolLayer.js +49 -0
- package/lib/commonjs/components/SymbolLayer.js.map +1 -0
- package/lib/commonjs/components/Terrain.js +37 -0
- package/lib/commonjs/components/Terrain.js.map +1 -0
- package/lib/commonjs/components/UserLocation.js +255 -0
- package/lib/commonjs/components/UserLocation.js.map +1 -0
- package/lib/commonjs/components/VectorSource.js +175 -0
- package/lib/commonjs/components/VectorSource.js.map +1 -0
- package/lib/commonjs/components/annotations/Annotation.js +105 -0
- package/lib/commonjs/components/annotations/Annotation.js.map +1 -0
- package/lib/commonjs/global.d.js +2 -0
- package/lib/commonjs/global.d.js.map +1 -0
- package/lib/commonjs/index.js +331 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/index.web.js +27 -0
- package/lib/commonjs/index.web.js.map +1 -0
- package/lib/commonjs/modules/location/locationManager.js +85 -0
- package/lib/commonjs/modules/location/locationManager.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +45 -0
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflinePack.js +41 -0
- package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -0
- package/lib/commonjs/modules/offline/offlineManager.js +356 -0
- package/lib/commonjs/modules/offline/offlineManager.js.map +1 -0
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js +60 -0
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -0
- package/lib/commonjs/modules/snapshot/snapshotManager.js +68 -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/index.js +6 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/utils/BridgeValue.js +66 -0
- package/lib/commonjs/utils/BridgeValue.js.map +1 -0
- package/lib/commonjs/utils/Logger.js +119 -0
- package/lib/commonjs/utils/Logger.js.map +1 -0
- package/lib/commonjs/utils/MapboxStyles.d.js +183 -0
- package/lib/commonjs/utils/MapboxStyles.d.js.map +1 -0
- package/lib/commonjs/utils/StyleValue.js +41 -0
- package/lib/commonjs/utils/StyleValue.js.map +1 -0
- package/lib/commonjs/utils/animated/Animated.js +33 -0
- package/lib/commonjs/utils/animated/Animated.js.map +1 -0
- package/lib/commonjs/utils/deprecation.js +40 -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/geoUtils.d.js +2 -0
- package/lib/commonjs/utils/geoUtils.d.js.map +1 -0
- package/lib/commonjs/utils/geoUtils.js +65 -0
- package/lib/commonjs/utils/geoUtils.js.map +1 -0
- package/lib/commonjs/utils/index.d.js +2 -0
- package/lib/commonjs/utils/index.d.js.map +1 -0
- package/lib/commonjs/utils/index.js +122 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/commonjs/utils/styleMap.js +1530 -0
- package/lib/commonjs/utils/styleMap.js.map +1 -0
- package/lib/commonjs/web/MapContext.js +12 -0
- package/lib/commonjs/web/MapContext.js.map +1 -0
- package/lib/commonjs/web/MapboxModule.js +21 -0
- package/lib/commonjs/web/MapboxModule.js.map +1 -0
- package/lib/commonjs/web/UnimplementedComponent.js +16 -0
- package/lib/commonjs/web/UnimplementedComponent.js.map +1 -0
- package/lib/commonjs/web/components/Camera.js +48 -0
- package/lib/commonjs/web/components/Camera.js.map +1 -0
- package/lib/commonjs/web/components/MapView.js +67 -0
- package/lib/commonjs/web/components/MapView.js.map +1 -0
- package/lib/commonjs/web/index.js +41 -0
- package/lib/commonjs/web/index.js.map +1 -0
- package/lib/commonjs/web/utils/Logger.js +100 -0
- package/lib/commonjs/web/utils/Logger.js.map +1 -0
- package/lib/module/classes/AnimatedCoordinatesArray.js +158 -0
- package/lib/module/classes/AnimatedCoordinatesArray.js.map +1 -0
- package/lib/module/classes/AnimatedExtractCoordinateFromArray.js +37 -0
- package/lib/module/classes/AnimatedExtractCoordinateFromArray.js.map +1 -0
- package/lib/module/classes/AnimatedPoint.js +110 -0
- package/lib/module/classes/AnimatedPoint.js.map +1 -0
- package/lib/module/classes/AnimatedRouteCoordinatesArray.js +148 -0
- package/lib/module/classes/AnimatedRouteCoordinatesArray.js.map +1 -0
- package/lib/module/classes/AnimatedShape.js +71 -0
- package/lib/module/classes/AnimatedShape.js.map +1 -0
- package/lib/module/classes/index.d.js +6 -0
- package/lib/module/classes/index.d.js.map +1 -0
- package/lib/module/classes/index.js +6 -0
- package/lib/module/classes/index.js.map +1 -0
- package/lib/module/components/AbstractLayer.js +54 -0
- package/lib/module/components/AbstractLayer.js.map +1 -0
- package/lib/module/components/AbstractSource.js +18 -0
- package/lib/module/components/AbstractSource.js.map +1 -0
- package/lib/module/components/Atmosphere.js +16 -0
- package/lib/module/components/Atmosphere.js.map +1 -0
- package/lib/module/components/BackgroundLayer.js +73 -0
- package/lib/module/components/BackgroundLayer.js.map +1 -0
- package/lib/module/components/Callout.js +110 -0
- package/lib/module/components/Callout.js.map +1 -0
- package/lib/module/components/Camera.js +326 -0
- package/lib/module/components/Camera.js.map +1 -0
- package/lib/module/components/CircleLayer.js +78 -0
- package/lib/module/components/CircleLayer.js.map +1 -0
- package/lib/module/components/FillExtrusionLayer.js +80 -0
- package/lib/module/components/FillExtrusionLayer.js.map +1 -0
- package/lib/module/components/FillLayer.js +80 -0
- package/lib/module/components/FillLayer.js.map +1 -0
- package/lib/module/components/HeadingIndicator.js +25 -0
- package/lib/module/components/HeadingIndicator.js.map +1 -0
- package/lib/module/components/HeatmapLayer.js +81 -0
- package/lib/module/components/HeatmapLayer.js.map +1 -0
- package/lib/module/components/ImageSource.js +57 -0
- package/lib/module/components/ImageSource.js.map +1 -0
- package/lib/module/components/Images.js +89 -0
- package/lib/module/components/Images.js.map +1 -0
- package/lib/module/components/Light.js +42 -0
- package/lib/module/components/Light.js.map +1 -0
- package/lib/module/components/LineLayer.js +80 -0
- package/lib/module/components/LineLayer.js.map +1 -0
- package/lib/module/components/MapView.js +730 -0
- package/lib/module/components/MapView.js.map +1 -0
- package/lib/module/components/MarkerView.js +93 -0
- package/lib/module/components/MarkerView.js.map +1 -0
- package/lib/module/components/NativeBridgeComponent.js +78 -0
- package/lib/module/components/NativeBridgeComponent.js.map +1 -0
- package/lib/module/components/NativeUserLocation.js +33 -0
- package/lib/module/components/NativeUserLocation.js.map +1 -0
- package/lib/module/components/PointAnnotation.js +112 -0
- package/lib/module/components/PointAnnotation.js.map +1 -0
- package/lib/module/components/RasterDemSource.js +86 -0
- package/lib/module/components/RasterDemSource.js.map +1 -0
- package/lib/module/components/RasterLayer.js +76 -0
- package/lib/module/components/RasterLayer.js.map +1 -0
- package/lib/module/components/RasterSource.js +103 -0
- package/lib/module/components/RasterSource.js.map +1 -0
- package/lib/module/components/ShapeSource.js +184 -0
- package/lib/module/components/ShapeSource.js.map +1 -0
- package/lib/module/components/SkyLayer.js +64 -0
- package/lib/module/components/SkyLayer.js.map +1 -0
- package/lib/module/components/Style.js +259 -0
- package/lib/module/components/Style.js.map +1 -0
- package/lib/module/components/SymbolLayer.js +40 -0
- package/lib/module/components/SymbolLayer.js.map +1 -0
- package/lib/module/components/Terrain.js +27 -0
- package/lib/module/components/Terrain.js.map +1 -0
- package/lib/module/components/UserLocation.js +246 -0
- package/lib/module/components/UserLocation.js.map +1 -0
- package/lib/module/components/VectorSource.js +166 -0
- package/lib/module/components/VectorSource.js.map +1 -0
- package/lib/module/components/annotations/Annotation.js +97 -0
- package/lib/module/components/annotations/Annotation.js.map +1 -0
- package/lib/module/global.d.js +2 -0
- package/lib/module/global.d.js.map +1 -0
- package/lib/module/index.js +105 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/index.web.js +3 -0
- package/lib/module/index.web.js.map +1 -0
- package/lib/module/modules/location/locationManager.js +77 -0
- package/lib/module/modules/location/locationManager.js.map +1 -0
- package/lib/module/modules/offline/OfflineCreatePackOptions.js +38 -0
- package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -0
- package/lib/module/modules/offline/OfflinePack.js +34 -0
- package/lib/module/modules/offline/OfflinePack.js.map +1 -0
- package/lib/module/modules/offline/offlineManager.js +347 -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 +60 -0
- package/lib/module/modules/snapshot/snapshotManager.js.map +1 -0
- package/lib/module/requestAndroidLocationPermissions.js +19 -0
- package/lib/module/requestAndroidLocationPermissions.js.map +1 -0
- package/lib/module/types/index.js +2 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/utils/BridgeValue.js +59 -0
- package/lib/module/utils/BridgeValue.js.map +1 -0
- package/lib/module/utils/Logger.js +112 -0
- package/lib/module/utils/Logger.js.map +1 -0
- package/lib/module/utils/MapboxStyles.d.js +179 -0
- package/lib/module/utils/MapboxStyles.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/Animated.js +25 -0
- package/lib/module/utils/animated/Animated.js.map +1 -0
- package/lib/module/utils/deprecation.js +33 -0
- package/lib/module/utils/deprecation.js.map +1 -0
- package/lib/module/utils/filterUtils.js +7 -0
- package/lib/module/utils/filterUtils.js.map +1 -0
- package/lib/module/utils/geoUtils.d.js +2 -0
- package/lib/module/utils/geoUtils.d.js.map +1 -0
- package/lib/module/utils/geoUtils.js +50 -0
- package/lib/module/utils/geoUtils.js.map +1 -0
- package/lib/module/utils/index.d.js +2 -0
- package/lib/module/utils/index.d.js.map +1 -0
- package/lib/module/utils/index.js +99 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/module/utils/styleMap.js +1505 -0
- package/lib/module/utils/styleMap.js.map +1 -0
- package/lib/module/web/MapContext.js +4 -0
- package/lib/module/web/MapContext.js.map +1 -0
- package/lib/module/web/MapboxModule.js +13 -0
- package/lib/module/web/MapboxModule.js.map +1 -0
- package/lib/module/web/UnimplementedComponent.js +8 -0
- package/lib/module/web/UnimplementedComponent.js.map +1 -0
- package/lib/module/web/components/Camera.js +40 -0
- package/lib/module/web/components/Camera.js.map +1 -0
- package/lib/module/web/components/MapView.js +60 -0
- package/lib/module/web/components/MapView.js.map +1 -0
- package/lib/module/web/index.js +16 -0
- package/lib/module/web/index.js.map +1 -0
- package/lib/module/web/utils/Logger.js +93 -0
- package/lib/module/web/utils/Logger.js.map +1 -0
- package/lib/typescript/components/AbstractLayer.d.ts +28 -0
- package/lib/typescript/components/AbstractLayer.d.ts.map +1 -0
- package/lib/typescript/components/AbstractSource.d.ts +9 -0
- package/lib/typescript/components/AbstractSource.d.ts.map +1 -0
- package/lib/typescript/components/Atmosphere.d.ts +9 -0
- package/lib/typescript/components/Atmosphere.d.ts.map +1 -0
- package/lib/typescript/components/Camera.d.ts +119 -0
- package/lib/typescript/components/Camera.d.ts.map +1 -0
- package/lib/typescript/components/HeadingIndicator.d.ts +7 -0
- package/lib/typescript/components/HeadingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/MarkerView.d.ts +52 -0
- package/lib/typescript/components/MarkerView.d.ts.map +1 -0
- package/lib/typescript/components/NativeBridgeComponent.d.ts +50 -0
- package/lib/typescript/components/NativeBridgeComponent.d.ts.map +1 -0
- package/lib/typescript/components/PointAnnotation.d.ts +162 -0
- package/lib/typescript/components/PointAnnotation.d.ts.map +1 -0
- package/lib/typescript/components/ShapeSource.d.ts +222 -0
- package/lib/typescript/components/ShapeSource.d.ts.map +1 -0
- package/lib/typescript/components/SymbolLayer.d.ts +65 -0
- package/lib/typescript/components/SymbolLayer.d.ts.map +1 -0
- package/lib/typescript/components/Terrain.d.ts +20 -0
- package/lib/typescript/components/Terrain.d.ts.map +1 -0
- package/lib/typescript/requestAndroidLocationPermissions.d.ts +2 -0
- package/lib/typescript/requestAndroidLocationPermissions.d.ts.map +1 -0
- package/lib/typescript/types/index.d.ts +16 -0
- package/lib/typescript/types/index.d.ts.map +1 -0
- package/lib/typescript/utils/BridgeValue.d.ts +46 -0
- package/lib/typescript/utils/BridgeValue.d.ts.map +1 -0
- package/lib/typescript/utils/StyleValue.d.ts +10 -0
- package/lib/typescript/utils/StyleValue.d.ts.map +1 -0
- package/lib/typescript/utils/deprecation.d.ts +12 -0
- package/lib/typescript/utils/deprecation.d.ts.map +1 -0
- package/lib/typescript/utils/filterUtils.d.ts +2 -0
- package/lib/typescript/utils/filterUtils.d.ts.map +1 -0
- package/lib/typescript/utils/styleMap.d.ts +1489 -0
- package/lib/typescript/utils/styleMap.d.ts.map +1 -0
- package/lib/typescript/web/MapContext.d.ts +7 -0
- package/lib/typescript/web/MapContext.d.ts.map +1 -0
- package/lib/typescript/web/components/Camera.d.ts +18 -0
- package/lib/typescript/web/components/Camera.d.ts.map +1 -0
- package/lib/typescript/web/components/MapView.d.ts +20 -0
- package/lib/typescript/web/components/MapView.d.ts.map +1 -0
- package/lib/typescript/web/utils/Logger.d.ts +48 -0
- package/lib/typescript/web/utils/Logger.d.ts.map +1 -0
- package/package.json +38 -6
- package/plugin/jest.config.js +1 -0
- package/plugin/src/withMapbox.ts +365 -0
- package/plugin/tsconfig.json +9 -0
- package/.eslintrc.js +0 -111
- package/.gitattributes +0 -1
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -112
- package/.github/ISSUE_TEMPLATE/bug_setup.md +0 -23
- package/.github/ISSUE_TEMPLATE/feature.md +0 -15
- package/.github/dependabot.yml +0 -42
- package/.github/label-actions.yml +0 -26
- package/.github/pull_request_template.md +0 -27
- package/.github/stale.yml +0 -11
- package/.github/workflows/android-actions.yml +0 -56
- package/.github/workflows/bump-version.yml +0 -54
- package/.github/workflows/ios-actions.yml +0 -81
- package/.github/workflows/label-actions.yml +0 -17
- package/.github/workflows/on-push.yml +0 -131
- package/.github/workflows/publish.yml +0 -29
- package/.husky/pre-commit +0 -5
- package/.nvmrc +0 -2
- package/.prettierrc.js +0 -4
- package/.sonarcloud.properties +0 -15
- package/CONTRIBUTING.md +0 -30
- package/README-v10.md +0 -86
- package/RELEASE.md +0 -28
- package/app.plugin.js +0 -1
- package/babel.config.js +0 -9
- package/docs/Annotation.md +0 -39
- package/docs/Annotations.md +0 -20
- package/docs/Atmosphere.md +0 -265
- package/docs/BackgroundLayer.md +0 -166
- package/docs/Callout.md +0 -15
- package/docs/Camera.md +0 -152
- package/docs/CircleLayer.md +0 -470
- package/docs/CustomHttpHeaders.md +0 -89
- package/docs/FillExtrusionLayer.md +0 -346
- package/docs/FillLayer.md +0 -310
- package/docs/GettingStarted.md +0 -87
- package/docs/HeadingIndicator.md +0 -10
- package/docs/HeatmapLayer.md +0 -215
- package/docs/ImageSource.md +0 -13
- package/docs/Images.md +0 -12
- package/docs/Light.md +0 -159
- package/docs/LineLayer.md +0 -606
- package/docs/Logger.md +0 -22
- package/docs/MapView.md +0 -228
- package/docs/MapboxGL.md +0 -83
- package/docs/MarkerView.md +0 -26
- package/docs/NativeUserLocation.md +0 -11
- package/docs/OfflineManager.md +0 -264
- package/docs/PointAnnotation.md +0 -42
- package/docs/RasterDemSource.md +0 -15
- package/docs/RasterLayer.md +0 -357
- package/docs/RasterSource.md +0 -19
- package/docs/ShapeSource.md +0 -106
- package/docs/SkyLayer.md +0 -259
- package/docs/Style.md +0 -12
- package/docs/StyleSheet.md +0 -226
- package/docs/SymbolLayer.md +0 -1659
- package/docs/Terrain.md +0 -77
- package/docs/UserLocation.md +0 -39
- package/docs/VectorSource.md +0 -49
- package/docs/docs.json +0 -6571
- package/docs/snapshotManager.md +0 -55
- package/scripts/.eslintrc.js +0 -12
- package/scripts/autogenHelpers/DocJSONBuilder.js +0 -458
- package/scripts/autogenHelpers/JSDocNodeTree.js +0 -134
- package/scripts/autogenHelpers/MarkdownBuilder.js +0 -38
- package/scripts/autogenHelpers/globals.js +0 -518
- package/scripts/autogenerate.js +0 -545
- package/scripts/download-style-spec.sh +0 -15
- package/scripts/templates/MapboxStyles.ts.ejs +0 -97
- package/scripts/templates/RCTMGLStyle.h.ejs +0 -34
- package/scripts/templates/RCTMGLStyle.m.ejs +0 -106
- package/scripts/templates/RCTMGLStyle.swift.ejs +0 -116
- package/scripts/templates/RCTMGLStyleFactory.java.ejs +0 -108
- package/scripts/templates/RCTMGLStyleFactoryv10.java.ejs +0 -116
- package/scripts/templates/component.md.ejs +0 -122
- package/scripts/templates/index.d.ts.ejs +0 -56
- package/scripts/templates/styleMap.ts.ejs +0 -118
- package/setup-jest.js +0 -125
- package/style-spec/v8.json +0 -6727
- package/tsconfig.json +0 -24
package/docs/RasterLayer.md
DELETED
|
@@ -1,357 +0,0 @@
|
|
|
1
|
-
<!-- This file was autogenerated from RasterLayer.js do not modify -->
|
|
2
|
-
# <MapboxGL.RasterLayer />
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## props
|
|
6
|
-
| Prop | Type | Default | Required | Description |
|
|
7
|
-
| ---- | :-- | :----- | :------ | :---------- |
|
|
8
|
-
| id | `string` | `none` | `true` | A string that uniquely identifies the source in the style to which it is added. |
|
|
9
|
-
| sourceID | `string` | `MapboxGL.StyleSource.DefaultSourceID` | `false` | The source from which to obtain the data to style.<br/>If the source has not yet been added to the current style, the behavior is undefined.<br/>Inferred from parent source only if the layer is a direct child to it. |
|
|
10
|
-
| sourceLayerID | `string` | `none` | `false` | Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style. |
|
|
11
|
-
| aboveLayerID | `string` | `none` | `false` | Inserts a layer above aboveLayerID. |
|
|
12
|
-
| belowLayerID | `string` | `none` | `false` | Inserts a layer below belowLayerID |
|
|
13
|
-
| layerIndex | `number` | `none` | `false` | Inserts a layer at a specified index |
|
|
14
|
-
| filter | `array` | `none` | `false` | Filter only the features in the source layer that satisfy a condition that you define |
|
|
15
|
-
| minZoomLevel | `number` | `none` | `false` | The minimum zoom level at which the layer gets parsed and appears. |
|
|
16
|
-
| maxZoomLevel | `number` | `none` | `false` | The maximum zoom level at which the layer gets parsed and appears. |
|
|
17
|
-
| style | `union` | `none` | `false` | Customizable style attributes |
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## styles
|
|
21
|
-
|
|
22
|
-
* <a href="#visibility">visibility</a><br/>
|
|
23
|
-
* <a href="#rasteropacity">rasterOpacity</a><br/>
|
|
24
|
-
* <a href="#rasterhuerotate">rasterHueRotate</a><br/>
|
|
25
|
-
* <a href="#rasterbrightnessmin">rasterBrightnessMin</a><br/>
|
|
26
|
-
* <a href="#rasterbrightnessmax">rasterBrightnessMax</a><br/>
|
|
27
|
-
* <a href="#rastersaturation">rasterSaturation</a><br/>
|
|
28
|
-
* <a href="#rastercontrast">rasterContrast</a><br/>
|
|
29
|
-
* <a href="#rasterresampling">rasterResampling</a><br/>
|
|
30
|
-
* <a href="#rasterfadeduration">rasterFadeDuration</a><br/>
|
|
31
|
-
|
|
32
|
-
___
|
|
33
|
-
|
|
34
|
-
### visibility
|
|
35
|
-
Name: `visibility`
|
|
36
|
-
|
|
37
|
-
### Description
|
|
38
|
-
Whether this layer is displayed.
|
|
39
|
-
|
|
40
|
-
### Type
|
|
41
|
-
`enum`
|
|
42
|
-
### Default Value
|
|
43
|
-
`visible`
|
|
44
|
-
|
|
45
|
-
### Supported Values
|
|
46
|
-
**visible** - The layer is shown.<br />
|
|
47
|
-
**none** - The layer is not shown.<br />
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
___
|
|
52
|
-
|
|
53
|
-
### rasterOpacity
|
|
54
|
-
Name: `rasterOpacity`
|
|
55
|
-
|
|
56
|
-
### Description
|
|
57
|
-
The opacity at which the image will be drawn.
|
|
58
|
-
|
|
59
|
-
### Type
|
|
60
|
-
`number`
|
|
61
|
-
### Default Value
|
|
62
|
-
`1`
|
|
63
|
-
|
|
64
|
-
### Minimum
|
|
65
|
-
`0`
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
### Maximum
|
|
69
|
-
`1`
|
|
70
|
-
|
|
71
|
-
### Expression
|
|
72
|
-
|
|
73
|
-
Parameters: `zoom`
|
|
74
|
-
___
|
|
75
|
-
|
|
76
|
-
### Name
|
|
77
|
-
|
|
78
|
-
`rasterOpacityTransition`
|
|
79
|
-
|
|
80
|
-
### Description
|
|
81
|
-
|
|
82
|
-
The transition affecting any changes to this layer’s rasterOpacity property.
|
|
83
|
-
|
|
84
|
-
### Type
|
|
85
|
-
|
|
86
|
-
`{ duration, delay }`
|
|
87
|
-
|
|
88
|
-
### Units
|
|
89
|
-
`milliseconds`
|
|
90
|
-
|
|
91
|
-
### Default Value
|
|
92
|
-
`{duration: 300, delay: 0}`
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
___
|
|
96
|
-
|
|
97
|
-
### rasterHueRotate
|
|
98
|
-
Name: `rasterHueRotate`
|
|
99
|
-
|
|
100
|
-
### Description
|
|
101
|
-
Rotates hues around the color wheel.
|
|
102
|
-
|
|
103
|
-
### Type
|
|
104
|
-
`number`
|
|
105
|
-
### Default Value
|
|
106
|
-
`0`
|
|
107
|
-
|
|
108
|
-
### Units
|
|
109
|
-
`degrees`
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
### Expression
|
|
113
|
-
|
|
114
|
-
Parameters: `zoom`
|
|
115
|
-
___
|
|
116
|
-
|
|
117
|
-
### Name
|
|
118
|
-
|
|
119
|
-
`rasterHueRotateTransition`
|
|
120
|
-
|
|
121
|
-
### Description
|
|
122
|
-
|
|
123
|
-
The transition affecting any changes to this layer’s rasterHueRotate property.
|
|
124
|
-
|
|
125
|
-
### Type
|
|
126
|
-
|
|
127
|
-
`{ duration, delay }`
|
|
128
|
-
|
|
129
|
-
### Units
|
|
130
|
-
`milliseconds`
|
|
131
|
-
|
|
132
|
-
### Default Value
|
|
133
|
-
`{duration: 300, delay: 0}`
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
___
|
|
137
|
-
|
|
138
|
-
### rasterBrightnessMin
|
|
139
|
-
Name: `rasterBrightnessMin`
|
|
140
|
-
|
|
141
|
-
### Description
|
|
142
|
-
Increase or reduce the brightness of the image. The value is the minimum brightness.
|
|
143
|
-
|
|
144
|
-
### Type
|
|
145
|
-
`number`
|
|
146
|
-
### Default Value
|
|
147
|
-
`0`
|
|
148
|
-
|
|
149
|
-
### Minimum
|
|
150
|
-
`0`
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
### Maximum
|
|
154
|
-
`1`
|
|
155
|
-
|
|
156
|
-
### Expression
|
|
157
|
-
|
|
158
|
-
Parameters: `zoom`
|
|
159
|
-
___
|
|
160
|
-
|
|
161
|
-
### Name
|
|
162
|
-
|
|
163
|
-
`rasterBrightnessMinTransition`
|
|
164
|
-
|
|
165
|
-
### Description
|
|
166
|
-
|
|
167
|
-
The transition affecting any changes to this layer’s rasterBrightnessMin property.
|
|
168
|
-
|
|
169
|
-
### Type
|
|
170
|
-
|
|
171
|
-
`{ duration, delay }`
|
|
172
|
-
|
|
173
|
-
### Units
|
|
174
|
-
`milliseconds`
|
|
175
|
-
|
|
176
|
-
### Default Value
|
|
177
|
-
`{duration: 300, delay: 0}`
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
___
|
|
181
|
-
|
|
182
|
-
### rasterBrightnessMax
|
|
183
|
-
Name: `rasterBrightnessMax`
|
|
184
|
-
|
|
185
|
-
### Description
|
|
186
|
-
Increase or reduce the brightness of the image. The value is the maximum brightness.
|
|
187
|
-
|
|
188
|
-
### Type
|
|
189
|
-
`number`
|
|
190
|
-
### Default Value
|
|
191
|
-
`1`
|
|
192
|
-
|
|
193
|
-
### Minimum
|
|
194
|
-
`0`
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
### Maximum
|
|
198
|
-
`1`
|
|
199
|
-
|
|
200
|
-
### Expression
|
|
201
|
-
|
|
202
|
-
Parameters: `zoom`
|
|
203
|
-
___
|
|
204
|
-
|
|
205
|
-
### Name
|
|
206
|
-
|
|
207
|
-
`rasterBrightnessMaxTransition`
|
|
208
|
-
|
|
209
|
-
### Description
|
|
210
|
-
|
|
211
|
-
The transition affecting any changes to this layer’s rasterBrightnessMax property.
|
|
212
|
-
|
|
213
|
-
### Type
|
|
214
|
-
|
|
215
|
-
`{ duration, delay }`
|
|
216
|
-
|
|
217
|
-
### Units
|
|
218
|
-
`milliseconds`
|
|
219
|
-
|
|
220
|
-
### Default Value
|
|
221
|
-
`{duration: 300, delay: 0}`
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
___
|
|
225
|
-
|
|
226
|
-
### rasterSaturation
|
|
227
|
-
Name: `rasterSaturation`
|
|
228
|
-
|
|
229
|
-
### Description
|
|
230
|
-
Increase or reduce the saturation of the image.
|
|
231
|
-
|
|
232
|
-
### Type
|
|
233
|
-
`number`
|
|
234
|
-
### Default Value
|
|
235
|
-
`0`
|
|
236
|
-
|
|
237
|
-
### Minimum
|
|
238
|
-
`-1`
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
### Maximum
|
|
242
|
-
`1`
|
|
243
|
-
|
|
244
|
-
### Expression
|
|
245
|
-
|
|
246
|
-
Parameters: `zoom`
|
|
247
|
-
___
|
|
248
|
-
|
|
249
|
-
### Name
|
|
250
|
-
|
|
251
|
-
`rasterSaturationTransition`
|
|
252
|
-
|
|
253
|
-
### Description
|
|
254
|
-
|
|
255
|
-
The transition affecting any changes to this layer’s rasterSaturation property.
|
|
256
|
-
|
|
257
|
-
### Type
|
|
258
|
-
|
|
259
|
-
`{ duration, delay }`
|
|
260
|
-
|
|
261
|
-
### Units
|
|
262
|
-
`milliseconds`
|
|
263
|
-
|
|
264
|
-
### Default Value
|
|
265
|
-
`{duration: 300, delay: 0}`
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
___
|
|
269
|
-
|
|
270
|
-
### rasterContrast
|
|
271
|
-
Name: `rasterContrast`
|
|
272
|
-
|
|
273
|
-
### Description
|
|
274
|
-
Increase or reduce the contrast of the image.
|
|
275
|
-
|
|
276
|
-
### Type
|
|
277
|
-
`number`
|
|
278
|
-
### Default Value
|
|
279
|
-
`0`
|
|
280
|
-
|
|
281
|
-
### Minimum
|
|
282
|
-
`-1`
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
### Maximum
|
|
286
|
-
`1`
|
|
287
|
-
|
|
288
|
-
### Expression
|
|
289
|
-
|
|
290
|
-
Parameters: `zoom`
|
|
291
|
-
___
|
|
292
|
-
|
|
293
|
-
### Name
|
|
294
|
-
|
|
295
|
-
`rasterContrastTransition`
|
|
296
|
-
|
|
297
|
-
### Description
|
|
298
|
-
|
|
299
|
-
The transition affecting any changes to this layer’s rasterContrast property.
|
|
300
|
-
|
|
301
|
-
### Type
|
|
302
|
-
|
|
303
|
-
`{ duration, delay }`
|
|
304
|
-
|
|
305
|
-
### Units
|
|
306
|
-
`milliseconds`
|
|
307
|
-
|
|
308
|
-
### Default Value
|
|
309
|
-
`{duration: 300, delay: 0}`
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
___
|
|
313
|
-
|
|
314
|
-
### rasterResampling
|
|
315
|
-
Name: `rasterResampling`
|
|
316
|
-
|
|
317
|
-
### Description
|
|
318
|
-
The resampling/interpolation method to use for overscaling, also known as texture magnification filter
|
|
319
|
-
|
|
320
|
-
### Type
|
|
321
|
-
`enum`
|
|
322
|
-
### Default Value
|
|
323
|
-
`linear`
|
|
324
|
-
|
|
325
|
-
### Supported Values
|
|
326
|
-
**linear** - (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<br />
|
|
327
|
-
**nearest** - Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled<br />
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
### Expression
|
|
331
|
-
|
|
332
|
-
Parameters: `zoom`
|
|
333
|
-
|
|
334
|
-
___
|
|
335
|
-
|
|
336
|
-
### rasterFadeDuration
|
|
337
|
-
Name: `rasterFadeDuration`
|
|
338
|
-
|
|
339
|
-
### Description
|
|
340
|
-
Fade duration when a new tile is added.
|
|
341
|
-
|
|
342
|
-
### Type
|
|
343
|
-
`number`
|
|
344
|
-
### Default Value
|
|
345
|
-
`300`
|
|
346
|
-
|
|
347
|
-
### Units
|
|
348
|
-
`milliseconds`
|
|
349
|
-
|
|
350
|
-
### Minimum
|
|
351
|
-
`0`
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
### Expression
|
|
355
|
-
|
|
356
|
-
Parameters: `zoom`
|
|
357
|
-
|
package/docs/RasterSource.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!-- This file was autogenerated from RasterSource.js do not modify -->
|
|
2
|
-
# <MapboxGL.RasterSource />
|
|
3
|
-
RasterSource is a map content source that supplies raster image tiles to be shown on the map.
|
|
4
|
-
The location of and metadata about the tiles are defined either by an option dictionary
|
|
5
|
-
or by an external file that conforms to the TileJSON specification.
|
|
6
|
-
|
|
7
|
-
## props
|
|
8
|
-
| Prop | Type | Default | Required | Description |
|
|
9
|
-
| ---- | :-- | :----- | :------ | :---------- |
|
|
10
|
-
| id | `string` | `MapboxGL.StyleSource.DefaultSourceID` | `false` | A string that uniquely identifies the source. |
|
|
11
|
-
| url | `string` | `none` | `false` | A URL to a TileJSON configuration file describing the source’s contents and other metadata. |
|
|
12
|
-
| 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 |
|
|
13
|
-
| 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. |
|
|
14
|
-
| 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. |
|
|
15
|
-
| tileSize | `number` | `none` | `false` | Size of the map tiles.<br/>Mapbox urls default to 256, all others default to 512. |
|
|
16
|
-
| tms | `bool` | `none` | `false` | Influences the y direction of the tile coordinates. (tms inverts y axis) |
|
|
17
|
-
| 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. |
|
|
18
|
-
|
|
19
|
-
|
package/docs/ShapeSource.md
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
<!-- This file was autogenerated from ShapeSource.tsx do not modify -->
|
|
2
|
-
# <MapboxGL.ShapeSource />
|
|
3
|
-
ShapeSource is a map content source that supplies vector shapes to be shown on the map.
|
|
4
|
-
The shape may be an url or a GeoJSON object
|
|
5
|
-
|
|
6
|
-
## props
|
|
7
|
-
| Prop | Type | Default | Required | Description |
|
|
8
|
-
| ---- | :-- | :----- | :------ | :---------- |
|
|
9
|
-
| id | `string` | `MapboxGL.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
|
|
12
|
-
\| GeoJSON.Feature
|
|
13
|
-
\| GeoJSON.FeatureCollection
|
|
14
|
-
\| GeoJSON.Geometry` | `none` | `false` | The contents of the source. A shape can represent a GeoJSON geometry, a feature, or a feature collection. |
|
|
15
|
-
| cluster | `boolean` | `none` | `false` | Enables clustering on the source for point shapes. |
|
|
16
|
-
| 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. |
|
|
17
|
-
| 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. |
|
|
18
|
-
| clusterProperties | `object` | `none` | `false` | [`mapbox-gl` (v8) implementation only]<br/>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"]] }` |
|
|
19
|
-
| 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. |
|
|
20
|
-
| 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. |
|
|
21
|
-
| 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. |
|
|
22
|
-
| 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. |
|
|
23
|
-
| 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:{features: Array, coordinates: {latitude: number, longitude: number}, point: {x: number, y: number}}) => void` |
|
|
24
|
-
| hitbox | `shape` | `none` | `false` | Overrides the default touch hitbox(44x44 pixels) for the source layers |
|
|
25
|
-
| width | `number` | `none` | `true` | `width` of hitbox |
|
|
26
|
-
| height | `number` | `none` | `true` | `height` of hitbox |
|
|
27
|
-
| children | `React.ReactElement \| React.ReactElement[]` | `none` | `true` | FIX ME NO DESCRIPTION |
|
|
28
|
-
|
|
29
|
-
## methods
|
|
30
|
-
### features([filter])
|
|
31
|
-
|
|
32
|
-
Returns all features from the source that match the query parameters whether the feature is currently<br/>rendered on the map.
|
|
33
|
-
|
|
34
|
-
#### arguments
|
|
35
|
-
| Name | Type | Required | Description |
|
|
36
|
-
| ---- | :--: | :------: | :----------: |
|
|
37
|
-
| `filter` | `Array` | `No` | an optional filter statement to filter the returned Features. |
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
```javascript
|
|
42
|
-
shapeSource.features()
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
### getClusterExpansionZoom(feature)
|
|
47
|
-
|
|
48
|
-
Returns the zoom needed to expand the cluster.
|
|
49
|
-
|
|
50
|
-
#### arguments
|
|
51
|
-
| Name | Type | Required | Description |
|
|
52
|
-
| ---- | :--: | :------: | :----------: |
|
|
53
|
-
| `feature` | `string \| GeoJSON.Feature` | `Yes` | The feature cluster to expand. |
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
```javascript
|
|
58
|
-
const zoom = await shapeSource.getClusterExpansionZoom(clusterId);
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
### getClusterLeaves(feature, limit, offset)
|
|
63
|
-
|
|
64
|
-
Returns the FeatureCollection from the cluster.
|
|
65
|
-
|
|
66
|
-
#### arguments
|
|
67
|
-
| Name | Type | Required | Description |
|
|
68
|
-
| ---- | :--: | :------: | :----------: |
|
|
69
|
-
| `feature` | `number \| GeoJSON.Feature` | `Yes` | The feature cluster to expand. |
|
|
70
|
-
| `limit` | `number` | `Yes` | The number of points to return. |
|
|
71
|
-
| `offset` | `number` | `Yes` | The amount of points to skip (for pagination). |
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
```javascript
|
|
76
|
-
const collection = await shapeSource.getClusterLeaves(clusterId, limit, offset);
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
### getClusterChildren(feature)
|
|
81
|
-
|
|
82
|
-
Returns the FeatureCollection from the cluster (on the next zoom level).
|
|
83
|
-
|
|
84
|
-
#### arguments
|
|
85
|
-
| Name | Type | Required | Description |
|
|
86
|
-
| ---- | :--: | :------: | :----------: |
|
|
87
|
-
| `feature` | `number \| GeoJSON.Feature` | `Yes` | The feature cluster to expand. |
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
```javascript
|
|
92
|
-
const collection = await shapeSource.getClusterChildren(clusterId);
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### onPress(event)
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
#### arguments
|
|
101
|
-
| Name | Type | Required | Description |
|
|
102
|
-
| ---- | :--: | :------: | :----------: |
|
|
103
|
-
| `event` | `NativeSyntheticEvent` | `Yes` | undefined |
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|