@maplibre/maplibre-react-native 9.1.0 → 10.0.0-alpha.10
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/.husky/pre-commit +5 -0
- package/.sonarcloud.properties +1 -1
- package/CHANGELOG.md +107 -50
- package/CONTRIBUTING.md +10 -9
- package/README.md +1 -1
- package/android/build.gradle +1 -1
- package/android/{rctmgl → rctmln}/build.gradle +8 -8
- package/android/{rctmgl → rctmln}/src/main/AndroidManifest.xml +1 -1
- package/android/rctmln/src/main/java/com/maplibre/rctmln/RCTMLNPackage.java +99 -0
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/AbstractEvent.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/AbstractEventEmitter.java +2 -2
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/AbstractMapFeature.java +4 -4
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/annotation/MarkerView.java +3 -3
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/annotation/MarkerViewManager.java +12 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLCallout.java → rctmln/src/main/java/com/maplibre/rctmln/components/annotation/RCTMLNCallout.java} +3 -3
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/annotation/RCTMLNCalloutManager.java +22 -0
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerView.java → rctmln/src/main/java/com/maplibre/rctmln/components/annotation/RCTMLNMarkerView.java} +18 -18
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/annotation/RCTMLNMarkerViewManager.java} +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLPointAnnotation.java → rctmln/src/main/java/com/maplibre/rctmln/components/annotation/RCTMLNPointAnnotation.java} +27 -26
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLPointAnnotationManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/annotation/RCTMLNPointAnnotationManager.java} +14 -14
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/camera/CameraStop.java +21 -19
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/camera/CameraUpdateItem.java +12 -12
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/camera/CameraUpdateQueue.java +4 -4
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/RCTMGLCamera.java → rctmln/src/main/java/com/maplibre/rctmln/components/camera/RCTMLNCamera.java} +50 -50
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/RCTMGLCameraManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/camera/RCTMLNCameraManager.java} +19 -19
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/camera/constants/CameraMode.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/images/RCTMGLImages.java → rctmln/src/main/java/com/maplibre/rctmln/components/images/RCTMLNImages.java} +27 -27
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/images/RCTMGLImagesManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/images/RCTMLNImagesManager.java} +17 -17
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/location/LocationComponentManager.java +16 -16
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/location/RCTMGLNativeUserLocation.java → rctmln/src/main/java/com/maplibre/rctmln/components/location/RCTMLNNativeUserLocation.java} +15 -15
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/location/RCTMGLNativeUserLocationManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/location/RCTMLNNativeUserLocationManager.java} +7 -7
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/mapview/LayerSourceInfo.java +10 -10
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/mapview/RCTMLNAndroidTextureMapView.java +16 -0
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/mapview/RCTMLNAndroidTextureMapViewManager.java +31 -0
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.java → rctmln/src/main/java/com/maplibre/rctmln/components/mapview/RCTMLNMapView.java} +114 -114
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLMapViewManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/mapview/RCTMLNMapViewManager.java} +46 -46
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/mapview/helpers/CameraChangeTracker.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyle.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/RCTMLNStyle.java} +12 -12
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyleFactory.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/RCTMLNStyleFactory.java} +422 -422
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyleFunctionParser.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/RCTMLNStyleFunctionParser.java} +8 -9
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyleValue.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/RCTMLNStyleValue.java} +9 -9
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/styles/layers/RCTLayer.java +17 -17
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNBackgroundLayer.java +27 -0
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLBackgroundLayerManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNBackgroundLayerManager.java} +13 -13
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLCircleLayer.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNCircleLayer.java} +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLCircleLayerManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNCircleLayerManager.java} +15 -15
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillExtrusionLayer.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNFillExtrusionLayer.java} +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillExtrusionLayerManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNFillExtrusionLayerManager.java} +16 -16
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillLayer.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNFillLayer.java} +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillLayerManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNFillLayerManager.java} +16 -16
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLHeatmapLayer.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNHeatmapLayer.java} +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLHeatmapLayerManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNHeatmapLayerManager.java} +15 -15
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLLineLayer.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNLineLayer.java} +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLLineLayerManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNLineLayerManager.java} +17 -17
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNRasterLayer.java +27 -0
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLRasterLayerManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNRasterLayerManager.java} +13 -13
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLSymbolLayer.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNSymbolLayer.java} +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLSymbolLayerManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNSymbolLayerManager.java} +15 -15
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/light/RCTMGLLight.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/light/RCTMLNLight.java} +16 -16
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/light/RCTMGLLightManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/light/RCTMLNLightManager.java} +6 -6
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLImageSource.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNImageSource.java} +7 -7
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLImageSourceManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNImageSourceManager.java} +15 -15
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLRasterSource.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNRasterSource.java} +6 -6
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLRasterSourceManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNRasterSourceManager.java} +7 -7
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLShapeSource.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNShapeSource.java} +22 -22
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLShapeSourceManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNShapeSourceManager.java} +35 -35
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLTileSource.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNTileSource.java} +5 -5
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLTileSourceManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNTileSourceManager.java} +4 -4
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLVectorSource.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNVectorSource.java} +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLVectorSourceManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNVectorSourceManager.java} +12 -12
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/styles/sources/RCTSource.java +14 -14
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/AbstractEvent.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/AndroidCallbackEvent.java +2 -2
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/EventEmitter.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/FeatureClickEvent.java +8 -8
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/IEvent.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/ImageMissingEvent.java +3 -3
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/LocationEvent.java +6 -6
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/MapChangeEvent.java +3 -3
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/MapClickEvent.java +5 -5
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/MapUserTrackingModeEvent.java +4 -4
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/OfflineEvent.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/PointAnnotationClickEvent.java +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/PointAnnotationDragEvent.java +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/constants/EventKeys.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/constants/EventTypes.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/http/CustomHeadersInterceptor.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/location/LocationManager.java +8 -8
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/location/UserLocation.java +2 -2
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/location/UserLocationVerticalAlignment.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/location/UserTrackingMode.java +4 -4
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/location/UserTrackingState.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLLocationModule.java → rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNLocationModule.java} +11 -11
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLLogging.java → rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNLogging.java} +7 -7
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLModule.java → rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNModule.java} +30 -30
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLOfflineModule.java → rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNOfflineModule.java} +42 -47
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLSnapshotModule.java → rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNSnapshotModule.java} +14 -14
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/BitmapUtils.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/ClusterPropertyEntry.java +2 -2
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/ConvertUtils.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/DownloadMapImageTask.java +6 -6
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/ExpressionParser.java +3 -3
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/GeoJSONUtils.java +14 -14
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/GeoViewport.java +4 -4
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/ImageEntry.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/ResourceUtils.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/SimpleEventCallback.java +5 -5
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/SphericalMercator.java +2 -2
- package/android/rctmln/src/main/res/values/strings.xml +3 -0
- package/android/settings.gradle +1 -1
- package/docs/Annotation.md +8 -9
- package/docs/Annotations.md +1 -1
- package/docs/BackgroundLayer.md +2 -10
- package/docs/Callout.md +5 -5
- package/docs/Camera.md +21 -50
- package/docs/CircleLayer.md +2 -10
- package/docs/CustomHttpHeaders.md +4 -4
- package/docs/FillExtrusionLayer.md +2 -10
- package/docs/FillLayer.md +2 -10
- package/docs/HeatmapLayer.md +2 -10
- package/docs/ImageSource.md +3 -2
- package/docs/Images.md +5 -3
- package/docs/Light.md +1 -1
- package/docs/LineLayer.md +2 -10
- package/docs/MapView.md +31 -39
- package/docs/MarkerView.md +5 -3
- package/docs/NativeUserLocation.md +2 -2
- package/docs/PointAnnotation.md +6 -9
- package/docs/RasterLayer.md +2 -10
- package/docs/RasterSource.md +3 -2
- package/docs/ShapeSource.md +12 -7
- package/docs/Style.md +1 -1
- package/docs/SymbolLayer.md +3 -10
- package/docs/UserLocation.md +16 -10
- package/docs/VectorSource.md +6 -5
- package/docs/coordinates.md +6 -0
- package/docs/docs.json +557 -1317
- package/docs/location.md +6 -0
- package/docs/offlineManager.md +246 -0
- package/docs/snapshotManager.md +3 -3
- package/ios/{RCTMGL → RCTMLN}/CameraMode.h +1 -1
- package/ios/{RCTMGL → RCTMLN}/CameraMode.m +1 -1
- package/ios/{RCTMGL → RCTMLN}/CameraStop.h +4 -4
- package/ios/{RCTMGL → RCTMLN}/CameraStop.m +7 -7
- package/ios/{RCTMGL → RCTMLN}/CameraUpdateItem.h +3 -3
- package/ios/{RCTMGL → RCTMLN}/CameraUpdateItem.m +19 -19
- package/ios/{RCTMGL → RCTMLN}/CameraUpdateQueue.h +3 -3
- package/ios/{RCTMGL → RCTMLN}/CameraUpdateQueue.m +3 -3
- package/ios/{RCTMGL → RCTMLN}/FilterParser.h +1 -1
- package/ios/{RCTMGL → RCTMLN}/FilterParser.m +3 -3
- package/ios/{RCTMGL/MGLCustomHeaders.h → RCTMLN/MLNCustomHeaders.h} +3 -3
- package/ios/{RCTMGL/MGLCustomHeaders.m → RCTMLN/MLNCustomHeaders.m} +10 -10
- package/ios/RCTMLN/MLNFaux3DUserLocationAnnotationView.h +23 -0
- package/ios/{RCTMGL/MGLFaux3DUserLocationAnnotationView.m → RCTMLN/MLNFaux3DUserLocationAnnotationView.m} +38 -38
- package/ios/{RCTMGL/MGLModule.h → RCTMLN/MLNModule.h} +3 -3
- package/ios/{RCTMGL/MGLModule.m → RCTMLN/MLNModule.m} +91 -91
- package/ios/{RCTMGL/MGLOfflineModule.h → RCTMLN/MLNOfflineModule.h} +4 -4
- package/ios/{RCTMGL/MGLOfflineModule.m → RCTMLN/MLNOfflineModule.m} +59 -59
- package/ios/{RCTMGL/MGLSnapshotModule.h → RCTMLN/MLNSnapshotModule.h} +3 -3
- package/ios/{RCTMGL/MGLSnapshotModule.m → RCTMLN/MLNSnapshotModule.m} +14 -14
- package/ios/{RCTMGL/MGLUserLocationHeadingArrowLayer.h → RCTMLN/MLNUserLocationHeadingArrowLayer.h} +4 -4
- package/ios/{RCTMGL/MGLUserLocationHeadingArrowLayer.m → RCTMLN/MLNUserLocationHeadingArrowLayer.m} +7 -7
- package/ios/RCTMLN/MLNUserLocationHeadingBeamLayer.h +11 -0
- package/ios/{RCTMGL/MGLUserLocationHeadingBeamLayer.m → RCTMLN/MLNUserLocationHeadingBeamLayer.m} +10 -10
- package/ios/{RCTMGL/MGLUserLocationHeadingIndicator.h → RCTMLN/MLNUserLocationHeadingIndicator.h} +3 -3
- package/ios/{RCTMGL → RCTMLN}/RCTConvert+Mapbox.h +1 -1
- package/ios/{RCTMGL → RCTMLN}/RCTConvert+Mapbox.m +1 -1
- package/ios/{RCTMGL/RCTMGL.h → RCTMLN/RCTMLN.h} +3 -3
- package/ios/{RCTMGL/RCTMGL.m → RCTMLN/RCTMLN.m} +4 -4
- package/ios/RCTMLN/RCTMLNBackgroundLayer.h +14 -0
- package/ios/RCTMLN/RCTMLNBackgroundLayer.m +27 -0
- package/ios/{RCTMGL/RCTMGLBackgroundLayerManager.h → RCTMLN/RCTMLNBackgroundLayerManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLBackgroundLayerManager.m → RCTMLN/RCTMLNBackgroundLayerManager.m} +6 -6
- package/ios/{RCTMGL/RCTMGLCallout.h → RCTMLN/RCTMLNCallout.h} +4 -4
- package/ios/{RCTMGL/RCTMGLCallout.m → RCTMLN/RCTMLNCallout.m} +6 -6
- package/ios/{RCTMGL/RCTMGLCalloutManager.h → RCTMLN/RCTMLNCalloutManager.h} +3 -3
- package/ios/RCTMLN/RCTMLNCalloutManager.m +21 -0
- package/ios/{RCTMGL/RCTMGLCamera.h → RCTMLN/RCTMLNCamera.h} +6 -6
- package/ios/{RCTMGL/RCTMGLCamera.m → RCTMLN/RCTMLNCamera.m} +30 -30
- package/ios/{RCTMGL/RCTMGLCameraManager.h → RCTMLN/RCTMLNCameraManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLCameraManager.m → RCTMLN/RCTMLNCameraManager.m} +7 -7
- package/ios/RCTMLN/RCTMLNCircleLayer.h +13 -0
- package/ios/{RCTMGL/RCTMGLCircleLayer.m → RCTMLN/RCTMLNCircleLayer.m} +10 -10
- package/ios/{RCTMGL/RCTMGLCircleLayerManager.h → RCTMLN/RCTMLNCircleLayerManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLCircleLayerManager.m → RCTMLN/RCTMLNCircleLayerManager.m} +6 -6
- package/ios/{RCTMGL/RCTMGLEvent.h → RCTMLN/RCTMLNEvent.h} +6 -6
- package/ios/{RCTMGL/RCTMGLEvent.m → RCTMLN/RCTMLNEvent.m} +8 -8
- package/ios/{RCTMGL/RCTMGLEventProtocol.h → RCTMLN/RCTMLNEventProtocol.h} +3 -3
- package/ios/{RCTMGL/RCTMGLEventTypes.h → RCTMLN/RCTMLNEventTypes.h} +3 -3
- package/ios/{RCTMGL/RCTMGLEventTypes.m → RCTMLN/RCTMLNEventTypes.m} +4 -4
- package/ios/RCTMLN/RCTMLNFillExtrusionLayer.h +14 -0
- package/ios/{RCTMGL/RCTMGLFillExtrusionLayer.m → RCTMLN/RCTMLNFillExtrusionLayer.m} +10 -10
- package/ios/{RCTMGL/RCTMGLFillExtrusionLayerManager.h → RCTMLN/RCTMLNFillExtrusionLayerManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLFillExtrusionLayerManager.m → RCTMLN/RCTMLNFillExtrusionLayerManager.m} +6 -6
- package/ios/RCTMLN/RCTMLNFillLayer.h +14 -0
- package/ios/{RCTMGL/RCTMGLFillLayer.m → RCTMLN/RCTMLNFillLayer.m} +10 -10
- package/ios/{RCTMGL/RCTMGLFillLayerManager.h → RCTMLN/RCTMLNFillLayerManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLFillLayerManager.m → RCTMLN/RCTMLNFillLayerManager.m} +6 -6
- package/ios/RCTMLN/RCTMLNHeatmapLayer.h +12 -0
- package/ios/RCTMLN/RCTMLNHeatmapLayer.m +30 -0
- package/ios/RCTMLN/RCTMLNHeatmapLayerManager.h +12 -0
- package/ios/{RCTMGL/RCTMGLHeatmapLayerManager.m → RCTMLN/RCTMLNHeatmapLayerManager.m} +6 -6
- package/ios/{RCTMGL/RCTMGLImageQueue.h → RCTMLN/RCTMLNImageQueue.h} +3 -3
- package/ios/{RCTMGL/RCTMGLImageQueue.m → RCTMLN/RCTMLNImageQueue.m} +10 -10
- package/ios/{RCTMGL/RCTMGLImageQueueOperation.h → RCTMLN/RCTMLNImageQueueOperation.h} +3 -3
- package/ios/{RCTMGL/RCTMGLImageQueueOperation.m → RCTMLN/RCTMLNImageQueueOperation.m} +12 -12
- package/ios/{RCTMGL/RCTMGLImageSource.h → RCTMLN/RCTMLNImageSource.h} +4 -4
- package/ios/{RCTMGL/RCTMGLImageSource.m → RCTMLN/RCTMLNImageSource.m} +11 -11
- package/ios/{RCTMGL/RCTMGLImageSourceManager.h → RCTMLN/RCTMLNImageSourceManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLImageSourceManager.m → RCTMLN/RCTMLNImageSourceManager.m} +6 -6
- package/ios/{RCTMGL/RCTMGLImages.h → RCTMLN/RCTMLNImages.h} +4 -4
- package/ios/{RCTMGL/RCTMGLImages.m → RCTMLN/RCTMLNImages.m} +10 -10
- package/ios/RCTMLN/RCTMLNImagesManager.h +5 -0
- package/ios/{RCTMGL/RCTMGLImagesManager.m → RCTMLN/RCTMLNImagesManager.m} +4 -4
- package/ios/{RCTMGL/RCTMGLLayer.h → RCTMLN/RCTMLNLayer.h} +11 -11
- package/ios/{RCTMGL/RCTMGLLayer.m → RCTMLN/RCTMLNLayer.m} +17 -17
- package/ios/{RCTMGL/RCTMGLLight.h → RCTMLN/RCTMLNLight.h} +5 -5
- package/ios/{RCTMGL/RCTMGLLight.m → RCTMLN/RCTMLNLight.m} +9 -9
- package/ios/{RCTMGL/RCTMGLLightManager.h → RCTMLN/RCTMLNLightManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLLightManager.m → RCTMLN/RCTMLNLightManager.m} +6 -6
- package/ios/RCTMLN/RCTMLNLineLayer.h +14 -0
- package/ios/{RCTMGL/RCTMGLLineLayer.m → RCTMLN/RCTMLNLineLayer.m} +10 -10
- package/ios/{RCTMGL/RCTMGLLineLayerManager.h → RCTMLN/RCTMLNLineLayerManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLLineLayerManager.m → RCTMLN/RCTMLNLineLayerManager.m} +6 -6
- package/ios/{RCTMGL/RCTMGLLocation.h → RCTMLN/RCTMLNLocation.h} +3 -3
- package/ios/{RCTMGL/RCTMGLLocation.m → RCTMLN/RCTMLNLocation.m} +4 -4
- package/ios/RCTMLN/RCTMLNLocationManager.h +30 -0
- package/ios/{RCTMGL/RCTMGLLocationManager.m → RCTMLN/RCTMLNLocationManager.m} +16 -16
- package/ios/RCTMLN/RCTMLNLocationManagerDelegate.h +20 -0
- package/ios/{RCTMGL/RCTMGLLocationModule.h → RCTMLN/RCTMLNLocationModule.h} +3 -3
- package/ios/{RCTMGL/RCTMGLLocationModule.m → RCTMLN/RCTMLNLocationModule.m} +13 -13
- package/ios/RCTMLN/RCTMLNLogging.h +18 -0
- package/ios/{RCTMGL/RCTMGLLogging.m → RCTMLN/RCTMLNLogging.m} +29 -29
- package/ios/{RCTMGL/RCTMGLMapTouchEvent.h → RCTMLN/RCTMLNMapTouchEvent.h} +10 -10
- package/ios/{RCTMGL/RCTMGLMapTouchEvent.m → RCTMLN/RCTMLNMapTouchEvent.m} +18 -18
- package/ios/{RCTMGL/RCTMGLMapView.h → RCTMLN/RCTMLNMapView.h} +30 -30
- package/ios/{RCTMGL/RCTMGLMapView.m → RCTMLN/RCTMLNMapView.m} +82 -82
- package/ios/{RCTMGL/RCTMGLMapViewManager.h → RCTMLN/RCTMLNMapViewManager.h} +4 -4
- package/ios/{RCTMGL/RCTMGLMapViewManager.m → RCTMLN/RCTMLNMapViewManager.m} +117 -117
- package/ios/{RCTMGL/RCTMGLNativeUserLocation.h → RCTMLN/RCTMLNNativeUserLocation.h} +5 -5
- package/ios/{RCTMGL/RCTMGLNativeUserLocation.m → RCTMLN/RCTMLNNativeUserLocation.m} +10 -10
- package/ios/RCTMLN/RCTMLNNativeUserLocationManager.h +5 -0
- package/ios/RCTMLN/RCTMLNNativeUserLocationManager.m +25 -0
- package/ios/{RCTMGL/RCTMGLPointAnnotation.h → RCTMLN/RCTMLNPointAnnotation.h} +8 -8
- package/ios/{RCTMGL/RCTMGLPointAnnotation.m → RCTMLN/RCTMLNPointAnnotation.m} +21 -21
- package/ios/{RCTMGL/RCTMGLPointAnnotationManager.h → RCTMLN/RCTMLNPointAnnotationManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLPointAnnotationManager.m → RCTMLN/RCTMLNPointAnnotationManager.m} +6 -6
- package/ios/RCTMLN/RCTMLNRasterLayer.h +14 -0
- package/ios/RCTMLN/RCTMLNRasterLayer.m +30 -0
- package/ios/{RCTMGL/RCTMGLRasterLayerManager.h → RCTMLN/RCTMLNRasterLayerManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLRasterLayerManager.m → RCTMLN/RCTMLNRasterLayerManager.m} +6 -6
- package/ios/{RCTMGL/RCTMGLRasterSource.h → RCTMLN/RCTMLNRasterSource.h} +5 -5
- package/ios/{RCTMGL/RCTMGLRasterSource.m → RCTMLN/RCTMLNRasterSource.m} +11 -11
- package/ios/{RCTMGL/RCTMGLRasterSourceManager.h → RCTMLN/RCTMLNRasterSourceManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLRasterSourceManager.m → RCTMLN/RCTMLNRasterSourceManager.m} +6 -6
- package/ios/{RCTMGL/RCTMGLShapeSource.h → RCTMLN/RCTMLNShapeSource.h} +10 -10
- package/ios/{RCTMGL/RCTMGLShapeSource.m → RCTMLN/RCTMLNShapeSource.m} +50 -50
- package/ios/{RCTMGL/RCTMGLShapeSourceManager.h → RCTMLN/RCTMLNShapeSourceManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLShapeSourceManager.m → RCTMLN/RCTMLNShapeSourceManager.m} +25 -25
- package/ios/{RCTMGL/RCTMGLSource.h → RCTMLN/RCTMLNSource.h} +8 -8
- package/ios/{RCTMGL/RCTMGLSource.m → RCTMLN/RCTMLNSource.m} +15 -15
- package/ios/RCTMLN/RCTMLNStyle.h +222 -0
- package/ios/{RCTMGL/RCTMGLStyle.m → RCTMLN/RCTMLNStyle.m} +345 -345
- package/ios/{RCTMGL/RCTMGLStyleValue.h → RCTMLN/RCTMLNStyleValue.h} +7 -7
- package/ios/{RCTMGL/RCTMGLStyleValue.m → RCTMLN/RCTMLNStyleValue.m} +24 -24
- package/ios/{RCTMGL/RCTMGLSymbolLayer.h → RCTMLN/RCTMLNSymbolLayer.h} +4 -4
- package/ios/{RCTMGL/RCTMGLSymbolLayer.m → RCTMLN/RCTMLNSymbolLayer.m} +12 -12
- package/ios/{RCTMGL/RCTMGLSymbolLayerManager.h → RCTMLN/RCTMLNSymbolLayerManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLSymbolLayerManager.m → RCTMLN/RCTMLNSymbolLayerManager.m} +6 -6
- package/ios/{RCTMGL/RCTMGLTileSource.h → RCTMLN/RCTMLNTileSource.h} +6 -6
- package/ios/RCTMLN/RCTMLNTileSource.m +31 -0
- package/ios/RCTMLN/RCTMLNUserLocation.h +15 -0
- package/ios/{RCTMGL/RCTMGLUserLocation.m → RCTMLN/RCTMLNUserLocation.m} +8 -8
- package/ios/{RCTMGL/RCTMGLUtils.h → RCTMLN/RCTMLNUtils.h} +7 -7
- package/ios/{RCTMGL/RCTMGLUtils.m → RCTMLN/RCTMLNUtils.m} +20 -20
- package/ios/{RCTMGL/RCTMGLVectorLayer.h → RCTMLN/RCTMLNVectorLayer.h} +4 -4
- package/ios/{RCTMGL/RCTMGLVectorLayer.m → RCTMLN/RCTMLNVectorLayer.m} +7 -7
- package/ios/{RCTMGL/RCTMGLVectorSource.h → RCTMLN/RCTMLNVectorSource.h} +6 -6
- package/ios/{RCTMGL/RCTMGLVectorSource.m → RCTMLN/RCTMLNVectorSource.m} +9 -9
- package/ios/{RCTMGL/RCTMGLVectorSourceManager.h → RCTMLN/RCTMLNVectorSourceManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLVectorSourceManager.m → RCTMLN/RCTMLNVectorSourceManager.m} +11 -11
- package/ios/{RCTMGL → RCTMLN}/RNMBImageUtils.h +1 -1
- package/ios/{RCTMGL → RCTMLN}/RNMBImageUtils.m +2 -2
- package/ios/{RCTMGL → RCTMLN}/ViewManager.h +3 -3
- package/ios/{RCTMGL → RCTMLN}/ViewManager.m +4 -4
- package/ios/RCTMLN.xcodeproj/project.pbxproj +775 -0
- package/ios/install.md +6 -7
- package/javascript/MLNModule.ts +37 -0
- package/javascript/Maplibre.ts +64 -0
- package/javascript/components/BackgroundLayer.tsx +50 -0
- package/javascript/components/Callout.tsx +141 -0
- package/javascript/components/Camera.tsx +623 -0
- package/javascript/components/CircleLayer.tsx +53 -0
- package/javascript/components/FillExtrusionLayer.tsx +47 -0
- package/javascript/components/FillLayer.tsx +44 -0
- package/javascript/components/HeadingIndicator.tsx +31 -0
- package/javascript/components/HeatmapLayer.tsx +46 -0
- package/javascript/components/ImageSource.tsx +71 -0
- package/javascript/components/Images.tsx +134 -0
- package/javascript/components/Light.tsx +40 -0
- package/javascript/components/LineLayer.tsx +45 -0
- package/javascript/components/MapView.tsx +880 -0
- package/javascript/components/MarkerView.tsx +88 -0
- package/javascript/components/NativeUserLocation.tsx +31 -0
- package/javascript/components/PointAnnotation.tsx +245 -0
- package/javascript/components/RasterLayer.tsx +44 -0
- package/javascript/components/RasterSource.tsx +114 -0
- package/javascript/components/ShapeSource.tsx +433 -0
- package/javascript/components/Style.tsx +368 -0
- package/javascript/components/SymbolLayer.tsx +78 -0
- package/javascript/components/UserLocation.tsx +289 -0
- package/javascript/components/VectorSource.tsx +218 -0
- package/javascript/components/annotations/Annotation.tsx +161 -0
- package/javascript/hooks/useAbstractLayer.ts +127 -0
- package/javascript/hooks/useAbstractSource.ts +34 -0
- package/javascript/hooks/useNativeBridge.ts +125 -0
- package/javascript/hooks/useNativeRef.ts +13 -0
- package/javascript/hooks/useOnce.ts +12 -0
- package/javascript/index.ts +4 -0
- package/javascript/modules/location/locationManager.ts +162 -0
- package/javascript/modules/offline/OfflineCreatePackOptions.ts +62 -0
- package/javascript/modules/offline/OfflinePack.ts +56 -0
- package/javascript/modules/offline/{offlineManager.js → offlineManager.ts} +91 -35
- package/javascript/modules/snapshot/SnapshotOptions.ts +104 -0
- package/javascript/modules/snapshot/{snapshotManager.js → snapshotManager.ts} +7 -7
- package/javascript/requestAndroidLocationPermissions.ts +29 -0
- package/javascript/types/BaseProps.ts +5 -0
- package/javascript/types/OnPressEvent.ts +13 -0
- package/javascript/types/index.ts +11 -0
- package/javascript/utils/BridgeValue.ts +90 -0
- package/javascript/utils/{Logger.js → Logger.ts} +50 -31
- package/javascript/utils/MaplibreStyles.d.ts +1486 -0
- package/javascript/utils/StyleValue.ts +49 -0
- package/javascript/utils/animated/AbstractAnimatedCoordinates.ts +134 -0
- package/javascript/utils/animated/Animated.ts +61 -0
- package/javascript/utils/animated/AnimatedCoordinatesArray.ts +108 -0
- package/javascript/utils/animated/{AnimatedExtractCoordinateFromArray.js → AnimatedExtractCoordinateFromArray.ts} +8 -8
- package/javascript/utils/animated/{AnimatedPoint.js → AnimatedPoint.ts} +25 -17
- package/javascript/utils/animated/{AnimatedRouteCoordinatesArray.js → AnimatedRouteCoordinatesArray.ts} +46 -25
- package/javascript/utils/animated/AnimatedShape.ts +93 -0
- package/javascript/utils/deprecation.ts +31 -0
- package/javascript/utils/filterUtils.ts +9 -0
- package/javascript/utils/geoUtils.ts +79 -0
- package/javascript/utils/index.ts +133 -0
- package/javascript/utils/styleMap.ts +264 -0
- package/maplibre-react-native.podspec +8 -8
- package/package.json +64 -44
- package/plugin/build/withMapLibre.d.ts +2 -2
- package/plugin/build/withMapLibre.js +38 -23
- package/react-native.config.js +1 -1
- package/scripts/autogenHelpers/globals.js +11 -11
- package/scripts/autogenerate.js +25 -17
- package/scripts/download-style-spec.sh +1 -1
- package/scripts/templates/MaplibreStyles.ts.ejs +99 -0
- package/scripts/templates/{RCTMGLStyle.h.ejs → RCTMLNStyle.h.ejs} +8 -8
- package/scripts/templates/{RCTMGLStyle.m.ejs → RCTMLNStyle.m.ejs} +10 -10
- package/scripts/templates/{RCTMGLStyleFactory.java.ejs → RCTMLNStyleFactory.java.ejs} +24 -24
- package/scripts/templates/index.d.ts.ejs +71 -42
- package/scripts/templates/{styleMap.js.ejs → styleMap.ts.ejs} +3 -33
- package/setup-jest.js +5 -20
- package/tsconfig.json +20 -61
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -158
- package/.prettierrc.js +0 -7
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/RCTMGLPackage.java +0 -99
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLCalloutManager.java +0 -22
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLAndroidTextureMapView.java +0 -16
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLAndroidTextureMapViewManager.java +0 -31
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLBackgroundLayer.java +0 -27
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLRasterLayer.java +0 -27
- package/android/rctmgl/src/main/res/values/strings.xml +0 -3
- package/index.d.ts +0 -955
- package/ios/RCTMGL/MGLFaux3DUserLocationAnnotationView.h +0 -23
- package/ios/RCTMGL/MGLUserLocationHeadingBeamLayer.h +0 -11
- package/ios/RCTMGL/RCTMGLBackgroundLayer.h +0 -14
- package/ios/RCTMGL/RCTMGLBackgroundLayer.m +0 -27
- package/ios/RCTMGL/RCTMGLCalloutManager.m +0 -21
- package/ios/RCTMGL/RCTMGLCircleLayer.h +0 -13
- package/ios/RCTMGL/RCTMGLFillExtrusionLayer.h +0 -14
- package/ios/RCTMGL/RCTMGLFillLayer.h +0 -14
- package/ios/RCTMGL/RCTMGLHeatmapLayer.h +0 -12
- package/ios/RCTMGL/RCTMGLHeatmapLayer.m +0 -30
- package/ios/RCTMGL/RCTMGLHeatmapLayerManager.h +0 -12
- package/ios/RCTMGL/RCTMGLImagesManager.h +0 -5
- package/ios/RCTMGL/RCTMGLLineLayer.h +0 -14
- package/ios/RCTMGL/RCTMGLLocationManager.h +0 -30
- package/ios/RCTMGL/RCTMGLLocationManagerDelegate.h +0 -20
- package/ios/RCTMGL/RCTMGLLogging.h +0 -18
- package/ios/RCTMGL/RCTMGLNativeUserLocationManager.h +0 -5
- package/ios/RCTMGL/RCTMGLNativeUserLocationManager.m +0 -25
- package/ios/RCTMGL/RCTMGLRasterLayer.h +0 -14
- package/ios/RCTMGL/RCTMGLRasterLayer.m +0 -30
- package/ios/RCTMGL/RCTMGLStyle.h +0 -222
- package/ios/RCTMGL/RCTMGLTileSource.m +0 -31
- package/ios/RCTMGL/RCTMGLUserLocation.h +0 -15
- package/ios/RCTMGL.xcodeproj/project.pbxproj +0 -775
- package/javascript/components/AbstractLayer.js +0 -75
- package/javascript/components/AbstractSource.js +0 -15
- package/javascript/components/BackgroundLayer.js +0 -97
- package/javascript/components/Callout.js +0 -139
- package/javascript/components/Camera.js +0 -665
- package/javascript/components/CircleLayer.js +0 -101
- package/javascript/components/FillExtrusionLayer.js +0 -98
- package/javascript/components/FillLayer.js +0 -94
- package/javascript/components/HeadingIndicator.js +0 -31
- package/javascript/components/HeatmapLayer.js +0 -99
- package/javascript/components/ImageSource.js +0 -82
- package/javascript/components/Images.js +0 -119
- package/javascript/components/Light.js +0 -47
- package/javascript/components/LineLayer.js +0 -94
- package/javascript/components/MapView.js +0 -814
- package/javascript/components/MarkerView.js +0 -87
- package/javascript/components/NativeBridgeComponent.js +0 -86
- package/javascript/components/NativeUserLocation.js +0 -41
- package/javascript/components/PointAnnotation.js +0 -216
- package/javascript/components/RasterLayer.js +0 -95
- package/javascript/components/RasterSource.js +0 -124
- package/javascript/components/ShapeSource.js +0 -372
- package/javascript/components/Style.js +0 -267
- package/javascript/components/SymbolLayer.js +0 -120
- package/javascript/components/UserLocation.js +0 -275
- package/javascript/components/VectorSource.js +0 -200
- package/javascript/components/annotations/Annotation.js +0 -122
- package/javascript/index.js +0 -149
- package/javascript/modules/location/locationManager.js +0 -101
- package/javascript/modules/offline/OfflineCreatePackOptions.js +0 -46
- package/javascript/modules/offline/OfflinePack.js +0 -40
- package/javascript/modules/snapshot/SnapshotOptions.js +0 -67
- package/javascript/utils/BridgeValue.js +0 -81
- package/javascript/utils/animated/Animated.js +0 -39
- package/javascript/utils/animated/AnimatedCoordinatesArray.js +0 -191
- package/javascript/utils/animated/AnimatedShape.js +0 -72
- package/javascript/utils/deprecation.js +0 -25
- package/javascript/utils/filterUtils.js +0 -7
- package/javascript/utils/geoUtils.js +0 -73
- package/javascript/utils/index.js +0 -113
- package/javascript/utils/styleMap.js +0 -1932
- /package/android/{rctmgl → rctmln}/.settings/org.eclipse.buildship.core.prefs +0 -0
- /package/android/{rctmgl → rctmln}/proguard-rules.pro +0 -0
- /package/android/{rctmgl → rctmln}/src/main/res/drawable/empty.xml +0 -0
- /package/android/{rctmgl → rctmln}/src/main/res/drawable/empty_drawable.png +0 -0
- /package/android/{rctmgl → rctmln}/src/main/res/drawable-xxhdpi/red_marker.png +0 -0
- /package/android/{rctmgl → rctmln}/src/main/res/layout/annotation.xml +0 -0
- /package/ios/{RCTMGL → RCTMLN}/index.d.ts +0 -0
package/docs/Annotations.md
CHANGED
|
@@ -8,5 +8,5 @@ Comparsion of various annotations available in MapLibre React Native:
|
|
|
8
8
|
|Control Z-index | ✓ |iOS: always on top, android: n/a |always on top | ✓ |
|
|
9
9
|
|Clustering | ✓ | | | ✓ |
|
|
10
10
|
|Style with expressions | ✓ | | | ✓ |
|
|
11
|
-
|iOS implementation | [
|
|
11
|
+
|iOS implementation | [MLNSymbolStyleLayer](https://maplibre.org/maplibre-gl-native/ios/api/Classes/MLNSymbolStyleLayer.html) |[MLNAnnotationView](https://maplibre.org/maplibre-gl-native/ios/api/Classes/MLNAnnotationView.html) |[MLNAnnotationView](https://maplibre.org/maplibre-gl-native/ios/api/Classes/MLNAnnotationView.html) |[MLNCircleStyleLayer](https://maplibre.org/maplibre-gl-native/ios/api/Classes/MLNCircleStyleLayer.html) |
|
|
12
12
|
|android implementation | [SymbolLayer](https://maplibre.org/maplibre-gl-native/android/api/com/mapbox/mapboxsdk/style/layers/SymbolLayer.html)|[annotation.Symbol](https://docs.mapbox.com/android/api/plugins/annotation/0.8.0/com/mapbox/mapboxsdk/plugins/annotation/Symbol.html)|[annotation.Marker](https://docs.mapbox.com/android/api/plugins/markerview/0.4.0/com/mapbox/mapboxsdk/plugins/markerview/MarkerView.html) |[CircleLayer](https://maplibre.org/maplibre-gl-native/android/api/com/mapbox/mapboxsdk/style/layers/CircleLayer.html)|
|
package/docs/BackgroundLayer.md
CHANGED
|
@@ -5,16 +5,8 @@
|
|
|
5
5
|
### props
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
|
-
|
|
|
9
|
-
| sourceID | `
|
|
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 |
|
|
8
|
+
| style | `BackgroundLayerStyleProps` | `none` | `false` | Customizable style attributes |
|
|
9
|
+
| sourceID | `FIX ME UNKNOWN TYPE` | `MapLibreGL.StyleSource.DefaultSourceID` | `false` | FIX ME NO DESCRIPTION |
|
|
18
10
|
|
|
19
11
|
|
|
20
12
|
### styles
|
package/docs/Callout.md
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
8
|
| title | `string` | `none` | `false` | String that get's displayed in the default callout. |
|
|
9
|
-
| style | `
|
|
10
|
-
| containerStyle | `
|
|
11
|
-
| contentStyle | `
|
|
12
|
-
| tipStyle | `
|
|
13
|
-
| textStyle | `
|
|
9
|
+
| style | `ViewStyle` | `none` | `false` | Style property for the Animated.View wrapper, apply animations to this |
|
|
10
|
+
| containerStyle | `ViewStyle` | `none` | `false` | Style property for the native RCTMLNCallout container, set at your own risk. |
|
|
11
|
+
| contentStyle | `ViewStyle` | `none` | `false` | Style property for the content bubble. |
|
|
12
|
+
| tipStyle | `ViewStyle` | `none` | `false` | Style property for the triangle tip under the content. |
|
|
13
|
+
| textStyle | `ViewStyle` | `none` | `false` | Style property for the title in the content bubble. |
|
|
14
14
|
|
|
15
15
|
|
package/docs/Camera.md
CHANGED
|
@@ -5,55 +5,26 @@
|
|
|
5
5
|
### props
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
|
-
|
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
| heading | `number` | `none` | `false` | Heading on map |
|
|
19
|
-
| pitch | `number` | `none` | `false` | Pitch on map |
|
|
20
|
-
| bounds | `shape` | `none` | `false` | Represents a rectangle in geographical coordinates marking the visible area of the map.<br/>The `bounds.padding*` properties are deprecated; use root `padding` property instead. |
|
|
21
|
-
| ne | `array` | `none` | `true` | North east coordinate of bound |
|
|
22
|
-
| sw | `array` | `none` | `true` | South west coordinate of bound |
|
|
23
|
-
| paddingLeft | `number` | `none` | `false` | Left padding in points (deprecated; use root `padding` property instead) |
|
|
24
|
-
| paddingRight | `number` | `none` | `false` | Right padding in points (deprecated; use root `padding` property instead) |
|
|
25
|
-
| paddingTop | `number` | `none` | `false` | Top padding in points (deprecated; use root `padding` property instead) |
|
|
26
|
-
| paddingBottom | `number` | `none` | `false` | Bottom padding in points (deprecated; use root `padding` property instead) |
|
|
27
|
-
| onUserTrackingModeChange | `func` | `none` | `false` | Callback that is triggered on user tracking mode changes |
|
|
28
|
-
| zoomLevel | `number` | `none` | `false` | Zoom level of the map |
|
|
29
|
-
| centerCoordinate | `array` | `none` | `false` | Center coordinate on map [lng, lat] |
|
|
30
|
-
| padding | `shape` | `none` | `false` | Padding around edges of map in points |
|
|
31
|
-
| paddingLeft | `number` | `none` | `false` | Left padding in points |
|
|
32
|
-
| paddingRight | `number` | `none` | `false` | Right padding in points |
|
|
33
|
-
| paddingTop | `number` | `none` | `false` | Top padding in points |
|
|
34
|
-
| paddingBottom | `number` | `none` | `false` | Bottom padding in points |
|
|
35
|
-
| heading | `number` | `none` | `false` | Heading on map |
|
|
36
|
-
| pitch | `number` | `none` | `false` | Pitch on map |
|
|
37
|
-
| bounds | `shape` | `none` | `false` | Represents a rectangle in geographical coordinates marking the visible area of the map.<br/>The `bounds.padding*` properties are deprecated; use root `padding` property instead. |
|
|
38
|
-
| ne | `array` | `none` | `true` | North east coordinate of bound |
|
|
39
|
-
| sw | `array` | `none` | `true` | South west coordinate of bound |
|
|
40
|
-
| paddingLeft | `number` | `none` | `false` | Left padding in points (deprecated; use root `padding` property instead) |
|
|
41
|
-
| paddingRight | `number` | `none` | `false` | Right padding in points (deprecated; use root `padding` property instead) |
|
|
42
|
-
| paddingTop | `number` | `none` | `false` | Top padding in points (deprecated; use root `padding` property instead) |
|
|
43
|
-
| paddingBottom | `number` | `none` | `false` | Bottom padding in points (deprecated; use root `padding` property instead) |
|
|
44
|
-
| onUserTrackingModeChange | `func` | `none` | `false` | Callback that is triggered on user tracking mode changes |
|
|
45
|
-
| zoomLevel | `number` | `none` | `false` | Zoom level of the map |
|
|
8
|
+
| centerCoordinate | `GeoJSON.Position` | `none` | `false` | The location on which the map should center. |
|
|
9
|
+
| bounds | `CameraBoundsWithPadding` | `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. |
|
|
10
|
+
| heading | `number` | `none` | `false` | The heading (orientation) of the map. |
|
|
11
|
+
| pitch | `number` | `none` | `false` | The pitch of the map. |
|
|
12
|
+
| zoomLevel | `number` | `none` | `false` | The zoom level of the map. |
|
|
13
|
+
| padding | `CameraPadding` | `none` | `false` | The viewport padding in points. |
|
|
14
|
+
| animationDuration | `number` | `2000` | `false` | The duration the map takes to animate to a new configuration. |
|
|
15
|
+
| animationMode | `"flyTo" \| "easeTo" \| "linearTo" \| "moveTo"` | `"easeTo"` | `false` | The easing or path the camera uses to animate to a new configuration. |
|
|
16
|
+
| allowUpdates | `boolean` | `true` | `false` | If false, the camera will not send any props to the native module. Intended to be used to prevent unnecessary tile fetching and improve performance when the map is not visible. Defaults to true. |
|
|
17
|
+
| defaultSettings | `CameraStop` | `none` | `false` | Default view settings applied on camera |
|
|
46
18
|
| minZoomLevel | `number` | `none` | `false` | The minimun zoom level of the map |
|
|
47
19
|
| maxZoomLevel | `number` | `none` | `false` | The maximun zoom level of the map |
|
|
48
|
-
| maxBounds | `
|
|
49
|
-
|
|
|
50
|
-
|
|
|
51
|
-
| followUserLocation | `bool` | `none` | `false` | Should the map orientation follow the user's. |
|
|
52
|
-
| followUserMode | `enum` | `none` | `false` | The mode used to track the user location on the map. One of; "normal", "compass", "course". Each mode string is also available as a member on the `MapLibreGL.UserTrackingModes` object. `Follow` (normal), `FollowWithHeading` (compass), `FollowWithCourse` (course). NOTE: `followUserLocation` must be set to `true` for any of the modes to take effect. [Example](../example/src/examples/Camera/SetUserTrackingModes.js) |
|
|
20
|
+
| maxBounds | `CameraBounds` | `none` | `false` | Restrict map panning so that the center is within these bounds |
|
|
21
|
+
| followUserLocation | `boolean` | `none` | `false` | Should the map orientation follow the user's. |
|
|
22
|
+
| followUserMode | `UserTrackingMode` | `none` | `false` | The mode used to track the user location on the map. One of; "normal", "compass", "course". Each mode string is also available as a member on the `MapLibreGL.UserTrackingModes` object. `Follow` (normal), `FollowWithHeading` (compass), `FollowWithCourse` (course). NOTE: `followUserLocation` must be set to `true` for any of the modes to take effect. [Example](../example/src/examples/Camera/SetUserTrackingModes.js) |
|
|
53
23
|
| followZoomLevel | `number` | `none` | `false` | The zoomLevel on map while followUserLocation is set to `true` |
|
|
54
24
|
| followPitch | `number` | `none` | `false` | The pitch on map while followUserLocation is set to `true` |
|
|
55
25
|
| followHeading | `number` | `none` | `false` | The heading on map while followUserLocation is set to `true` |
|
|
56
|
-
| triggerKey | `
|
|
26
|
+
| triggerKey | `string \| number` | `none` | `false` | Manually update the camera - helpful for when props did not update, however you still want the camera to move |
|
|
27
|
+
| onUserTrackingModeChange | `func` | `none` | `false` | FIX ME NO DESCRIPTION<br/>*signature:*`(event:MaplibreGLEvent) => void` |
|
|
57
28
|
|
|
58
29
|
### methods
|
|
59
30
|
#### fitBounds(northEastCoordinates, southWestCoordinates[, padding][, animationDuration])
|
|
@@ -63,9 +34,9 @@ Map camera transitions to fit provided bounds
|
|
|
63
34
|
##### arguments
|
|
64
35
|
| Name | Type | Required | Description |
|
|
65
36
|
| ---- | :--: | :------: | :----------: |
|
|
66
|
-
| `northEastCoordinates` | `
|
|
67
|
-
| `southWestCoordinates` | `
|
|
68
|
-
| `padding` | `Number` | `No` |
|
|
37
|
+
| `northEastCoordinates` | `GeoJSON.Position` | `Yes` | North east coordinate of bound |
|
|
38
|
+
| `southWestCoordinates` | `GeoJSON.Position` | `Yes` | South west coordinate of bound |
|
|
39
|
+
| `padding` | `Number \| Array` | `No` | Padding for the bounds |
|
|
69
40
|
| `animationDuration` | `Number` | `No` | Duration of camera animation |
|
|
70
41
|
|
|
71
42
|
|
|
@@ -85,7 +56,7 @@ Map camera will fly to new coordinate
|
|
|
85
56
|
##### arguments
|
|
86
57
|
| Name | Type | Required | Description |
|
|
87
58
|
| ---- | :--: | :------: | :----------: |
|
|
88
|
-
| `coordinates` | `
|
|
59
|
+
| `coordinates` | `GeoJSON.Position` | `Yes` | Coordinates that map camera will jump too |
|
|
89
60
|
| `animationDuration` | `Number` | `No` | Duration of camera animation |
|
|
90
61
|
|
|
91
62
|
|
|
@@ -103,7 +74,7 @@ Map camera will move to new coordinate at the same zoom level
|
|
|
103
74
|
##### arguments
|
|
104
75
|
| Name | Type | Required | Description |
|
|
105
76
|
| ---- | :--: | :------: | :----------: |
|
|
106
|
-
| `coordinates` | `
|
|
77
|
+
| `coordinates` | `GeoJSON.Position` | `Yes` | Coordinates that map camera will move too |
|
|
107
78
|
| `animationDuration` | `Number` | `No` | Duration of camera animation |
|
|
108
79
|
|
|
109
80
|
|
|
@@ -121,7 +92,7 @@ Map camera will zoom to specified level
|
|
|
121
92
|
##### arguments
|
|
122
93
|
| Name | Type | Required | Description |
|
|
123
94
|
| ---- | :--: | :------: | :----------: |
|
|
124
|
-
| `zoomLevel` | `
|
|
95
|
+
| `zoomLevel` | `number` | `Yes` | Zoom level that the map camera will animate too |
|
|
125
96
|
| `animationDuration` | `Number` | `No` | Duration of camera animation |
|
|
126
97
|
|
|
127
98
|
|
package/docs/CircleLayer.md
CHANGED
|
@@ -5,16 +5,8 @@
|
|
|
5
5
|
### props
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
|
-
|
|
|
9
|
-
| sourceID | `
|
|
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 |
|
|
8
|
+
| style | `CircleLayerStyleProps` | `none` | `false` | Customizable style attributes |
|
|
9
|
+
| sourceID | `FIX ME UNKNOWN TYPE` | `MapLibreGL.StyleSource.DefaultSourceID` | `false` | FIX ME NO DESCRIPTION |
|
|
18
10
|
|
|
19
11
|
|
|
20
12
|
### styles
|
|
@@ -14,14 +14,14 @@ None
|
|
|
14
14
|
|
|
15
15
|
#### IOS
|
|
16
16
|
|
|
17
|
-
To enable this on iOS you need to call `[[
|
|
17
|
+
To enable this on iOS you need to call `[[MLNCustomHeaders sharedInstance] initHeaders]` pretty early in the lifecycle of the application. This will swizzle the custom method.
|
|
18
18
|
Suggested location is `[AppDelegate application: didFinishLaunchingWithOptions:]`
|
|
19
19
|
|
|
20
20
|
#### Working example (AppDelegate.m)
|
|
21
21
|
|
|
22
22
|
```obj-c
|
|
23
23
|
// (1) Include the header file
|
|
24
|
-
#import "
|
|
24
|
+
#import "MLNCustomHeaders.h"
|
|
25
25
|
|
|
26
26
|
@implementation AppDelegate
|
|
27
27
|
|
|
@@ -32,9 +32,9 @@ Suggested location is `[AppDelegate application: didFinishLaunchingWithOptions:]
|
|
|
32
32
|
moduleName:@"SampleApp"
|
|
33
33
|
initialProperties:nil];
|
|
34
34
|
// (2) Init headers, add swizzle method
|
|
35
|
-
[[
|
|
35
|
+
[[MLNCustomHeaders sharedInstance] initHeaders];
|
|
36
36
|
// (3*) Optionally you can add some global headers here
|
|
37
|
-
[[
|
|
37
|
+
[[MLNCustomHeaders sharedInstance] addHeader:@"IP" forHeaderName:@"X-For-Real"];
|
|
38
38
|
|
|
39
39
|
...
|
|
40
40
|
return YES;
|
|
@@ -5,16 +5,8 @@
|
|
|
5
5
|
### props
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
|
-
|
|
|
9
|
-
| sourceID | `
|
|
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 |
|
|
8
|
+
| style | `FillExtrusionLayerStyleProps` | `none` | `false` | Customizable style attributes |
|
|
9
|
+
| sourceID | `FIX ME UNKNOWN TYPE` | `MapLibreGL.StyleSource.DefaultSourceID` | `false` | FIX ME NO DESCRIPTION |
|
|
18
10
|
|
|
19
11
|
|
|
20
12
|
### styles
|
package/docs/FillLayer.md
CHANGED
|
@@ -5,16 +5,8 @@
|
|
|
5
5
|
### props
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
|
-
|
|
|
9
|
-
| sourceID | `
|
|
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 |
|
|
8
|
+
| style | `FillLayerStyleProps` | `none` | `false` | Customizable style attributes |
|
|
9
|
+
| sourceID | `FIX ME UNKNOWN TYPE` | `MapLibreGL.StyleSource.DefaultSourceID` | `false` | FIX ME NO DESCRIPTION |
|
|
18
10
|
|
|
19
11
|
|
|
20
12
|
### styles
|
package/docs/HeatmapLayer.md
CHANGED
|
@@ -5,16 +5,8 @@
|
|
|
5
5
|
### props
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
|
-
|
|
|
9
|
-
| sourceID | `
|
|
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 |
|
|
8
|
+
| style | `HeatmapLayerStyleProps` | `none` | `false` | Customizable style attributes |
|
|
9
|
+
| sourceID | `FIX ME UNKNOWN TYPE` | `MapLibreGL.StyleSource.DefaultSourceID` | `false` | FIX ME NO DESCRIPTION |
|
|
18
10
|
|
|
19
11
|
|
|
20
12
|
### styles
|
package/docs/ImageSource.md
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
8
|
| id | `string` | `none` | `true` | A string that uniquely identifies the source. |
|
|
9
|
-
| url | `
|
|
10
|
-
| coordinates | `
|
|
9
|
+
| url | `number \| string` | `none` | `false` | An HTTP(S) URL, absolute file URL, or local file URL to the source image.<br/>Gifs are currently not supported. |
|
|
10
|
+
| coordinates | `tuple` | `none` | `false` | The top left, top right, bottom right, and bottom left coordinates for the image. |
|
|
11
|
+
| children | `ReactElement \| ReactElement[]` | `none` | `false` | FIX ME NO DESCRIPTION |
|
|
11
12
|
|
|
12
13
|
|
package/docs/Images.md
CHANGED
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
### props
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
|
-
| images | `
|
|
9
|
-
|
|
|
10
|
-
|
|
|
8
|
+
| images | `shape` | `none` | `false` | Specifies the external images in key-value pairs required for the shape source.<br/>Keys are names - see iconImage expressions, values can be either urls-s objects<br/>with format {uri: 'http://...'}` or `require('image.png')` or `import 'image.png'` |
|
|
9
|
+
| [object Object] | `union` | `none` | `true` | FIX ME NO DESCRIPTION |
|
|
10
|
+
| nativeAssetImages | `Array` | `none` | `false` | If you have an asset under Image.xcassets on iOS and the drawables directory on android<br/>you can specify an array of string names with assets as the key `['pin']`. |
|
|
11
|
+
| id | `string` | `none` | `false` | FIX ME NO DESCRIPTION |
|
|
12
|
+
| children | `ReactElement` | `none` | `true` | FIX ME NO DESCRIPTION |
|
|
11
13
|
|
|
12
14
|
|
package/docs/Light.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
### props
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
|
-
| style | `
|
|
8
|
+
| style | `LightLayerStyleProps` | `none` | `false` | Customizable style attributes |
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
### styles
|
package/docs/LineLayer.md
CHANGED
|
@@ -5,16 +5,8 @@
|
|
|
5
5
|
### props
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
|
-
|
|
|
9
|
-
| sourceID | `
|
|
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 |
|
|
8
|
+
| style | `LineLayerStyleProps` | `none` | `false` | Customizable style attributes |
|
|
9
|
+
| sourceID | `FIX ME UNKNOWN TYPE` | `MapLibreGL.StyleSource.DefaultSourceID` | `false` | FIX ME NO DESCRIPTION |
|
|
18
10
|
|
|
19
11
|
|
|
20
12
|
### styles
|
package/docs/MapView.md
CHANGED
|
@@ -5,43 +5,35 @@
|
|
|
5
5
|
### props
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
|
-
| contentInset | `
|
|
9
|
-
| style | `
|
|
10
|
-
| styleURL | `string` | `none` | `false` | Style URL for map - notice, if non is set it _will_ default to `MapLibreGL.StyleURL.
|
|
8
|
+
| contentInset | `number[] \| number` | `none` | `false` | The distance from the edges of the map view’s frame to the edges of the map view’s logical viewport. |
|
|
9
|
+
| style | `ViewProps["style"]` | `none` | `false` | Style for wrapping React Native View |
|
|
10
|
+
| styleURL | `string` | `none` | `false` | Style URL for map - notice, if non is set it _will_ default to `MapLibreGL.StyleURL.Default` |
|
|
11
11
|
| styleJSON | `string` | `none` | `false` | StyleJSON for map - according to TileJSON specs: https://github.com/mapbox/tilejson-spec |
|
|
12
|
-
| preferredFramesPerSecond | `number` | `none` | `false` | iOS: The preferred frame rate at which the map view is rendered.<br/>The default value for this property is
|
|
13
|
-
| localizeLabels | `
|
|
14
|
-
| zoomEnabled | `
|
|
15
|
-
| scrollEnabled | `
|
|
16
|
-
| pitchEnabled | `
|
|
17
|
-
| rotateEnabled | `
|
|
18
|
-
| attributionEnabled | `
|
|
19
|
-
| attributionPosition |
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
|
12
|
+
| preferredFramesPerSecond | `number` | `none` | `false` | iOS: The preferred frame rate at which the map view is rendered.<br/>The default value for this property is MLNMapViewPreferredFramesPerSecondDefault,<br/>which will adaptively set the preferred frame rate based on the capability of<br/>the user’s device to maintain a smooth experience. This property can be set to arbitrary integer values.<br/><br/>Android: The maximum frame rate at which the map view is rendered, but it can't excess the ability of device hardware.<br/>This property can be set to arbitrary integer values. |
|
|
13
|
+
| localizeLabels | `boolean` | `false` | `false` | Automatically change the language of the map labels to the system’s preferred language,<br/>this is not something that can be toggled on/off |
|
|
14
|
+
| zoomEnabled | `boolean` | `none` | `false` | Enable/Disable zoom on the map |
|
|
15
|
+
| scrollEnabled | `boolean` | `true` | `false` | Enable/Disable scroll on the map |
|
|
16
|
+
| pitchEnabled | `boolean` | `true` | `false` | Enable/Disable pitch on map |
|
|
17
|
+
| rotateEnabled | `boolean` | `true` | `false` | Enable/Disable rotation on map |
|
|
18
|
+
| attributionEnabled | `boolean` | `true` | `false` | Enable/Disable attribution on map.<br/><br/>This must be enabled for Mapbox-hosted tiles and styles. Please refer to the Mapbox Terms of Service.<br/>Other providers do not require this. |
|
|
19
|
+
| attributionPosition | `\| { top?: number; left?: number }
|
|
20
|
+
\| { top?: number; right?: number }
|
|
21
|
+
\| { bottom?: number; left?: number }
|
|
22
|
+
\| { bottom?: number; right?: number }` | `none` | `false` | Adds attribution offset, e.g. `{top: 8, left: 8}` will put attribution button in top-left corner of the map |
|
|
23
|
+
| tintColor | `string \| unknown[]` | `none` | `false` | MapView's tintColor |
|
|
24
|
+
| logoEnabled | `boolean` | `false` | `false` | Enable/Disable the logo on the map. |
|
|
25
|
+
| logoPosition | `\| { top?: number; left?: number }
|
|
26
|
+
\| { top?: number; right?: number }
|
|
27
|
+
\| { bottom?: number; left?: number }
|
|
28
|
+
\| { bottom?: number; right?: number }` | `none` | `false` | Adds logo offset, e.g. `{top: 8, left: 8}` will put the logo in top-left corner of the map |
|
|
29
|
+
| compassEnabled | `boolean` | `none` | `false` | Enable/Disable the compass from appearing on the map |
|
|
24
30
|
| compassViewPosition | `number` | `none` | `false` | Change corner of map the compass starts at. 0: TopLeft, 1: TopRight, 2: BottomLeft, 3: BottomRight |
|
|
25
31
|
| compassViewMargins | `object` | `none` | `false` | Add margins to the compass with x and y values |
|
|
26
|
-
| surfaceView | `
|
|
27
|
-
|
|
|
28
|
-
| onLongPress | `func` | `none` | `false` | Map long press listener, gets called when a user long presses the map |
|
|
29
|
-
| onRegionWillChange | `func` | `none` | `false` | This event is triggered whenever the currently displayed map region is about to change. |
|
|
30
|
-
| onRegionIsChanging | `func` | `none` | `false` | This event is triggered whenever the currently displayed map region is changing. |
|
|
31
|
-
| onRegionDidChange | `func` | `none` | `false` | This event is triggered whenever the currently displayed map region finished changing |
|
|
32
|
-
| onWillStartLoadingMap | `func` | `none` | `false` | This event is triggered when the map is about to start loading a new map style. |
|
|
33
|
-
| onDidFinishLoadingMap | `func` | `none` | `false` | This is triggered when the map has successfully loaded a new map style. |
|
|
34
|
-
| onDidFailLoadingMap | `func` | `none` | `false` | This event is triggered when the map has failed to load a new map style. |
|
|
35
|
-
| onWillStartRenderingFrame | `func` | `none` | `false` | This event is triggered when the map will start rendering a frame. |
|
|
36
|
-
| onDidFinishRenderingFrame | `func` | `none` | `false` | This event is triggered when the map finished rendering a frame. |
|
|
37
|
-
| onDidFinishRenderingFrameFully | `func` | `none` | `false` | This event is triggered when the map fully finished rendering a frame. |
|
|
38
|
-
| onWillStartRenderingMap | `func` | `none` | `false` | This event is triggered when the map will start rendering the map. |
|
|
39
|
-
| onDidFinishRenderingMap | `func` | `none` | `false` | This event is triggered when the map finished rendering the map. |
|
|
40
|
-
| onDidFinishRenderingMapFully | `func` | `none` | `false` | This event is triggered when the map fully finished rendering the map. |
|
|
41
|
-
| onUserLocationUpdate | `func` | `none` | `false` | This event is triggered when the user location is updated. |
|
|
42
|
-
| onDidFinishLoadingStyle | `func` | `none` | `false` | This event is triggered when a style has finished loading. |
|
|
32
|
+
| surfaceView | `boolean` | `false` | `false` | [Android only] Enable/Disable use of GLSurfaceView insted of TextureView. |
|
|
33
|
+
| onUserLocationUpdate | `func` | `none` | `false` | This event is triggered when the user location is updated.<br/>*signature:*`(location:Location) => void` |
|
|
43
34
|
| regionWillChangeDebounceTime | `number` | `10` | `false` | The emitted frequency of regionwillchange events |
|
|
44
35
|
| regionDidChangeDebounceTime | `number` | `500` | `false` | The emitted frequency of regiondidchange events |
|
|
36
|
+
| children | `ReactNode` | `none` | `true` | FIX ME NO DESCRIPTION |
|
|
45
37
|
|
|
46
38
|
### methods
|
|
47
39
|
#### getPointInView(coordinate)
|
|
@@ -51,7 +43,7 @@ Converts a geographic coordinate to a point in the given view’s coordinate sys
|
|
|
51
43
|
##### arguments
|
|
52
44
|
| Name | Type | Required | Description |
|
|
53
45
|
| ---- | :--: | :------: | :----------: |
|
|
54
|
-
| `coordinate` | `
|
|
46
|
+
| `coordinate` | `GeoJSON.Position` | `Yes` | A point expressed in the map view's coordinate system. |
|
|
55
47
|
|
|
56
48
|
|
|
57
49
|
|
|
@@ -92,15 +84,15 @@ const visibleBounds = await this._map.getVisibleBounds();
|
|
|
92
84
|
```
|
|
93
85
|
|
|
94
86
|
|
|
95
|
-
#### queryRenderedFeaturesAtPoint(
|
|
87
|
+
#### queryRenderedFeaturesAtPoint(point[, filter][, layerIDs])
|
|
96
88
|
|
|
97
89
|
Returns an array of rendered map features that intersect with a given point.
|
|
98
90
|
|
|
99
91
|
##### arguments
|
|
100
92
|
| Name | Type | Required | Description |
|
|
101
93
|
| ---- | :--: | :------: | :----------: |
|
|
102
|
-
| `
|
|
103
|
-
| `filter` | `
|
|
94
|
+
| `point` | `tuple` | `Yes` | undefined |
|
|
95
|
+
| `filter` | `FilterExpression` | `No` | A set of strings that correspond to the names of layers defined in the current style. Only the features contained in these layers are included in the returned array. |
|
|
104
96
|
| `layerIDs` | `Array` | `No` | A array of layer id's to filter the features by |
|
|
105
97
|
|
|
106
98
|
|
|
@@ -117,8 +109,8 @@ Returns an array of rendered map features that intersect with the given rectangl
|
|
|
117
109
|
##### arguments
|
|
118
110
|
| Name | Type | Required | Description |
|
|
119
111
|
| ---- | :--: | :------: | :----------: |
|
|
120
|
-
| `bbox` | `
|
|
121
|
-
| `filter` | `
|
|
112
|
+
| `bbox` | `GeoJSON.BBox` | `Yes` | A rectangle expressed in the map view’s coordinate system. |
|
|
113
|
+
| `filter` | `FilterExpression` | `No` | A set of strings that correspond to the names of layers defined in the current style. Only the features contained in these layers are included in the returned array. |
|
|
122
114
|
| `layerIDs` | `Array` | `No` | A array of layer id's to filter the features by |
|
|
123
115
|
|
|
124
116
|
|
|
@@ -188,7 +180,7 @@ Sets the visibility of all the layers referencing the specified `sourceLayerId`
|
|
|
188
180
|
| Name | Type | Required | Description |
|
|
189
181
|
| ---- | :--: | :------: | :----------: |
|
|
190
182
|
| `visible` | `boolean` | `Yes` | Visibility of the layers |
|
|
191
|
-
| `sourceId` | `
|
|
183
|
+
| `sourceId` | `string` | `Yes` | Identifier of the target source (e.g. 'composite') |
|
|
192
184
|
| `sourceLayerId` | `String` | `No` | Identifier of the target source-layer (e.g. 'building') |
|
|
193
185
|
|
|
194
186
|
|
package/docs/MarkerView.md
CHANGED
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
### props
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
|
-
| coordinate | `
|
|
9
|
-
| anchor | `shape` | `{x: 0.5, y: 0.5}` | `false` | Specifies the anchor being set on a particular point of the annotation.<br/>The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],<br/>where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.<br/>Note this is only for custom annotations not the default pin view.<br/>Defaults to the center of the view. |
|
|
8
|
+
| coordinate | `Array` | `none` | `true` | The center point (specified as a map coordinate) of the marker.<br/>See also #anchor. |
|
|
9
|
+
| anchor | `shape` | `{ x: 0.5, y: 0.5 }` | `false` | Specifies the anchor being set on a particular point of the annotation.<br/>The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],<br/>where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.<br/>Note this is only for custom annotations not the default pin view.<br/>Defaults to the center of the view. |
|
|
10
10
|
| x | `number` | `none` | `true` | `x` of anchor |
|
|
11
11
|
| y | `number` | `none` | `true` | `y` of anchor |
|
|
12
|
-
|
|
|
12
|
+
| allowOverlap | `boolean` | `false` | `false` | FIX ME NO DESCRIPTION |
|
|
13
|
+
| isSelected | `boolean` | `false` | `false` | FIX ME NO DESCRIPTION |
|
|
14
|
+
| children | `ReactReactElement` | `none` | `true` | Expects one child - can be container with multiple elements |
|
|
13
15
|
|
|
14
16
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
### props
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
|
-
| androidRenderMode | `
|
|
9
|
-
| iosShowsUserHeadingIndicator | `
|
|
8
|
+
| androidRenderMode | `"normal" \| "compass" \| "gps"` | `none` | `false` | Android render mode.<br/><br/> - normal: just a circle<br/> - compass: triangle with heading<br/> - gps: large arrow<br/><br/>@platform android |
|
|
9
|
+
| iosShowsUserHeadingIndicator | `boolean` | `none` | `false` | iOS only. A Boolean value indicating whether the user location annotation may display a permanent heading indicator.<br/><br/>@platform ios |
|
|
10
10
|
|
|
11
11
|
|
package/docs/PointAnnotation.md
CHANGED
|
@@ -8,17 +8,14 @@
|
|
|
8
8
|
| id | `string` | `none` | `true` | A string that uniquely identifies the annotation |
|
|
9
9
|
| title | `string` | `none` | `false` | The string containing the annotation’s title. Note this is required to be set if you want to see a callout appear on iOS. |
|
|
10
10
|
| snippet | `string` | `none` | `false` | The string containing the annotation’s snippet(subtitle). Not displayed in the default callout. |
|
|
11
|
-
| selected | `
|
|
12
|
-
| draggable | `
|
|
13
|
-
| coordinate | `
|
|
14
|
-
| anchor | `shape` | `{x: 0.5, y: 0.5}` | `false` | Specifies the anchor being set on a particular point of the annotation.<br/>The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],<br/>where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.<br/>Note this is only for custom annotations not the default pin view.<br/>Defaults to the center of the view. |
|
|
11
|
+
| selected | `boolean` | `none` | `false` | Manually selects/deselects annotation<br/>@type {[type]} |
|
|
12
|
+
| draggable | `boolean` | `false` | `false` | Enable or disable dragging. Defaults to false. |
|
|
13
|
+
| coordinate | `Array` | `none` | `true` | The center point (specified as a map coordinate) of the annotation. |
|
|
14
|
+
| anchor | `shape` | `{ x: 0.5, y: 0.5 }` | `false` | Specifies the anchor being set on a particular point of the annotation.<br/>The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],<br/>where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.<br/>Note this is only for custom annotations not the default pin view.<br/>Defaults to the center of the view. |
|
|
15
15
|
| x | `number` | `none` | `true` | See anchor |
|
|
16
16
|
| y | `number` | `none` | `true` | See anchor |
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
| onDragStart | `func` | `none` | `false` | This callback is fired once this annotation has started being dragged. |
|
|
20
|
-
| onDragEnd | `func` | `none` | `false` | This callback is fired once this annotation has stopped being dragged. |
|
|
21
|
-
| onDrag | `func` | `none` | `false` | This callback is fired while this annotation is being dragged. |
|
|
17
|
+
| children | `React.ReactElement \| [React.ReactElement, React.ReactElement]` | `none` | `true` | Expects one child, and an optional callout can be added as well |
|
|
18
|
+
| style | `ViewProps["style"]` | `none` | `false` | FIX ME NO DESCRIPTION |
|
|
22
19
|
|
|
23
20
|
### methods
|
|
24
21
|
#### refresh()
|
package/docs/RasterLayer.md
CHANGED
|
@@ -5,16 +5,8 @@
|
|
|
5
5
|
### props
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
|
-
|
|
|
9
|
-
| sourceID | `
|
|
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 |
|
|
8
|
+
| style | `RasterLayerStyleProps` | `none` | `false` | Customizable style attributes |
|
|
9
|
+
| sourceID | `FIX ME UNKNOWN TYPE` | `MapLibreGL.StyleSource.DefaultSourceID` | `false` | FIX ME NO DESCRIPTION |
|
|
18
10
|
|
|
19
11
|
|
|
20
12
|
### styles
|
package/docs/RasterSource.md
CHANGED
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
8
|
| id | `string` | `MapLibreGL.StyleSource.DefaultSourceID` | `false` | A string that uniquely identifies the source. |
|
|
9
9
|
| url | `string` | `none` | `false` | A URL to a TileJSON configuration file describing the source’s contents and other metadata. |
|
|
10
|
-
| tileUrlTemplates | `
|
|
10
|
+
| 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 |
|
|
11
11
|
| 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. |
|
|
12
12
|
| 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. |
|
|
13
13
|
| tileSize | `number` | `none` | `false` | Size of the map tiles.<br/>Mapbox urls default to 256, all others default to 512. |
|
|
14
|
-
| tms | `
|
|
14
|
+
| tms | `boolean` | `none` | `false` | Influences the y direction of the tile coordinates. (tms inverts y axis) |
|
|
15
15
|
| 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. |
|
|
16
|
+
| children | `React.ReactElement \| React.ReactElement[]` | `none` | `false` | FIX ME NO DESCRIPTION |
|
|
16
17
|
|
|
17
18
|
|