@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/Camera.md
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
<!-- This file was autogenerated from Camera.tsx do not modify -->
|
|
2
|
-
# <MapboxGL.Camera />
|
|
3
|
-
Controls the perspective from which the user sees the map.
|
|
4
|
-
|
|
5
|
-
To use imperative methods, pass in a ref object:
|
|
6
|
-
|
|
7
|
-
```tsx
|
|
8
|
-
const camera = useRef<Camera>(null);
|
|
9
|
-
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
camera.current?.setCamera({
|
|
12
|
-
centerCoordinate: [lon, lat],
|
|
13
|
-
});
|
|
14
|
-
}, []);
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<Camera ref={camera} />
|
|
18
|
-
);
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## props
|
|
22
|
-
| Prop | Type | Default | Required | Description |
|
|
23
|
-
| ---- | :-- | :----- | :------ | :---------- |
|
|
24
|
-
| type | `literal` | `none` | `false` | Allows static check of the data type. For internal use only. |
|
|
25
|
-
| centerCoordinate | `Position` | `none` | `false` | The location on which the map should center. |
|
|
26
|
-
| bounds | `intersection` | `none` | `false` | The corners of a box around which the map should bound. Contains padding props for backwards<br/>compatibility; the root `padding` prop should be used instead. |
|
|
27
|
-
| heading | `number` | `none` | `false` | The heading (orientation) of the map. |
|
|
28
|
-
| pitch | `number` | `none` | `false` | The pitch of the map. |
|
|
29
|
-
| zoomLevel | `number` | `none` | `false` | The zoom level of the map. |
|
|
30
|
-
| padding | `shape` | `none` | `false` | The viewport padding in points. |
|
|
31
|
-
| paddingLeft | `number` | `none` | `true` | Left padding in points |
|
|
32
|
-
| paddingRight | `number` | `none` | `true` | Right padding in points |
|
|
33
|
-
| paddingTop | `number` | `none` | `true` | Top padding in points |
|
|
34
|
-
| paddingBottom | `number` | `none` | `true` | Bottom padding in points |
|
|
35
|
-
| animationDuration | `number` | `none` | `false` | The duration the map takes to animate to a new configuration. |
|
|
36
|
-
| animationMode | `\| 'flyTo'
|
|
37
|
-
\| 'easeTo'
|
|
38
|
-
\| 'linearTo'
|
|
39
|
-
\| 'moveTo'
|
|
40
|
-
\| 'none'` | `none` | `false` | The easing or path the camera uses to animate to a new configuration. |
|
|
41
|
-
| followUserMode | `UserTrackingMode` | `none` | `false` | The mode used to track the user location on the map. |
|
|
42
|
-
| followUserLocation | `boolean` | `none` | `false` | Whether the map orientation follows the user location. |
|
|
43
|
-
| followZoomLevel | `number` | `none` | `false` | The zoom level used when following the user location. |
|
|
44
|
-
| followPitch | `number` | `none` | `false` | The pitch used when following the user location. |
|
|
45
|
-
| followHeading | `number` | `none` | `false` | The heading used when following the user location. |
|
|
46
|
-
| minZoomLevel | `number` | `none` | `false` | The lowest allowed zoom level. |
|
|
47
|
-
| maxZoomLevel | `number` | `none` | `false` | The highest allowed zoom level. |
|
|
48
|
-
| maxBounds | `shape` | `none` | `false` | The corners of a box defining the limits of where the camera can pan or zoom. |
|
|
49
|
-
| ne | `Position` | `none` | `true` | FIX ME NO DESCRIPTION |
|
|
50
|
-
| sw | `Position` | `none` | `true` | FIX ME NO DESCRIPTION |
|
|
51
|
-
| defaultSettings | `shape` | `none` | `false` | The configuration that the camera falls back on, if no other values are specified. |
|
|
52
|
-
| type | `literal` | `none` | `false` | Allows static check of the data type. For internal use only. |
|
|
53
|
-
| centerCoordinate | `Position` | `none` | `false` | The location on which the map should center. |
|
|
54
|
-
| bounds | `intersection` | `none` | `false` | The corners of a box around which the map should bound. Contains padding props for backwards<br/>compatibility; the root `padding` prop should be used instead. |
|
|
55
|
-
| heading | `number` | `none` | `false` | The heading (orientation) of the map. |
|
|
56
|
-
| pitch | `number` | `none` | `false` | The pitch of the map. |
|
|
57
|
-
| zoomLevel | `number` | `none` | `false` | The zoom level of the map. |
|
|
58
|
-
| padding | `signature` | `none` | `false` | The viewport padding in points. |
|
|
59
|
-
| animationDuration | `number` | `none` | `false` | The duration the map takes to animate to a new configuration. |
|
|
60
|
-
| animationMode | `union` | `none` | `false` | The easing or path the camera uses to animate to a new configuration. |
|
|
61
|
-
| allowUpdates | `boolean` | `none` | `false` | Whether the camera should send any configuration to the native module. Prevents unnecessary tile<br/>fetching and improves performance when the map is not visible. Defaults to `true`. |
|
|
62
|
-
| triggerKey | `string \| number` | `none` | `false` | Any arbitrary primitive value that, when changed, causes the camera to retry moving to its target<br/>configuration. (Not yet implemented.) |
|
|
63
|
-
| onUserTrackingModeChange | `func` | `none` | `false` | Executes when user tracking mode changes.<br/>*signature:*`(event:MapboxGLEvent) => void` |
|
|
64
|
-
|
|
65
|
-
## methods
|
|
66
|
-
### setCamera()
|
|
67
|
-
|
|
68
|
-
Sets any camera properties, with default fallbacks if unspecified.
|
|
69
|
-
|
|
70
|
-
#### arguments
|
|
71
|
-
| Name | Type | Required | Description |
|
|
72
|
-
| ---- | :--: | :------: | :----------: |
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
```javascript
|
|
78
|
-
camera.current?.setCamera({
|
|
79
|
-
centerCoordinate: [lon, lat],
|
|
80
|
-
});
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
### fitBounds()
|
|
85
|
-
|
|
86
|
-
Set the camera position to enclose the provided bounds, with optional<br/>padding and duration.
|
|
87
|
-
|
|
88
|
-
#### arguments
|
|
89
|
-
| Name | Type | Required | Description |
|
|
90
|
-
| ---- | :--: | :------: | :----------: |
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
```javascript
|
|
96
|
-
camera.fitBounds([lon, lat], [lon, lat]);
|
|
97
|
-
camera.fitBounds([lon, lat], [lon, lat], [20, 0], 1000);
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
### flyTo()
|
|
102
|
-
|
|
103
|
-
Sets the camera to center around the provided coordinate using a realistic 'travel'<br/>animation, with optional duration.
|
|
104
|
-
|
|
105
|
-
#### arguments
|
|
106
|
-
| Name | Type | Required | Description |
|
|
107
|
-
| ---- | :--: | :------: | :----------: |
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
```javascript
|
|
113
|
-
camera.flyTo([lon, lat]);
|
|
114
|
-
camera.flyTo([lon, lat], 12000);
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
### moveTo()
|
|
119
|
-
|
|
120
|
-
Sets the camera to center around the provided coordinate, with optional duration.
|
|
121
|
-
|
|
122
|
-
#### arguments
|
|
123
|
-
| Name | Type | Required | Description |
|
|
124
|
-
| ---- | :--: | :------: | :----------: |
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
```javascript
|
|
130
|
-
camera.moveTo([lon, lat], 200);
|
|
131
|
-
camera.moveTo([lon, lat]);
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
### zoomTo()
|
|
136
|
-
|
|
137
|
-
Zooms the camera to the provided level, with optional duration.
|
|
138
|
-
|
|
139
|
-
#### arguments
|
|
140
|
-
| Name | Type | Required | Description |
|
|
141
|
-
| ---- | :--: | :------: | :----------: |
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
```javascript
|
|
147
|
-
camera.zoomTo(16);
|
|
148
|
-
camera.zoomTo(16, 100);
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
package/docs/CircleLayer.md
DELETED
|
@@ -1,470 +0,0 @@
|
|
|
1
|
-
<!-- This file was autogenerated from CircleLayer.js do not modify -->
|
|
2
|
-
# <MapboxGL.CircleLayer />
|
|
3
|
-
CircleLayer is a style layer that renders one or more filled circles on the map.
|
|
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<br/>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="#circlesortkey">circleSortKey</a><br/>
|
|
23
|
-
* <a href="#visibility">visibility</a><br/>
|
|
24
|
-
* <a href="#circleradius">circleRadius</a><br/>
|
|
25
|
-
* <a href="#circlecolor">circleColor</a><br/>
|
|
26
|
-
* <a href="#circleblur">circleBlur</a><br/>
|
|
27
|
-
* <a href="#circleopacity">circleOpacity</a><br/>
|
|
28
|
-
* <a href="#circletranslate">circleTranslate</a><br/>
|
|
29
|
-
* <a href="#circletranslateanchor">circleTranslateAnchor</a><br/>
|
|
30
|
-
* <a href="#circlepitchscale">circlePitchScale</a><br/>
|
|
31
|
-
* <a href="#circlepitchalignment">circlePitchAlignment</a><br/>
|
|
32
|
-
* <a href="#circlestrokewidth">circleStrokeWidth</a><br/>
|
|
33
|
-
* <a href="#circlestrokecolor">circleStrokeColor</a><br/>
|
|
34
|
-
* <a href="#circlestrokeopacity">circleStrokeOpacity</a><br/>
|
|
35
|
-
|
|
36
|
-
___
|
|
37
|
-
|
|
38
|
-
### circleSortKey
|
|
39
|
-
Name: `circleSortKey`
|
|
40
|
-
|
|
41
|
-
### Description
|
|
42
|
-
Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
|
|
43
|
-
|
|
44
|
-
### Type
|
|
45
|
-
`number`
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
### Expression
|
|
49
|
-
|
|
50
|
-
Parameters: `zoom, feature`
|
|
51
|
-
|
|
52
|
-
___
|
|
53
|
-
|
|
54
|
-
### visibility
|
|
55
|
-
Name: `visibility`
|
|
56
|
-
|
|
57
|
-
### Description
|
|
58
|
-
Whether this layer is displayed.
|
|
59
|
-
|
|
60
|
-
### Type
|
|
61
|
-
`enum`
|
|
62
|
-
### Default Value
|
|
63
|
-
`visible`
|
|
64
|
-
|
|
65
|
-
### Supported Values
|
|
66
|
-
**visible** - The layer is shown.<br />
|
|
67
|
-
**none** - The layer is not shown.<br />
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
___
|
|
72
|
-
|
|
73
|
-
### circleRadius
|
|
74
|
-
Name: `circleRadius`
|
|
75
|
-
|
|
76
|
-
### Description
|
|
77
|
-
Circle radius.
|
|
78
|
-
|
|
79
|
-
### Type
|
|
80
|
-
`number`
|
|
81
|
-
### Default Value
|
|
82
|
-
`5`
|
|
83
|
-
|
|
84
|
-
### Units
|
|
85
|
-
`pixels`
|
|
86
|
-
|
|
87
|
-
### Minimum
|
|
88
|
-
`0`
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
### Expression
|
|
92
|
-
|
|
93
|
-
Parameters: `zoom, feature, feature-state`
|
|
94
|
-
___
|
|
95
|
-
|
|
96
|
-
### Name
|
|
97
|
-
|
|
98
|
-
`circleRadiusTransition`
|
|
99
|
-
|
|
100
|
-
### Description
|
|
101
|
-
|
|
102
|
-
The transition affecting any changes to this layer’s circleRadius property.
|
|
103
|
-
|
|
104
|
-
### Type
|
|
105
|
-
|
|
106
|
-
`{ duration, delay }`
|
|
107
|
-
|
|
108
|
-
### Units
|
|
109
|
-
`milliseconds`
|
|
110
|
-
|
|
111
|
-
### Default Value
|
|
112
|
-
`{duration: 300, delay: 0}`
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
___
|
|
116
|
-
|
|
117
|
-
### circleColor
|
|
118
|
-
Name: `circleColor`
|
|
119
|
-
|
|
120
|
-
### Description
|
|
121
|
-
The fill color of the circle.
|
|
122
|
-
|
|
123
|
-
### Type
|
|
124
|
-
`color`
|
|
125
|
-
### Default Value
|
|
126
|
-
`#000000`
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
### Expression
|
|
130
|
-
|
|
131
|
-
Parameters: `zoom, feature, feature-state`
|
|
132
|
-
___
|
|
133
|
-
|
|
134
|
-
### Name
|
|
135
|
-
|
|
136
|
-
`circleColorTransition`
|
|
137
|
-
|
|
138
|
-
### Description
|
|
139
|
-
|
|
140
|
-
The transition affecting any changes to this layer’s circleColor property.
|
|
141
|
-
|
|
142
|
-
### Type
|
|
143
|
-
|
|
144
|
-
`{ duration, delay }`
|
|
145
|
-
|
|
146
|
-
### Units
|
|
147
|
-
`milliseconds`
|
|
148
|
-
|
|
149
|
-
### Default Value
|
|
150
|
-
`{duration: 300, delay: 0}`
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
___
|
|
154
|
-
|
|
155
|
-
### circleBlur
|
|
156
|
-
Name: `circleBlur`
|
|
157
|
-
|
|
158
|
-
### Description
|
|
159
|
-
Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.
|
|
160
|
-
|
|
161
|
-
### Type
|
|
162
|
-
`number`
|
|
163
|
-
### Default Value
|
|
164
|
-
`0`
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
### Expression
|
|
168
|
-
|
|
169
|
-
Parameters: `zoom, feature, feature-state`
|
|
170
|
-
___
|
|
171
|
-
|
|
172
|
-
### Name
|
|
173
|
-
|
|
174
|
-
`circleBlurTransition`
|
|
175
|
-
|
|
176
|
-
### Description
|
|
177
|
-
|
|
178
|
-
The transition affecting any changes to this layer’s circleBlur property.
|
|
179
|
-
|
|
180
|
-
### Type
|
|
181
|
-
|
|
182
|
-
`{ duration, delay }`
|
|
183
|
-
|
|
184
|
-
### Units
|
|
185
|
-
`milliseconds`
|
|
186
|
-
|
|
187
|
-
### Default Value
|
|
188
|
-
`{duration: 300, delay: 0}`
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
___
|
|
192
|
-
|
|
193
|
-
### circleOpacity
|
|
194
|
-
Name: `circleOpacity`
|
|
195
|
-
|
|
196
|
-
### Description
|
|
197
|
-
The opacity at which the circle will be drawn.
|
|
198
|
-
|
|
199
|
-
### Type
|
|
200
|
-
`number`
|
|
201
|
-
### Default Value
|
|
202
|
-
`1`
|
|
203
|
-
|
|
204
|
-
### Minimum
|
|
205
|
-
`0`
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
### Maximum
|
|
209
|
-
`1`
|
|
210
|
-
|
|
211
|
-
### Expression
|
|
212
|
-
|
|
213
|
-
Parameters: `zoom, feature, feature-state`
|
|
214
|
-
___
|
|
215
|
-
|
|
216
|
-
### Name
|
|
217
|
-
|
|
218
|
-
`circleOpacityTransition`
|
|
219
|
-
|
|
220
|
-
### Description
|
|
221
|
-
|
|
222
|
-
The transition affecting any changes to this layer’s circleOpacity property.
|
|
223
|
-
|
|
224
|
-
### Type
|
|
225
|
-
|
|
226
|
-
`{ duration, delay }`
|
|
227
|
-
|
|
228
|
-
### Units
|
|
229
|
-
`milliseconds`
|
|
230
|
-
|
|
231
|
-
### Default Value
|
|
232
|
-
`{duration: 300, delay: 0}`
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
___
|
|
236
|
-
|
|
237
|
-
### circleTranslate
|
|
238
|
-
Name: `circleTranslate`
|
|
239
|
-
|
|
240
|
-
### Description
|
|
241
|
-
The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
|
|
242
|
-
|
|
243
|
-
### Type
|
|
244
|
-
`array<number>`
|
|
245
|
-
### Default Value
|
|
246
|
-
`[0,0]`
|
|
247
|
-
|
|
248
|
-
### Units
|
|
249
|
-
`pixels`
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
### Expression
|
|
253
|
-
|
|
254
|
-
Parameters: `zoom`
|
|
255
|
-
___
|
|
256
|
-
|
|
257
|
-
### Name
|
|
258
|
-
|
|
259
|
-
`circleTranslateTransition`
|
|
260
|
-
|
|
261
|
-
### Description
|
|
262
|
-
|
|
263
|
-
The transition affecting any changes to this layer’s circleTranslate property.
|
|
264
|
-
|
|
265
|
-
### Type
|
|
266
|
-
|
|
267
|
-
`{ duration, delay }`
|
|
268
|
-
|
|
269
|
-
### Units
|
|
270
|
-
`milliseconds`
|
|
271
|
-
|
|
272
|
-
### Default Value
|
|
273
|
-
`{duration: 300, delay: 0}`
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
___
|
|
277
|
-
|
|
278
|
-
### circleTranslateAnchor
|
|
279
|
-
Name: `circleTranslateAnchor`
|
|
280
|
-
|
|
281
|
-
### Description
|
|
282
|
-
Controls the frame of reference for `circleTranslate`.
|
|
283
|
-
|
|
284
|
-
### Type
|
|
285
|
-
`enum`
|
|
286
|
-
### Default Value
|
|
287
|
-
`map`
|
|
288
|
-
|
|
289
|
-
### Supported Values
|
|
290
|
-
**map** - The circle is translated relative to the map.<br />
|
|
291
|
-
**viewport** - The circle is translated relative to the viewport.<br />
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
### Requires
|
|
295
|
-
`circleTranslate`
|
|
296
|
-
|
|
297
|
-
### Expression
|
|
298
|
-
|
|
299
|
-
Parameters: `zoom`
|
|
300
|
-
|
|
301
|
-
___
|
|
302
|
-
|
|
303
|
-
### circlePitchScale
|
|
304
|
-
Name: `circlePitchScale`
|
|
305
|
-
|
|
306
|
-
### Description
|
|
307
|
-
Controls the scaling behavior of the circle when the map is pitched.
|
|
308
|
-
|
|
309
|
-
### Type
|
|
310
|
-
`enum`
|
|
311
|
-
### Default Value
|
|
312
|
-
`map`
|
|
313
|
-
|
|
314
|
-
### Supported Values
|
|
315
|
-
**map** - Circles are scaled according to their apparent distance to the camera.<br />
|
|
316
|
-
**viewport** - Circles are not scaled.<br />
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
### Expression
|
|
320
|
-
|
|
321
|
-
Parameters: `zoom`
|
|
322
|
-
|
|
323
|
-
___
|
|
324
|
-
|
|
325
|
-
### circlePitchAlignment
|
|
326
|
-
Name: `circlePitchAlignment`
|
|
327
|
-
|
|
328
|
-
### Description
|
|
329
|
-
Orientation of circle when map is pitched.
|
|
330
|
-
|
|
331
|
-
### Type
|
|
332
|
-
`enum`
|
|
333
|
-
### Default Value
|
|
334
|
-
`viewport`
|
|
335
|
-
|
|
336
|
-
### Supported Values
|
|
337
|
-
**map** - The circle is aligned to the plane of the map.<br />
|
|
338
|
-
**viewport** - The circle is aligned to the plane of the viewport.<br />
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
### Expression
|
|
342
|
-
|
|
343
|
-
Parameters: `zoom`
|
|
344
|
-
|
|
345
|
-
___
|
|
346
|
-
|
|
347
|
-
### circleStrokeWidth
|
|
348
|
-
Name: `circleStrokeWidth`
|
|
349
|
-
|
|
350
|
-
### Description
|
|
351
|
-
The width of the circle's stroke. Strokes are placed outside of the `circleRadius`.
|
|
352
|
-
|
|
353
|
-
### Type
|
|
354
|
-
`number`
|
|
355
|
-
### Default Value
|
|
356
|
-
`0`
|
|
357
|
-
|
|
358
|
-
### Units
|
|
359
|
-
`pixels`
|
|
360
|
-
|
|
361
|
-
### Minimum
|
|
362
|
-
`0`
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
### Expression
|
|
366
|
-
|
|
367
|
-
Parameters: `zoom, feature, feature-state`
|
|
368
|
-
___
|
|
369
|
-
|
|
370
|
-
### Name
|
|
371
|
-
|
|
372
|
-
`circleStrokeWidthTransition`
|
|
373
|
-
|
|
374
|
-
### Description
|
|
375
|
-
|
|
376
|
-
The transition affecting any changes to this layer’s circleStrokeWidth property.
|
|
377
|
-
|
|
378
|
-
### Type
|
|
379
|
-
|
|
380
|
-
`{ duration, delay }`
|
|
381
|
-
|
|
382
|
-
### Units
|
|
383
|
-
`milliseconds`
|
|
384
|
-
|
|
385
|
-
### Default Value
|
|
386
|
-
`{duration: 300, delay: 0}`
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
___
|
|
390
|
-
|
|
391
|
-
### circleStrokeColor
|
|
392
|
-
Name: `circleStrokeColor`
|
|
393
|
-
|
|
394
|
-
### Description
|
|
395
|
-
The stroke color of the circle.
|
|
396
|
-
|
|
397
|
-
### Type
|
|
398
|
-
`color`
|
|
399
|
-
### Default Value
|
|
400
|
-
`#000000`
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
### Expression
|
|
404
|
-
|
|
405
|
-
Parameters: `zoom, feature, feature-state`
|
|
406
|
-
___
|
|
407
|
-
|
|
408
|
-
### Name
|
|
409
|
-
|
|
410
|
-
`circleStrokeColorTransition`
|
|
411
|
-
|
|
412
|
-
### Description
|
|
413
|
-
|
|
414
|
-
The transition affecting any changes to this layer’s circleStrokeColor property.
|
|
415
|
-
|
|
416
|
-
### Type
|
|
417
|
-
|
|
418
|
-
`{ duration, delay }`
|
|
419
|
-
|
|
420
|
-
### Units
|
|
421
|
-
`milliseconds`
|
|
422
|
-
|
|
423
|
-
### Default Value
|
|
424
|
-
`{duration: 300, delay: 0}`
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
___
|
|
428
|
-
|
|
429
|
-
### circleStrokeOpacity
|
|
430
|
-
Name: `circleStrokeOpacity`
|
|
431
|
-
|
|
432
|
-
### Description
|
|
433
|
-
The opacity of the circle's stroke.
|
|
434
|
-
|
|
435
|
-
### Type
|
|
436
|
-
`number`
|
|
437
|
-
### Default Value
|
|
438
|
-
`1`
|
|
439
|
-
|
|
440
|
-
### Minimum
|
|
441
|
-
`0`
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
### Maximum
|
|
445
|
-
`1`
|
|
446
|
-
|
|
447
|
-
### Expression
|
|
448
|
-
|
|
449
|
-
Parameters: `zoom, feature, feature-state`
|
|
450
|
-
___
|
|
451
|
-
|
|
452
|
-
### Name
|
|
453
|
-
|
|
454
|
-
`circleStrokeOpacityTransition`
|
|
455
|
-
|
|
456
|
-
### Description
|
|
457
|
-
|
|
458
|
-
The transition affecting any changes to this layer’s circleStrokeOpacity property.
|
|
459
|
-
|
|
460
|
-
### Type
|
|
461
|
-
|
|
462
|
-
`{ duration, delay }`
|
|
463
|
-
|
|
464
|
-
### Units
|
|
465
|
-
`milliseconds`
|
|
466
|
-
|
|
467
|
-
### Default Value
|
|
468
|
-
`{duration: 300, delay: 0}`
|
|
469
|
-
|
|
470
|
-
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
# Custom http headers
|
|
2
|
-
|
|
3
|
-
Custom headers are implemented using OkHttp interceptor for android and method swizzling for iOS.
|
|
4
|
-
|
|
5
|
-
[Method swizzling](https://en.wikipedia.org/wiki/Monkey_patch) is done on the `[NSMutableURLRequest requestWithURL:]` to allow adding headers during runtime.
|
|
6
|
-
|
|
7
|
-
## Prerequisites
|
|
8
|
-
|
|
9
|
-
### Android
|
|
10
|
-
|
|
11
|
-
None
|
|
12
|
-
|
|
13
|
-
### iOS with Mapbox-v10
|
|
14
|
-
|
|
15
|
-
None
|
|
16
|
-
|
|
17
|
-
### iOS with Mapbox GL or Mapblibre
|
|
18
|
-
|
|
19
|
-
To enable this on iOS you need to call `[[MGLCustomHeaders sharedInstance] initHeaders]` pretty early in the lifecycle of the application. This will swizzle the custom method.
|
|
20
|
-
Suggested location is `[AppDelegate application: didFinishLaunchingWithOptions:]`
|
|
21
|
-
|
|
22
|
-
### Working example (AppDelegate.m)
|
|
23
|
-
|
|
24
|
-
```obj-c
|
|
25
|
-
// (1) Include the header file
|
|
26
|
-
#import "MGLCustomHeaders.h"
|
|
27
|
-
|
|
28
|
-
@implementation AppDelegate
|
|
29
|
-
|
|
30
|
-
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
31
|
-
{
|
|
32
|
-
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
|
|
33
|
-
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
|
|
34
|
-
moduleName:@"SampleApp"
|
|
35
|
-
initialProperties:nil];
|
|
36
|
-
// (2) Init headers, add swizzle method
|
|
37
|
-
[[MGLCustomHeaders sharedInstance] initHeaders];
|
|
38
|
-
// (3*) Optionally you can add some global headers here
|
|
39
|
-
[[MGLCustomHeaders sharedInstance] addHeader:@"IP" forHeaderName:@"X-For-Real"];
|
|
40
|
-
|
|
41
|
-
...
|
|
42
|
-
return YES;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
...
|
|
46
|
-
|
|
47
|
-
@end
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Sending custom http headers with the tile requests
|
|
51
|
-
|
|
52
|
-
You can configure sending of custom http headers to your tile server. This is to support custom authentication or custom metadata which can't be included in the url.
|
|
53
|
-
|
|
54
|
-
You can add and remove headers at runtime.
|
|
55
|
-
|
|
56
|
-
### To add a header
|
|
57
|
-
|
|
58
|
-
```javascript
|
|
59
|
-
MapboxGL.addCustomHeader('Authorization', '{auth header}');
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
### To remove a header
|
|
63
|
-
|
|
64
|
-
```javascript
|
|
65
|
-
MapboxGL.removeCustomHeader('Authorization');
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
### Working example
|
|
69
|
-
|
|
70
|
-
```tsx
|
|
71
|
-
export default class HelloWorldApp extends Component {
|
|
72
|
-
componentDidMount() {
|
|
73
|
-
MapboxGL.addCustomHeader('Authorization', '{auth header}');
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
render() {
|
|
77
|
-
MapboxGL.addCustomHeader('X-Some-Header', 'my-value');
|
|
78
|
-
return (
|
|
79
|
-
<View style={styles.page}>
|
|
80
|
-
<View style={styles.container}>
|
|
81
|
-
<MapboxGL.MapView
|
|
82
|
-
style={styles.map}
|
|
83
|
-
styleURL={STYLE_URL} />
|
|
84
|
-
</View>
|
|
85
|
-
</View>
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
```
|