@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.
Files changed (444) hide show
  1. package/.husky/pre-commit +5 -0
  2. package/.sonarcloud.properties +1 -1
  3. package/CHANGELOG.md +107 -50
  4. package/CONTRIBUTING.md +10 -9
  5. package/README.md +1 -1
  6. package/android/build.gradle +1 -1
  7. package/android/{rctmgl → rctmln}/build.gradle +8 -8
  8. package/android/{rctmgl → rctmln}/src/main/AndroidManifest.xml +1 -1
  9. package/android/rctmln/src/main/java/com/maplibre/rctmln/RCTMLNPackage.java +99 -0
  10. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/AbstractEvent.java +1 -1
  11. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/AbstractEventEmitter.java +2 -2
  12. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/AbstractMapFeature.java +4 -4
  13. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/annotation/MarkerView.java +3 -3
  14. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/annotation/MarkerViewManager.java +12 -10
  15. 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
  16. package/android/rctmln/src/main/java/com/maplibre/rctmln/components/annotation/RCTMLNCalloutManager.java +22 -0
  17. 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
  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
  19. 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
  20. 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
  21. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/camera/CameraStop.java +21 -19
  22. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/camera/CameraUpdateItem.java +12 -12
  23. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/camera/CameraUpdateQueue.java +4 -4
  24. 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
  25. 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
  26. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/camera/constants/CameraMode.java +1 -1
  27. 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
  28. 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
  29. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/location/LocationComponentManager.java +16 -16
  30. 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
  31. 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
  32. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/mapview/LayerSourceInfo.java +10 -10
  33. package/android/rctmln/src/main/java/com/maplibre/rctmln/components/mapview/RCTMLNAndroidTextureMapView.java +16 -0
  34. package/android/rctmln/src/main/java/com/maplibre/rctmln/components/mapview/RCTMLNAndroidTextureMapViewManager.java +31 -0
  35. 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
  36. 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
  37. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/mapview/helpers/CameraChangeTracker.java +1 -1
  38. 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
  39. 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
  40. 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
  41. 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
  42. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/styles/layers/RCTLayer.java +17 -17
  43. package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNBackgroundLayer.java +27 -0
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. 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
  55. package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNRasterLayer.java +27 -0
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. 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
  71. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/styles/sources/RCTSource.java +14 -14
  72. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/AbstractEvent.java +1 -1
  73. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/AndroidCallbackEvent.java +2 -2
  74. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/EventEmitter.java +1 -1
  75. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/FeatureClickEvent.java +8 -8
  76. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/IEvent.java +1 -1
  77. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/ImageMissingEvent.java +3 -3
  78. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/LocationEvent.java +6 -6
  79. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/MapChangeEvent.java +3 -3
  80. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/MapClickEvent.java +5 -5
  81. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/MapUserTrackingModeEvent.java +4 -4
  82. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/OfflineEvent.java +1 -1
  83. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/PointAnnotationClickEvent.java +10 -10
  84. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/PointAnnotationDragEvent.java +10 -10
  85. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/constants/EventKeys.java +1 -1
  86. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/constants/EventTypes.java +1 -1
  87. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/http/CustomHeadersInterceptor.java +1 -1
  88. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/location/LocationManager.java +8 -8
  89. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/location/UserLocation.java +2 -2
  90. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/location/UserLocationVerticalAlignment.java +1 -1
  91. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/location/UserTrackingMode.java +4 -4
  92. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/location/UserTrackingState.java +1 -1
  93. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLLocationModule.java → rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNLocationModule.java} +11 -11
  94. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLLogging.java → rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNLogging.java} +7 -7
  95. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLModule.java → rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNModule.java} +30 -30
  96. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLOfflineModule.java → rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNOfflineModule.java} +42 -47
  97. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLSnapshotModule.java → rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNSnapshotModule.java} +14 -14
  98. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/BitmapUtils.java +1 -1
  99. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/ClusterPropertyEntry.java +2 -2
  100. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/ConvertUtils.java +1 -1
  101. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/DownloadMapImageTask.java +6 -6
  102. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/ExpressionParser.java +3 -3
  103. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/GeoJSONUtils.java +14 -14
  104. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/GeoViewport.java +4 -4
  105. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/ImageEntry.java +1 -1
  106. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/ResourceUtils.java +1 -1
  107. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/SimpleEventCallback.java +5 -5
  108. package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/SphericalMercator.java +2 -2
  109. package/android/rctmln/src/main/res/values/strings.xml +3 -0
  110. package/android/settings.gradle +1 -1
  111. package/docs/Annotation.md +8 -9
  112. package/docs/Annotations.md +1 -1
  113. package/docs/BackgroundLayer.md +2 -10
  114. package/docs/Callout.md +5 -5
  115. package/docs/Camera.md +21 -50
  116. package/docs/CircleLayer.md +2 -10
  117. package/docs/CustomHttpHeaders.md +4 -4
  118. package/docs/FillExtrusionLayer.md +2 -10
  119. package/docs/FillLayer.md +2 -10
  120. package/docs/HeatmapLayer.md +2 -10
  121. package/docs/ImageSource.md +3 -2
  122. package/docs/Images.md +5 -3
  123. package/docs/Light.md +1 -1
  124. package/docs/LineLayer.md +2 -10
  125. package/docs/MapView.md +31 -39
  126. package/docs/MarkerView.md +5 -3
  127. package/docs/NativeUserLocation.md +2 -2
  128. package/docs/PointAnnotation.md +6 -9
  129. package/docs/RasterLayer.md +2 -10
  130. package/docs/RasterSource.md +3 -2
  131. package/docs/ShapeSource.md +12 -7
  132. package/docs/Style.md +1 -1
  133. package/docs/SymbolLayer.md +3 -10
  134. package/docs/UserLocation.md +16 -10
  135. package/docs/VectorSource.md +6 -5
  136. package/docs/coordinates.md +6 -0
  137. package/docs/docs.json +557 -1317
  138. package/docs/location.md +6 -0
  139. package/docs/offlineManager.md +246 -0
  140. package/docs/snapshotManager.md +3 -3
  141. package/ios/{RCTMGL → RCTMLN}/CameraMode.h +1 -1
  142. package/ios/{RCTMGL → RCTMLN}/CameraMode.m +1 -1
  143. package/ios/{RCTMGL → RCTMLN}/CameraStop.h +4 -4
  144. package/ios/{RCTMGL → RCTMLN}/CameraStop.m +7 -7
  145. package/ios/{RCTMGL → RCTMLN}/CameraUpdateItem.h +3 -3
  146. package/ios/{RCTMGL → RCTMLN}/CameraUpdateItem.m +19 -19
  147. package/ios/{RCTMGL → RCTMLN}/CameraUpdateQueue.h +3 -3
  148. package/ios/{RCTMGL → RCTMLN}/CameraUpdateQueue.m +3 -3
  149. package/ios/{RCTMGL → RCTMLN}/FilterParser.h +1 -1
  150. package/ios/{RCTMGL → RCTMLN}/FilterParser.m +3 -3
  151. package/ios/{RCTMGL/MGLCustomHeaders.h → RCTMLN/MLNCustomHeaders.h} +3 -3
  152. package/ios/{RCTMGL/MGLCustomHeaders.m → RCTMLN/MLNCustomHeaders.m} +10 -10
  153. package/ios/RCTMLN/MLNFaux3DUserLocationAnnotationView.h +23 -0
  154. package/ios/{RCTMGL/MGLFaux3DUserLocationAnnotationView.m → RCTMLN/MLNFaux3DUserLocationAnnotationView.m} +38 -38
  155. package/ios/{RCTMGL/MGLModule.h → RCTMLN/MLNModule.h} +3 -3
  156. package/ios/{RCTMGL/MGLModule.m → RCTMLN/MLNModule.m} +91 -91
  157. package/ios/{RCTMGL/MGLOfflineModule.h → RCTMLN/MLNOfflineModule.h} +4 -4
  158. package/ios/{RCTMGL/MGLOfflineModule.m → RCTMLN/MLNOfflineModule.m} +59 -59
  159. package/ios/{RCTMGL/MGLSnapshotModule.h → RCTMLN/MLNSnapshotModule.h} +3 -3
  160. package/ios/{RCTMGL/MGLSnapshotModule.m → RCTMLN/MLNSnapshotModule.m} +14 -14
  161. package/ios/{RCTMGL/MGLUserLocationHeadingArrowLayer.h → RCTMLN/MLNUserLocationHeadingArrowLayer.h} +4 -4
  162. package/ios/{RCTMGL/MGLUserLocationHeadingArrowLayer.m → RCTMLN/MLNUserLocationHeadingArrowLayer.m} +7 -7
  163. package/ios/RCTMLN/MLNUserLocationHeadingBeamLayer.h +11 -0
  164. package/ios/{RCTMGL/MGLUserLocationHeadingBeamLayer.m → RCTMLN/MLNUserLocationHeadingBeamLayer.m} +10 -10
  165. package/ios/{RCTMGL/MGLUserLocationHeadingIndicator.h → RCTMLN/MLNUserLocationHeadingIndicator.h} +3 -3
  166. package/ios/{RCTMGL → RCTMLN}/RCTConvert+Mapbox.h +1 -1
  167. package/ios/{RCTMGL → RCTMLN}/RCTConvert+Mapbox.m +1 -1
  168. package/ios/{RCTMGL/RCTMGL.h → RCTMLN/RCTMLN.h} +3 -3
  169. package/ios/{RCTMGL/RCTMGL.m → RCTMLN/RCTMLN.m} +4 -4
  170. package/ios/RCTMLN/RCTMLNBackgroundLayer.h +14 -0
  171. package/ios/RCTMLN/RCTMLNBackgroundLayer.m +27 -0
  172. package/ios/{RCTMGL/RCTMGLBackgroundLayerManager.h → RCTMLN/RCTMLNBackgroundLayerManager.h} +3 -3
  173. package/ios/{RCTMGL/RCTMGLBackgroundLayerManager.m → RCTMLN/RCTMLNBackgroundLayerManager.m} +6 -6
  174. package/ios/{RCTMGL/RCTMGLCallout.h → RCTMLN/RCTMLNCallout.h} +4 -4
  175. package/ios/{RCTMGL/RCTMGLCallout.m → RCTMLN/RCTMLNCallout.m} +6 -6
  176. package/ios/{RCTMGL/RCTMGLCalloutManager.h → RCTMLN/RCTMLNCalloutManager.h} +3 -3
  177. package/ios/RCTMLN/RCTMLNCalloutManager.m +21 -0
  178. package/ios/{RCTMGL/RCTMGLCamera.h → RCTMLN/RCTMLNCamera.h} +6 -6
  179. package/ios/{RCTMGL/RCTMGLCamera.m → RCTMLN/RCTMLNCamera.m} +30 -30
  180. package/ios/{RCTMGL/RCTMGLCameraManager.h → RCTMLN/RCTMLNCameraManager.h} +3 -3
  181. package/ios/{RCTMGL/RCTMGLCameraManager.m → RCTMLN/RCTMLNCameraManager.m} +7 -7
  182. package/ios/RCTMLN/RCTMLNCircleLayer.h +13 -0
  183. package/ios/{RCTMGL/RCTMGLCircleLayer.m → RCTMLN/RCTMLNCircleLayer.m} +10 -10
  184. package/ios/{RCTMGL/RCTMGLCircleLayerManager.h → RCTMLN/RCTMLNCircleLayerManager.h} +3 -3
  185. package/ios/{RCTMGL/RCTMGLCircleLayerManager.m → RCTMLN/RCTMLNCircleLayerManager.m} +6 -6
  186. package/ios/{RCTMGL/RCTMGLEvent.h → RCTMLN/RCTMLNEvent.h} +6 -6
  187. package/ios/{RCTMGL/RCTMGLEvent.m → RCTMLN/RCTMLNEvent.m} +8 -8
  188. package/ios/{RCTMGL/RCTMGLEventProtocol.h → RCTMLN/RCTMLNEventProtocol.h} +3 -3
  189. package/ios/{RCTMGL/RCTMGLEventTypes.h → RCTMLN/RCTMLNEventTypes.h} +3 -3
  190. package/ios/{RCTMGL/RCTMGLEventTypes.m → RCTMLN/RCTMLNEventTypes.m} +4 -4
  191. package/ios/RCTMLN/RCTMLNFillExtrusionLayer.h +14 -0
  192. package/ios/{RCTMGL/RCTMGLFillExtrusionLayer.m → RCTMLN/RCTMLNFillExtrusionLayer.m} +10 -10
  193. package/ios/{RCTMGL/RCTMGLFillExtrusionLayerManager.h → RCTMLN/RCTMLNFillExtrusionLayerManager.h} +3 -3
  194. package/ios/{RCTMGL/RCTMGLFillExtrusionLayerManager.m → RCTMLN/RCTMLNFillExtrusionLayerManager.m} +6 -6
  195. package/ios/RCTMLN/RCTMLNFillLayer.h +14 -0
  196. package/ios/{RCTMGL/RCTMGLFillLayer.m → RCTMLN/RCTMLNFillLayer.m} +10 -10
  197. package/ios/{RCTMGL/RCTMGLFillLayerManager.h → RCTMLN/RCTMLNFillLayerManager.h} +3 -3
  198. package/ios/{RCTMGL/RCTMGLFillLayerManager.m → RCTMLN/RCTMLNFillLayerManager.m} +6 -6
  199. package/ios/RCTMLN/RCTMLNHeatmapLayer.h +12 -0
  200. package/ios/RCTMLN/RCTMLNHeatmapLayer.m +30 -0
  201. package/ios/RCTMLN/RCTMLNHeatmapLayerManager.h +12 -0
  202. package/ios/{RCTMGL/RCTMGLHeatmapLayerManager.m → RCTMLN/RCTMLNHeatmapLayerManager.m} +6 -6
  203. package/ios/{RCTMGL/RCTMGLImageQueue.h → RCTMLN/RCTMLNImageQueue.h} +3 -3
  204. package/ios/{RCTMGL/RCTMGLImageQueue.m → RCTMLN/RCTMLNImageQueue.m} +10 -10
  205. package/ios/{RCTMGL/RCTMGLImageQueueOperation.h → RCTMLN/RCTMLNImageQueueOperation.h} +3 -3
  206. package/ios/{RCTMGL/RCTMGLImageQueueOperation.m → RCTMLN/RCTMLNImageQueueOperation.m} +12 -12
  207. package/ios/{RCTMGL/RCTMGLImageSource.h → RCTMLN/RCTMLNImageSource.h} +4 -4
  208. package/ios/{RCTMGL/RCTMGLImageSource.m → RCTMLN/RCTMLNImageSource.m} +11 -11
  209. package/ios/{RCTMGL/RCTMGLImageSourceManager.h → RCTMLN/RCTMLNImageSourceManager.h} +3 -3
  210. package/ios/{RCTMGL/RCTMGLImageSourceManager.m → RCTMLN/RCTMLNImageSourceManager.m} +6 -6
  211. package/ios/{RCTMGL/RCTMGLImages.h → RCTMLN/RCTMLNImages.h} +4 -4
  212. package/ios/{RCTMGL/RCTMGLImages.m → RCTMLN/RCTMLNImages.m} +10 -10
  213. package/ios/RCTMLN/RCTMLNImagesManager.h +5 -0
  214. package/ios/{RCTMGL/RCTMGLImagesManager.m → RCTMLN/RCTMLNImagesManager.m} +4 -4
  215. package/ios/{RCTMGL/RCTMGLLayer.h → RCTMLN/RCTMLNLayer.h} +11 -11
  216. package/ios/{RCTMGL/RCTMGLLayer.m → RCTMLN/RCTMLNLayer.m} +17 -17
  217. package/ios/{RCTMGL/RCTMGLLight.h → RCTMLN/RCTMLNLight.h} +5 -5
  218. package/ios/{RCTMGL/RCTMGLLight.m → RCTMLN/RCTMLNLight.m} +9 -9
  219. package/ios/{RCTMGL/RCTMGLLightManager.h → RCTMLN/RCTMLNLightManager.h} +3 -3
  220. package/ios/{RCTMGL/RCTMGLLightManager.m → RCTMLN/RCTMLNLightManager.m} +6 -6
  221. package/ios/RCTMLN/RCTMLNLineLayer.h +14 -0
  222. package/ios/{RCTMGL/RCTMGLLineLayer.m → RCTMLN/RCTMLNLineLayer.m} +10 -10
  223. package/ios/{RCTMGL/RCTMGLLineLayerManager.h → RCTMLN/RCTMLNLineLayerManager.h} +3 -3
  224. package/ios/{RCTMGL/RCTMGLLineLayerManager.m → RCTMLN/RCTMLNLineLayerManager.m} +6 -6
  225. package/ios/{RCTMGL/RCTMGLLocation.h → RCTMLN/RCTMLNLocation.h} +3 -3
  226. package/ios/{RCTMGL/RCTMGLLocation.m → RCTMLN/RCTMLNLocation.m} +4 -4
  227. package/ios/RCTMLN/RCTMLNLocationManager.h +30 -0
  228. package/ios/{RCTMGL/RCTMGLLocationManager.m → RCTMLN/RCTMLNLocationManager.m} +16 -16
  229. package/ios/RCTMLN/RCTMLNLocationManagerDelegate.h +20 -0
  230. package/ios/{RCTMGL/RCTMGLLocationModule.h → RCTMLN/RCTMLNLocationModule.h} +3 -3
  231. package/ios/{RCTMGL/RCTMGLLocationModule.m → RCTMLN/RCTMLNLocationModule.m} +13 -13
  232. package/ios/RCTMLN/RCTMLNLogging.h +18 -0
  233. package/ios/{RCTMGL/RCTMGLLogging.m → RCTMLN/RCTMLNLogging.m} +29 -29
  234. package/ios/{RCTMGL/RCTMGLMapTouchEvent.h → RCTMLN/RCTMLNMapTouchEvent.h} +10 -10
  235. package/ios/{RCTMGL/RCTMGLMapTouchEvent.m → RCTMLN/RCTMLNMapTouchEvent.m} +18 -18
  236. package/ios/{RCTMGL/RCTMGLMapView.h → RCTMLN/RCTMLNMapView.h} +30 -30
  237. package/ios/{RCTMGL/RCTMGLMapView.m → RCTMLN/RCTMLNMapView.m} +82 -82
  238. package/ios/{RCTMGL/RCTMGLMapViewManager.h → RCTMLN/RCTMLNMapViewManager.h} +4 -4
  239. package/ios/{RCTMGL/RCTMGLMapViewManager.m → RCTMLN/RCTMLNMapViewManager.m} +117 -117
  240. package/ios/{RCTMGL/RCTMGLNativeUserLocation.h → RCTMLN/RCTMLNNativeUserLocation.h} +5 -5
  241. package/ios/{RCTMGL/RCTMGLNativeUserLocation.m → RCTMLN/RCTMLNNativeUserLocation.m} +10 -10
  242. package/ios/RCTMLN/RCTMLNNativeUserLocationManager.h +5 -0
  243. package/ios/RCTMLN/RCTMLNNativeUserLocationManager.m +25 -0
  244. package/ios/{RCTMGL/RCTMGLPointAnnotation.h → RCTMLN/RCTMLNPointAnnotation.h} +8 -8
  245. package/ios/{RCTMGL/RCTMGLPointAnnotation.m → RCTMLN/RCTMLNPointAnnotation.m} +21 -21
  246. package/ios/{RCTMGL/RCTMGLPointAnnotationManager.h → RCTMLN/RCTMLNPointAnnotationManager.h} +3 -3
  247. package/ios/{RCTMGL/RCTMGLPointAnnotationManager.m → RCTMLN/RCTMLNPointAnnotationManager.m} +6 -6
  248. package/ios/RCTMLN/RCTMLNRasterLayer.h +14 -0
  249. package/ios/RCTMLN/RCTMLNRasterLayer.m +30 -0
  250. package/ios/{RCTMGL/RCTMGLRasterLayerManager.h → RCTMLN/RCTMLNRasterLayerManager.h} +3 -3
  251. package/ios/{RCTMGL/RCTMGLRasterLayerManager.m → RCTMLN/RCTMLNRasterLayerManager.m} +6 -6
  252. package/ios/{RCTMGL/RCTMGLRasterSource.h → RCTMLN/RCTMLNRasterSource.h} +5 -5
  253. package/ios/{RCTMGL/RCTMGLRasterSource.m → RCTMLN/RCTMLNRasterSource.m} +11 -11
  254. package/ios/{RCTMGL/RCTMGLRasterSourceManager.h → RCTMLN/RCTMLNRasterSourceManager.h} +3 -3
  255. package/ios/{RCTMGL/RCTMGLRasterSourceManager.m → RCTMLN/RCTMLNRasterSourceManager.m} +6 -6
  256. package/ios/{RCTMGL/RCTMGLShapeSource.h → RCTMLN/RCTMLNShapeSource.h} +10 -10
  257. package/ios/{RCTMGL/RCTMGLShapeSource.m → RCTMLN/RCTMLNShapeSource.m} +50 -50
  258. package/ios/{RCTMGL/RCTMGLShapeSourceManager.h → RCTMLN/RCTMLNShapeSourceManager.h} +3 -3
  259. package/ios/{RCTMGL/RCTMGLShapeSourceManager.m → RCTMLN/RCTMLNShapeSourceManager.m} +25 -25
  260. package/ios/{RCTMGL/RCTMGLSource.h → RCTMLN/RCTMLNSource.h} +8 -8
  261. package/ios/{RCTMGL/RCTMGLSource.m → RCTMLN/RCTMLNSource.m} +15 -15
  262. package/ios/RCTMLN/RCTMLNStyle.h +222 -0
  263. package/ios/{RCTMGL/RCTMGLStyle.m → RCTMLN/RCTMLNStyle.m} +345 -345
  264. package/ios/{RCTMGL/RCTMGLStyleValue.h → RCTMLN/RCTMLNStyleValue.h} +7 -7
  265. package/ios/{RCTMGL/RCTMGLStyleValue.m → RCTMLN/RCTMLNStyleValue.m} +24 -24
  266. package/ios/{RCTMGL/RCTMGLSymbolLayer.h → RCTMLN/RCTMLNSymbolLayer.h} +4 -4
  267. package/ios/{RCTMGL/RCTMGLSymbolLayer.m → RCTMLN/RCTMLNSymbolLayer.m} +12 -12
  268. package/ios/{RCTMGL/RCTMGLSymbolLayerManager.h → RCTMLN/RCTMLNSymbolLayerManager.h} +3 -3
  269. package/ios/{RCTMGL/RCTMGLSymbolLayerManager.m → RCTMLN/RCTMLNSymbolLayerManager.m} +6 -6
  270. package/ios/{RCTMGL/RCTMGLTileSource.h → RCTMLN/RCTMLNTileSource.h} +6 -6
  271. package/ios/RCTMLN/RCTMLNTileSource.m +31 -0
  272. package/ios/RCTMLN/RCTMLNUserLocation.h +15 -0
  273. package/ios/{RCTMGL/RCTMGLUserLocation.m → RCTMLN/RCTMLNUserLocation.m} +8 -8
  274. package/ios/{RCTMGL/RCTMGLUtils.h → RCTMLN/RCTMLNUtils.h} +7 -7
  275. package/ios/{RCTMGL/RCTMGLUtils.m → RCTMLN/RCTMLNUtils.m} +20 -20
  276. package/ios/{RCTMGL/RCTMGLVectorLayer.h → RCTMLN/RCTMLNVectorLayer.h} +4 -4
  277. package/ios/{RCTMGL/RCTMGLVectorLayer.m → RCTMLN/RCTMLNVectorLayer.m} +7 -7
  278. package/ios/{RCTMGL/RCTMGLVectorSource.h → RCTMLN/RCTMLNVectorSource.h} +6 -6
  279. package/ios/{RCTMGL/RCTMGLVectorSource.m → RCTMLN/RCTMLNVectorSource.m} +9 -9
  280. package/ios/{RCTMGL/RCTMGLVectorSourceManager.h → RCTMLN/RCTMLNVectorSourceManager.h} +3 -3
  281. package/ios/{RCTMGL/RCTMGLVectorSourceManager.m → RCTMLN/RCTMLNVectorSourceManager.m} +11 -11
  282. package/ios/{RCTMGL → RCTMLN}/RNMBImageUtils.h +1 -1
  283. package/ios/{RCTMGL → RCTMLN}/RNMBImageUtils.m +2 -2
  284. package/ios/{RCTMGL → RCTMLN}/ViewManager.h +3 -3
  285. package/ios/{RCTMGL → RCTMLN}/ViewManager.m +4 -4
  286. package/ios/RCTMLN.xcodeproj/project.pbxproj +775 -0
  287. package/ios/install.md +6 -7
  288. package/javascript/MLNModule.ts +37 -0
  289. package/javascript/Maplibre.ts +64 -0
  290. package/javascript/components/BackgroundLayer.tsx +50 -0
  291. package/javascript/components/Callout.tsx +141 -0
  292. package/javascript/components/Camera.tsx +623 -0
  293. package/javascript/components/CircleLayer.tsx +53 -0
  294. package/javascript/components/FillExtrusionLayer.tsx +47 -0
  295. package/javascript/components/FillLayer.tsx +44 -0
  296. package/javascript/components/HeadingIndicator.tsx +31 -0
  297. package/javascript/components/HeatmapLayer.tsx +46 -0
  298. package/javascript/components/ImageSource.tsx +71 -0
  299. package/javascript/components/Images.tsx +134 -0
  300. package/javascript/components/Light.tsx +40 -0
  301. package/javascript/components/LineLayer.tsx +45 -0
  302. package/javascript/components/MapView.tsx +880 -0
  303. package/javascript/components/MarkerView.tsx +88 -0
  304. package/javascript/components/NativeUserLocation.tsx +31 -0
  305. package/javascript/components/PointAnnotation.tsx +245 -0
  306. package/javascript/components/RasterLayer.tsx +44 -0
  307. package/javascript/components/RasterSource.tsx +114 -0
  308. package/javascript/components/ShapeSource.tsx +433 -0
  309. package/javascript/components/Style.tsx +368 -0
  310. package/javascript/components/SymbolLayer.tsx +78 -0
  311. package/javascript/components/UserLocation.tsx +289 -0
  312. package/javascript/components/VectorSource.tsx +218 -0
  313. package/javascript/components/annotations/Annotation.tsx +161 -0
  314. package/javascript/hooks/useAbstractLayer.ts +127 -0
  315. package/javascript/hooks/useAbstractSource.ts +34 -0
  316. package/javascript/hooks/useNativeBridge.ts +125 -0
  317. package/javascript/hooks/useNativeRef.ts +13 -0
  318. package/javascript/hooks/useOnce.ts +12 -0
  319. package/javascript/index.ts +4 -0
  320. package/javascript/modules/location/locationManager.ts +162 -0
  321. package/javascript/modules/offline/OfflineCreatePackOptions.ts +62 -0
  322. package/javascript/modules/offline/OfflinePack.ts +56 -0
  323. package/javascript/modules/offline/{offlineManager.js → offlineManager.ts} +91 -35
  324. package/javascript/modules/snapshot/SnapshotOptions.ts +104 -0
  325. package/javascript/modules/snapshot/{snapshotManager.js → snapshotManager.ts} +7 -7
  326. package/javascript/requestAndroidLocationPermissions.ts +29 -0
  327. package/javascript/types/BaseProps.ts +5 -0
  328. package/javascript/types/OnPressEvent.ts +13 -0
  329. package/javascript/types/index.ts +11 -0
  330. package/javascript/utils/BridgeValue.ts +90 -0
  331. package/javascript/utils/{Logger.js → Logger.ts} +50 -31
  332. package/javascript/utils/MaplibreStyles.d.ts +1486 -0
  333. package/javascript/utils/StyleValue.ts +49 -0
  334. package/javascript/utils/animated/AbstractAnimatedCoordinates.ts +134 -0
  335. package/javascript/utils/animated/Animated.ts +61 -0
  336. package/javascript/utils/animated/AnimatedCoordinatesArray.ts +108 -0
  337. package/javascript/utils/animated/{AnimatedExtractCoordinateFromArray.js → AnimatedExtractCoordinateFromArray.ts} +8 -8
  338. package/javascript/utils/animated/{AnimatedPoint.js → AnimatedPoint.ts} +25 -17
  339. package/javascript/utils/animated/{AnimatedRouteCoordinatesArray.js → AnimatedRouteCoordinatesArray.ts} +46 -25
  340. package/javascript/utils/animated/AnimatedShape.ts +93 -0
  341. package/javascript/utils/deprecation.ts +31 -0
  342. package/javascript/utils/filterUtils.ts +9 -0
  343. package/javascript/utils/geoUtils.ts +79 -0
  344. package/javascript/utils/index.ts +133 -0
  345. package/javascript/utils/styleMap.ts +264 -0
  346. package/maplibre-react-native.podspec +8 -8
  347. package/package.json +64 -44
  348. package/plugin/build/withMapLibre.d.ts +2 -2
  349. package/plugin/build/withMapLibre.js +38 -23
  350. package/react-native.config.js +1 -1
  351. package/scripts/autogenHelpers/globals.js +11 -11
  352. package/scripts/autogenerate.js +25 -17
  353. package/scripts/download-style-spec.sh +1 -1
  354. package/scripts/templates/MaplibreStyles.ts.ejs +99 -0
  355. package/scripts/templates/{RCTMGLStyle.h.ejs → RCTMLNStyle.h.ejs} +8 -8
  356. package/scripts/templates/{RCTMGLStyle.m.ejs → RCTMLNStyle.m.ejs} +10 -10
  357. package/scripts/templates/{RCTMGLStyleFactory.java.ejs → RCTMLNStyleFactory.java.ejs} +24 -24
  358. package/scripts/templates/index.d.ts.ejs +71 -42
  359. package/scripts/templates/{styleMap.js.ejs → styleMap.ts.ejs} +3 -33
  360. package/setup-jest.js +5 -20
  361. package/tsconfig.json +20 -61
  362. package/.eslintignore +0 -3
  363. package/.eslintrc.js +0 -158
  364. package/.prettierrc.js +0 -7
  365. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/RCTMGLPackage.java +0 -99
  366. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLCalloutManager.java +0 -22
  367. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLAndroidTextureMapView.java +0 -16
  368. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLAndroidTextureMapViewManager.java +0 -31
  369. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLBackgroundLayer.java +0 -27
  370. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLRasterLayer.java +0 -27
  371. package/android/rctmgl/src/main/res/values/strings.xml +0 -3
  372. package/index.d.ts +0 -955
  373. package/ios/RCTMGL/MGLFaux3DUserLocationAnnotationView.h +0 -23
  374. package/ios/RCTMGL/MGLUserLocationHeadingBeamLayer.h +0 -11
  375. package/ios/RCTMGL/RCTMGLBackgroundLayer.h +0 -14
  376. package/ios/RCTMGL/RCTMGLBackgroundLayer.m +0 -27
  377. package/ios/RCTMGL/RCTMGLCalloutManager.m +0 -21
  378. package/ios/RCTMGL/RCTMGLCircleLayer.h +0 -13
  379. package/ios/RCTMGL/RCTMGLFillExtrusionLayer.h +0 -14
  380. package/ios/RCTMGL/RCTMGLFillLayer.h +0 -14
  381. package/ios/RCTMGL/RCTMGLHeatmapLayer.h +0 -12
  382. package/ios/RCTMGL/RCTMGLHeatmapLayer.m +0 -30
  383. package/ios/RCTMGL/RCTMGLHeatmapLayerManager.h +0 -12
  384. package/ios/RCTMGL/RCTMGLImagesManager.h +0 -5
  385. package/ios/RCTMGL/RCTMGLLineLayer.h +0 -14
  386. package/ios/RCTMGL/RCTMGLLocationManager.h +0 -30
  387. package/ios/RCTMGL/RCTMGLLocationManagerDelegate.h +0 -20
  388. package/ios/RCTMGL/RCTMGLLogging.h +0 -18
  389. package/ios/RCTMGL/RCTMGLNativeUserLocationManager.h +0 -5
  390. package/ios/RCTMGL/RCTMGLNativeUserLocationManager.m +0 -25
  391. package/ios/RCTMGL/RCTMGLRasterLayer.h +0 -14
  392. package/ios/RCTMGL/RCTMGLRasterLayer.m +0 -30
  393. package/ios/RCTMGL/RCTMGLStyle.h +0 -222
  394. package/ios/RCTMGL/RCTMGLTileSource.m +0 -31
  395. package/ios/RCTMGL/RCTMGLUserLocation.h +0 -15
  396. package/ios/RCTMGL.xcodeproj/project.pbxproj +0 -775
  397. package/javascript/components/AbstractLayer.js +0 -75
  398. package/javascript/components/AbstractSource.js +0 -15
  399. package/javascript/components/BackgroundLayer.js +0 -97
  400. package/javascript/components/Callout.js +0 -139
  401. package/javascript/components/Camera.js +0 -665
  402. package/javascript/components/CircleLayer.js +0 -101
  403. package/javascript/components/FillExtrusionLayer.js +0 -98
  404. package/javascript/components/FillLayer.js +0 -94
  405. package/javascript/components/HeadingIndicator.js +0 -31
  406. package/javascript/components/HeatmapLayer.js +0 -99
  407. package/javascript/components/ImageSource.js +0 -82
  408. package/javascript/components/Images.js +0 -119
  409. package/javascript/components/Light.js +0 -47
  410. package/javascript/components/LineLayer.js +0 -94
  411. package/javascript/components/MapView.js +0 -814
  412. package/javascript/components/MarkerView.js +0 -87
  413. package/javascript/components/NativeBridgeComponent.js +0 -86
  414. package/javascript/components/NativeUserLocation.js +0 -41
  415. package/javascript/components/PointAnnotation.js +0 -216
  416. package/javascript/components/RasterLayer.js +0 -95
  417. package/javascript/components/RasterSource.js +0 -124
  418. package/javascript/components/ShapeSource.js +0 -372
  419. package/javascript/components/Style.js +0 -267
  420. package/javascript/components/SymbolLayer.js +0 -120
  421. package/javascript/components/UserLocation.js +0 -275
  422. package/javascript/components/VectorSource.js +0 -200
  423. package/javascript/components/annotations/Annotation.js +0 -122
  424. package/javascript/index.js +0 -149
  425. package/javascript/modules/location/locationManager.js +0 -101
  426. package/javascript/modules/offline/OfflineCreatePackOptions.js +0 -46
  427. package/javascript/modules/offline/OfflinePack.js +0 -40
  428. package/javascript/modules/snapshot/SnapshotOptions.js +0 -67
  429. package/javascript/utils/BridgeValue.js +0 -81
  430. package/javascript/utils/animated/Animated.js +0 -39
  431. package/javascript/utils/animated/AnimatedCoordinatesArray.js +0 -191
  432. package/javascript/utils/animated/AnimatedShape.js +0 -72
  433. package/javascript/utils/deprecation.js +0 -25
  434. package/javascript/utils/filterUtils.js +0 -7
  435. package/javascript/utils/geoUtils.js +0 -73
  436. package/javascript/utils/index.js +0 -113
  437. package/javascript/utils/styleMap.js +0 -1932
  438. /package/android/{rctmgl → rctmln}/.settings/org.eclipse.buildship.core.prefs +0 -0
  439. /package/android/{rctmgl → rctmln}/proguard-rules.pro +0 -0
  440. /package/android/{rctmgl → rctmln}/src/main/res/drawable/empty.xml +0 -0
  441. /package/android/{rctmgl → rctmln}/src/main/res/drawable/empty_drawable.png +0 -0
  442. /package/android/{rctmgl → rctmln}/src/main/res/drawable-xxhdpi/red_marker.png +0 -0
  443. /package/android/{rctmgl → rctmln}/src/main/res/layout/annotation.xml +0 -0
  444. /package/ios/{RCTMGL → RCTMLN}/index.d.ts +0 -0
package/docs/docs.json CHANGED
@@ -7,15 +7,25 @@
7
7
  "name": "onPress",
8
8
  "docblock": null,
9
9
  "modifiers": [],
10
- "params": [],
11
- "returns": null
10
+ "params": [
11
+ {
12
+ "name": "event",
13
+ "optional": false,
14
+ "type": {
15
+ "name": "OnPressEvent"
16
+ }
17
+ }
18
+ ],
19
+ "returns": {
20
+ "type": {
21
+ "name": "void"
22
+ }
23
+ }
12
24
  },
13
25
  {
14
26
  "name": "symbolStyle",
15
27
  "docblock": null,
16
- "modifiers": [
17
- "get"
18
- ],
28
+ "modifiers": [],
19
29
  "params": [],
20
30
  "returns": null
21
31
  }
@@ -31,7 +41,7 @@
31
41
  {
32
42
  "name": "animated",
33
43
  "required": false,
34
- "type": "bool",
44
+ "type": "boolean",
35
45
  "default": "false",
36
46
  "description": "FIX ME NO DESCRIPTION"
37
47
  },
@@ -42,55 +52,43 @@
42
52
  "default": "1000",
43
53
  "description": "FIX ME NO DESCRIPTION"
44
54
  },
45
- {
46
- "name": "animationEasingFunction",
47
- "required": false,
48
- "type": "func",
49
- "default": "Easing.linear",
50
- "description": "FIX ME NO DESCRIPTION"
51
- },
52
55
  {
53
56
  "name": "coordinates",
54
57
  "required": false,
55
- "type": {
56
- "name": "array",
57
- "value": {
58
- "type": "number"
59
- }
60
- },
58
+ "type": "Array",
61
59
  "default": "none",
62
60
  "description": "FIX ME NO DESCRIPTION"
63
61
  },
64
62
  {
65
- "name": "onPress",
63
+ "name": "children",
66
64
  "required": false,
67
- "type": "func",
65
+ "type": "ReactElement \\| ReactElement[]",
68
66
  "default": "none",
69
67
  "description": "FIX ME NO DESCRIPTION"
70
68
  },
71
69
  {
72
- "name": "children",
70
+ "name": "style",
73
71
  "required": false,
74
- "type": "any",
72
+ "type": "object",
75
73
  "default": "none",
76
74
  "description": "FIX ME NO DESCRIPTION"
77
75
  },
78
76
  {
79
- "name": "style",
77
+ "name": "icon",
80
78
  "required": false,
81
- "type": "any",
79
+ "type": "string \\| number \\| object",
82
80
  "default": "none",
83
81
  "description": "FIX ME NO DESCRIPTION"
84
82
  },
85
83
  {
86
- "name": "icon",
84
+ "name": "animationEasingFunction",
87
85
  "required": false,
88
- "type": "union",
89
- "default": "none",
86
+ "type": "FIX ME UNKNOWN TYPE",
87
+ "default": "Easing.linear",
90
88
  "description": "FIX ME NO DESCRIPTION"
91
89
  }
92
90
  ],
93
- "fileNameWithExt": "Annotation.js",
91
+ "fileNameWithExt": "Annotation.tsx",
94
92
  "name": "Annotation"
95
93
  },
96
94
  "BackgroundLayer": {
@@ -99,80 +97,25 @@
99
97
  "methods": [],
100
98
  "props": [
101
99
  {
102
- "name": "id",
103
- "required": true,
104
- "type": "string",
100
+ "name": "style",
101
+ "required": false,
102
+ "type": "BackgroundLayerStyleProps",
105
103
  "default": "none",
106
- "description": "A string that uniquely identifies the source in the style to which it is added."
104
+ "description": "Customizable style attributes"
107
105
  },
108
106
  {
109
107
  "name": "sourceID",
110
108
  "required": false,
111
- "type": "string",
109
+ "type": "FIX ME UNKNOWN TYPE",
112
110
  "default": "MapLibreGL.StyleSource.DefaultSourceID",
113
- "description": "The source from which to obtain the data to style.\nIf the source has not yet been added to the current style, the behavior is undefined.\nInferred from parent source only if the layer is a direct child to it."
114
- },
115
- {
116
- "name": "sourceLayerID",
117
- "required": false,
118
- "type": "string",
119
- "default": "none",
120
- "description": "Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style."
121
- },
122
- {
123
- "name": "aboveLayerID",
124
- "required": false,
125
- "type": "string",
126
- "default": "none",
127
- "description": "Inserts a layer above aboveLayerID."
128
- },
129
- {
130
- "name": "belowLayerID",
131
- "required": false,
132
- "type": "string",
133
- "default": "none",
134
- "description": "Inserts a layer below belowLayerID"
135
- },
136
- {
137
- "name": "layerIndex",
138
- "required": false,
139
- "type": "number",
140
- "default": "none",
141
- "description": "Inserts a layer at a specified index"
142
- },
143
- {
144
- "name": "filter",
145
- "required": false,
146
- "type": "array",
147
- "default": "none",
148
- "description": "Filter only the features in the source layer that satisfy a condition that you define"
149
- },
150
- {
151
- "name": "minZoomLevel",
152
- "required": false,
153
- "type": "number",
154
- "default": "none",
155
- "description": "The minimum zoom level at which the layer gets parsed and appears."
156
- },
157
- {
158
- "name": "maxZoomLevel",
159
- "required": false,
160
- "type": "number",
161
- "default": "none",
162
- "description": "The maximum zoom level at which the layer gets parsed and appears."
163
- },
164
- {
165
- "name": "style",
166
- "required": false,
167
- "type": "union",
168
- "default": "none",
169
- "description": "Customizable style attributes"
111
+ "description": "FIX ME NO DESCRIPTION"
170
112
  }
171
113
  ],
172
114
  "composes": [
173
- "../utils"
115
+ "BaseProps",
116
+ "BaseLayerProps"
174
117
  ],
175
- "fileNameWithExt": "BackgroundLayer.js",
118
+ "fileNameWithExt": "BackgroundLayer.tsx",
176
119
  "name": "BackgroundLayer",
177
120
  "styles": [
178
121
  {
@@ -265,43 +208,43 @@
265
208
  {
266
209
  "name": "style",
267
210
  "required": false,
268
- "type": "any",
211
+ "type": "ViewStyle",
269
212
  "default": "none",
270
213
  "description": "Style property for the Animated.View wrapper, apply animations to this"
271
214
  },
272
215
  {
273
216
  "name": "containerStyle",
274
217
  "required": false,
275
- "type": "any",
218
+ "type": "ViewStyle",
276
219
  "default": "none",
277
- "description": "Style property for the native RCTMGLCallout container, set at your own risk."
220
+ "description": "Style property for the native RCTMLNCallout container, set at your own risk."
278
221
  },
279
222
  {
280
223
  "name": "contentStyle",
281
224
  "required": false,
282
- "type": "any",
225
+ "type": "ViewStyle",
283
226
  "default": "none",
284
227
  "description": "Style property for the content bubble."
285
228
  },
286
229
  {
287
230
  "name": "tipStyle",
288
231
  "required": false,
289
- "type": "any",
232
+ "type": "ViewStyle",
290
233
  "default": "none",
291
234
  "description": "Style property for the triangle tip under the content."
292
235
  },
293
236
  {
294
237
  "name": "textStyle",
295
238
  "required": false,
296
- "type": "any",
239
+ "type": "ViewStyle",
297
240
  "default": "none",
298
241
  "description": "Style property for the title in the content bubble."
299
242
  }
300
243
  ],
301
244
  "composes": [
302
- "../utils"
245
+ "Omit"
303
246
  ],
304
- "fileNameWithExt": "Callout.js",
247
+ "fileNameWithExt": "Callout.tsx",
305
248
  "name": "Callout"
306
249
  },
307
250
  "Camera": {
@@ -310,14 +253,14 @@
310
253
  "methods": [
311
254
  {
312
255
  "name": "fitBounds",
313
- "docblock": "Map camera transitions to fit provided bounds\n\n@example\nthis.camera.fitBounds([lng, lat], [lng, lat])\nthis.camera.fitBounds([lng, lat], [lng, lat], 20, 1000) // padding for all sides\nthis.camera.fitBounds([lng, lat], [lng, lat], [verticalPadding, horizontalPadding], 1000)\nthis.camera.fitBounds([lng, lat], [lng, lat], [top, right, bottom, left], 1000)\n\n@param {Array<Number>} northEastCoordinates - North east coordinate of bound\n@param {Array<Number>} southWestCoordinates - South west coordinate of bound\n@param {Number=} padding - Camera padding for bound\n@param {Number=} animationDuration - Duration of camera animation\n@return {void}",
256
+ "docblock": "Map camera transitions to fit provided bounds\n\n@example\nthis.camera.fitBounds([lng, lat], [lng, lat])\nthis.camera.fitBounds([lng, lat], [lng, lat], 20, 1000) // padding for all sides\nthis.camera.fitBounds([lng, lat], [lng, lat], [verticalPadding, horizontalPadding], 1000)\nthis.camera.fitBounds([lng, lat], [lng, lat], [top, right, bottom, left], 1000)\n\n@param {Array<Number>} northEastCoordinates - North east coordinate of bound\n@param {Array<Number>} southWestCoordinates - South west coordinate of bound\n@param {Number|Array<Number>|undefined} padding - Padding for the bounds\n@param {Number=} animationDuration - Duration of camera animation\n@return {void}",
314
257
  "modifiers": [],
315
258
  "params": [
316
259
  {
317
260
  "name": "northEastCoordinates",
318
261
  "description": "North east coordinate of bound",
319
262
  "type": {
320
- "name": "Array"
263
+ "name": "GeoJSON.Position"
321
264
  },
322
265
  "optional": false
323
266
  },
@@ -325,15 +268,15 @@
325
268
  "name": "southWestCoordinates",
326
269
  "description": "South west coordinate of bound",
327
270
  "type": {
328
- "name": "Array"
271
+ "name": "GeoJSON.Position"
329
272
  },
330
273
  "optional": false
331
274
  },
332
275
  {
333
276
  "name": "padding",
334
- "description": "Camera padding for bound",
277
+ "description": "Padding for the bounds",
335
278
  "type": {
336
- "name": "Number"
279
+ "name": "Number \\| Array"
337
280
  },
338
281
  "optional": true
339
282
  },
@@ -366,7 +309,7 @@
366
309
  "name": "coordinates",
367
310
  "description": "Coordinates that map camera will jump too",
368
311
  "type": {
369
- "name": "Array"
312
+ "name": "GeoJSON.Position"
370
313
  },
371
314
  "optional": false
372
315
  },
@@ -399,7 +342,7 @@
399
342
  "name": "coordinates",
400
343
  "description": "Coordinates that map camera will move too",
401
344
  "type": {
402
- "name": "Array"
345
+ "name": "GeoJSON.Position"
403
346
  },
404
347
  "optional": false
405
348
  },
@@ -432,7 +375,7 @@
432
375
  "name": "zoomLevel",
433
376
  "description": "Zoom level that the map camera will animate too",
434
377
  "type": {
435
- "name": "Number"
378
+ "name": "number"
436
379
  },
437
380
  "optional": false
438
381
  },
@@ -470,7 +413,11 @@
470
413
  "optional": true
471
414
  }
472
415
  ],
473
- "returns": null,
416
+ "returns": {
417
+ "type": {
418
+ "name": "void"
419
+ }
420
+ },
474
421
  "description": "Map camera will perform updates based on provided config. Advanced use only!",
475
422
  "examples": [
476
423
  "\nthis.camera.setCamera({\n centerCoordinate: [lng, lat],\n zoomLevel: 16,\n animationDuration: 2000,\n})\n\nthis.camera.setCamera({\n stops: [\n { pitch: 45, animationDuration: 200 },\n { heading: 180, animationDuration: 300 },\n ]\n})\n\n "
@@ -479,320 +426,74 @@
479
426
  ],
480
427
  "props": [
481
428
  {
482
- "name": "allowUpdates",
483
- "required": false,
484
- "type": "bool",
485
- "default": "true",
486
- "description": "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."
487
- },
488
- {
489
- "name": "animationDuration",
429
+ "name": "centerCoordinate",
490
430
  "required": false,
491
- "type": "number",
492
- "default": "2000",
493
- "description": "The duration a camera update takes (in ms)"
431
+ "type": "GeoJSON.Position",
432
+ "default": "none",
433
+ "description": "The location on which the map should center."
494
434
  },
495
435
  {
496
- "name": "animationMode",
436
+ "name": "bounds",
497
437
  "required": false,
498
- "type": "enum",
499
- "default": "'easeTo'",
500
- "description": "The animationstyle when the camara updates. One of: `flyTo`, `easeTo`, `linearTo`, `moveTo`"
438
+ "type": "CameraBoundsWithPadding",
439
+ "default": "none",
440
+ "description": "The corners of a box around which the map should bound. Contains padding props for backwards\ncompatibility; the root `padding` prop should be used instead."
501
441
  },
502
442
  {
503
- "name": "defaultSettings",
443
+ "name": "heading",
504
444
  "required": false,
505
- "type": {
506
- "name": "shape",
507
- "value": [
508
- {
509
- "name": "centerCoordinate",
510
- "required": false,
511
- "type": {
512
- "name": "array",
513
- "value": {
514
- "type": "number"
515
- }
516
- },
517
- "default": "none",
518
- "description": "Center coordinate on map [lng, lat]"
519
- },
520
- {
521
- "name": "padding",
522
- "required": false,
523
- "type": {
524
- "name": "shape",
525
- "value": [
526
- {
527
- "name": "paddingLeft",
528
- "required": false,
529
- "type": "number",
530
- "default": "none",
531
- "description": "Left padding in points"
532
- },
533
- {
534
- "name": "paddingRight",
535
- "required": false,
536
- "type": "number",
537
- "default": "none",
538
- "description": "Right padding in points"
539
- },
540
- {
541
- "name": "paddingTop",
542
- "required": false,
543
- "type": "number",
544
- "default": "none",
545
- "description": "Top padding in points"
546
- },
547
- {
548
- "name": "paddingBottom",
549
- "required": false,
550
- "type": "number",
551
- "default": "none",
552
- "description": "Bottom padding in points"
553
- }
554
- ]
555
- },
556
- "default": "none",
557
- "description": "Padding around edges of map in points"
558
- },
559
- {
560
- "name": "heading",
561
- "required": false,
562
- "type": "number",
563
- "default": "none",
564
- "description": "Heading on map"
565
- },
566
- {
567
- "name": "pitch",
568
- "required": false,
569
- "type": "number",
570
- "default": "none",
571
- "description": "Pitch on map"
572
- },
573
- {
574
- "name": "bounds",
575
- "required": false,
576
- "type": {
577
- "name": "shape",
578
- "value": [
579
- {
580
- "name": "ne",
581
- "required": true,
582
- "type": {
583
- "name": "array",
584
- "value": {
585
- "type": "number"
586
- }
587
- },
588
- "default": "none",
589
- "description": "North east coordinate of bound"
590
- },
591
- {
592
- "name": "sw",
593
- "required": true,
594
- "type": {
595
- "name": "array",
596
- "value": {
597
- "type": "number"
598
- }
599
- },
600
- "default": "none",
601
- "description": "South west coordinate of bound"
602
- },
603
- {
604
- "name": "paddingLeft",
605
- "required": false,
606
- "type": "number",
607
- "default": "none",
608
- "description": "Left padding in points (deprecated; use root `padding` property instead)"
609
- },
610
- {
611
- "name": "paddingRight",
612
- "required": false,
613
- "type": "number",
614
- "default": "none",
615
- "description": "Right padding in points (deprecated; use root `padding` property instead)"
616
- },
617
- {
618
- "name": "paddingTop",
619
- "required": false,
620
- "type": "number",
621
- "default": "none",
622
- "description": "Top padding in points (deprecated; use root `padding` property instead)"
623
- },
624
- {
625
- "name": "paddingBottom",
626
- "required": false,
627
- "type": "number",
628
- "default": "none",
629
- "description": "Bottom padding in points (deprecated; use root `padding` property instead)"
630
- }
631
- ]
632
- },
633
- "default": "none",
634
- "description": "Represents a rectangle in geographical coordinates marking the visible area of the map.\nThe `bounds.padding*` properties are deprecated; use root `padding` property instead."
635
- },
636
- {
637
- "name": "onUserTrackingModeChange",
638
- "required": false,
639
- "type": "func",
640
- "default": "none",
641
- "description": "Callback that is triggered on user tracking mode changes"
642
- },
643
- {
644
- "name": "zoomLevel",
645
- "required": false,
646
- "type": "number",
647
- "default": "none",
648
- "description": "Zoom level of the map"
649
- }
650
- ]
651
- },
445
+ "type": "number",
652
446
  "default": "none",
653
- "description": "Default view settings applied on camera"
447
+ "description": "The heading (orientation) of the map."
654
448
  },
655
449
  {
656
- "name": "centerCoordinate",
450
+ "name": "pitch",
657
451
  "required": false,
658
- "type": {
659
- "name": "array",
660
- "value": {
661
- "type": "number"
662
- }
663
- },
452
+ "type": "number",
664
453
  "default": "none",
665
- "description": "Center coordinate on map [lng, lat]"
454
+ "description": "The pitch of the map."
666
455
  },
667
456
  {
668
- "name": "padding",
457
+ "name": "zoomLevel",
669
458
  "required": false,
670
- "type": {
671
- "name": "shape",
672
- "value": [
673
- {
674
- "name": "paddingLeft",
675
- "required": false,
676
- "type": "number",
677
- "default": "none",
678
- "description": "Left padding in points"
679
- },
680
- {
681
- "name": "paddingRight",
682
- "required": false,
683
- "type": "number",
684
- "default": "none",
685
- "description": "Right padding in points"
686
- },
687
- {
688
- "name": "paddingTop",
689
- "required": false,
690
- "type": "number",
691
- "default": "none",
692
- "description": "Top padding in points"
693
- },
694
- {
695
- "name": "paddingBottom",
696
- "required": false,
697
- "type": "number",
698
- "default": "none",
699
- "description": "Bottom padding in points"
700
- }
701
- ]
702
- },
459
+ "type": "number",
703
460
  "default": "none",
704
- "description": "Padding around edges of map in points"
461
+ "description": "The zoom level of the map."
705
462
  },
706
463
  {
707
- "name": "heading",
464
+ "name": "padding",
708
465
  "required": false,
709
- "type": "number",
466
+ "type": "CameraPadding",
710
467
  "default": "none",
711
- "description": "Heading on map"
468
+ "description": "The viewport padding in points."
712
469
  },
713
470
  {
714
- "name": "pitch",
471
+ "name": "animationDuration",
715
472
  "required": false,
716
473
  "type": "number",
717
- "default": "none",
718
- "description": "Pitch on map"
474
+ "default": "2000",
475
+ "description": "The duration the map takes to animate to a new configuration."
719
476
  },
720
477
  {
721
- "name": "bounds",
478
+ "name": "animationMode",
722
479
  "required": false,
723
- "type": {
724
- "name": "shape",
725
- "value": [
726
- {
727
- "name": "ne",
728
- "required": true,
729
- "type": {
730
- "name": "array",
731
- "value": {
732
- "type": "number"
733
- }
734
- },
735
- "default": "none",
736
- "description": "North east coordinate of bound"
737
- },
738
- {
739
- "name": "sw",
740
- "required": true,
741
- "type": {
742
- "name": "array",
743
- "value": {
744
- "type": "number"
745
- }
746
- },
747
- "default": "none",
748
- "description": "South west coordinate of bound"
749
- },
750
- {
751
- "name": "paddingLeft",
752
- "required": false,
753
- "type": "number",
754
- "default": "none",
755
- "description": "Left padding in points (deprecated; use root `padding` property instead)"
756
- },
757
- {
758
- "name": "paddingRight",
759
- "required": false,
760
- "type": "number",
761
- "default": "none",
762
- "description": "Right padding in points (deprecated; use root `padding` property instead)"
763
- },
764
- {
765
- "name": "paddingTop",
766
- "required": false,
767
- "type": "number",
768
- "default": "none",
769
- "description": "Top padding in points (deprecated; use root `padding` property instead)"
770
- },
771
- {
772
- "name": "paddingBottom",
773
- "required": false,
774
- "type": "number",
775
- "default": "none",
776
- "description": "Bottom padding in points (deprecated; use root `padding` property instead)"
777
- }
778
- ]
779
- },
780
- "default": "none",
781
- "description": "Represents a rectangle in geographical coordinates marking the visible area of the map.\nThe `bounds.padding*` properties are deprecated; use root `padding` property instead."
480
+ "type": "\"flyTo\" \\| \"easeTo\" \\| \"linearTo\" \\| \"moveTo\"",
481
+ "default": "\"easeTo\"",
482
+ "description": "The easing or path the camera uses to animate to a new configuration."
782
483
  },
783
484
  {
784
- "name": "onUserTrackingModeChange",
485
+ "name": "allowUpdates",
785
486
  "required": false,
786
- "type": "func",
787
- "default": "none",
788
- "description": "Callback that is triggered on user tracking mode changes"
487
+ "type": "boolean",
488
+ "default": "true",
489
+ "description": "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."
789
490
  },
790
491
  {
791
- "name": "zoomLevel",
492
+ "name": "defaultSettings",
792
493
  "required": false,
793
- "type": "number",
494
+ "type": "CameraStop",
794
495
  "default": "none",
795
- "description": "Zoom level of the map"
496
+ "description": "Default view settings applied on camera"
796
497
  },
797
498
  {
798
499
  "name": "minZoomLevel",
@@ -811,49 +512,21 @@
811
512
  {
812
513
  "name": "maxBounds",
813
514
  "required": false,
814
- "type": {
815
- "name": "shape",
816
- "value": [
817
- {
818
- "name": "ne",
819
- "required": true,
820
- "type": {
821
- "name": "array",
822
- "value": {
823
- "type": "number"
824
- }
825
- },
826
- "default": "none",
827
- "description": "northEastCoordinates - North east coordinate of bound"
828
- },
829
- {
830
- "name": "sw",
831
- "required": true,
832
- "type": {
833
- "name": "array",
834
- "value": {
835
- "type": "number"
836
- }
837
- },
838
- "default": "none",
839
- "description": "southWestCoordinates - South west coordinate of bound"
840
- }
841
- ]
842
- },
515
+ "type": "CameraBounds",
843
516
  "default": "none",
844
517
  "description": "Restrict map panning so that the center is within these bounds"
845
518
  },
846
519
  {
847
520
  "name": "followUserLocation",
848
521
  "required": false,
849
- "type": "bool",
522
+ "type": "boolean",
850
523
  "default": "none",
851
524
  "description": "Should the map orientation follow the user's."
852
525
  },
853
526
  {
854
527
  "name": "followUserMode",
855
528
  "required": false,
856
- "type": "enum",
529
+ "type": "UserTrackingMode",
857
530
  "default": "none",
858
531
  "description": "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)"
859
532
  },
@@ -881,15 +554,25 @@
881
554
  {
882
555
  "name": "triggerKey",
883
556
  "required": false,
884
- "type": "any",
557
+ "type": "string \\| number",
885
558
  "default": "none",
886
559
  "description": "Manually update the camera - helpful for when props did not update, however you still want the camera to move"
560
+ },
561
+ {
562
+ "name": "onUserTrackingModeChange",
563
+ "required": false,
564
+ "type": {
565
+ "name": "func",
566
+ "funcSignature": "(event:MaplibreGLEvent) => void"
567
+ },
568
+ "default": "none",
569
+ "description": "FIX ME NO DESCRIPTION\n*signature:*`(event:MaplibreGLEvent) => void`"
887
570
  }
888
571
  ],
889
572
  "composes": [
890
- "../utils"
573
+ "Omit"
891
574
  ],
892
- "fileNameWithExt": "Camera.js",
575
+ "fileNameWithExt": "Camera.tsx",
893
576
  "name": "Camera"
894
577
  },
895
578
  "CircleLayer": {
@@ -898,80 +581,25 @@
898
581
  "methods": [],
899
582
  "props": [
900
583
  {
901
- "name": "id",
902
- "required": true,
903
- "type": "string",
904
- "default": "none",
905
- "description": "A string that uniquely identifies the source in the style to which it is added."
906
- },
907
- {
908
- "name": "sourceID",
909
- "required": false,
910
- "type": "string",
911
- "default": "MapLibreGL.StyleSource.DefaultSourceID",
912
- "description": "The source from which to obtain the data to style.\nIf the source has not yet been added to the current style, the behavior is undefined.\nInferred from parent source only if the layer is a direct child to it."
913
- },
914
- {
915
- "name": "sourceLayerID",
916
- "required": false,
917
- "type": "string",
918
- "default": "none",
919
- "description": "Identifier of the layer within the source identified by the sourceID property\nfrom which the receiver obtains the data to style."
920
- },
921
- {
922
- "name": "aboveLayerID",
923
- "required": false,
924
- "type": "string",
925
- "default": "none",
926
- "description": "Inserts a layer above aboveLayerID."
927
- },
928
- {
929
- "name": "belowLayerID",
930
- "required": false,
931
- "type": "string",
932
- "default": "none",
933
- "description": "Inserts a layer below belowLayerID"
934
- },
935
- {
936
- "name": "layerIndex",
937
- "required": false,
938
- "type": "number",
939
- "default": "none",
940
- "description": "Inserts a layer at a specified index"
941
- },
942
- {
943
- "name": "filter",
944
- "required": false,
945
- "type": "array",
946
- "default": "none",
947
- "description": "Filter only the features in the source layer that satisfy a condition that you define"
948
- },
949
- {
950
- "name": "minZoomLevel",
951
- "required": false,
952
- "type": "number",
953
- "default": "none",
954
- "description": "The minimum zoom level at which the layer gets parsed and appears."
955
- },
956
- {
957
- "name": "maxZoomLevel",
584
+ "name": "style",
958
585
  "required": false,
959
- "type": "number",
586
+ "type": "CircleLayerStyleProps",
960
587
  "default": "none",
961
- "description": "The maximum zoom level at which the layer gets parsed and appears."
588
+ "description": "Customizable style attributes"
962
589
  },
963
590
  {
964
- "name": "style",
591
+ "name": "sourceID",
965
592
  "required": false,
966
- "type": "union",
967
- "default": "none",
968
- "description": "Customizable style attributes"
593
+ "type": "FIX ME UNKNOWN TYPE",
594
+ "default": "MapLibreGL.StyleSource.DefaultSourceID",
595
+ "description": "FIX ME NO DESCRIPTION"
969
596
  }
970
597
  ],
971
598
  "composes": [
972
- "../utils"
599
+ "BaseProps",
600
+ "BaseLayerProps"
973
601
  ],
974
- "fileNameWithExt": "CircleLayer.js",
602
+ "fileNameWithExt": "CircleLayer.tsx",
975
603
  "name": "CircleLayer",
976
604
  "styles": [
977
605
  {
@@ -1256,80 +884,25 @@
1256
884
  "methods": [],
1257
885
  "props": [
1258
886
  {
1259
- "name": "id",
1260
- "required": true,
1261
- "type": "string",
887
+ "name": "style",
888
+ "required": false,
889
+ "type": "FillExtrusionLayerStyleProps",
1262
890
  "default": "none",
1263
- "description": "A string that uniquely identifies the source in the style to which it is added."
891
+ "description": "Customizable style attributes"
1264
892
  },
1265
893
  {
1266
894
  "name": "sourceID",
1267
895
  "required": false,
1268
- "type": "string",
896
+ "type": "FIX ME UNKNOWN TYPE",
1269
897
  "default": "MapLibreGL.StyleSource.DefaultSourceID",
1270
- "description": "The source from which to obtain the data to style.\nIf the source has not yet been added to the current style, the behavior is undefined.\nInferred from parent source only if the layer is a direct child to it."
1271
- },
1272
- {
1273
- "name": "sourceLayerID",
1274
- "required": false,
1275
- "type": "string",
1276
- "default": "none",
1277
- "description": "Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style."
1278
- },
1279
- {
1280
- "name": "aboveLayerID",
1281
- "required": false,
1282
- "type": "string",
1283
- "default": "none",
1284
- "description": "Inserts a layer above aboveLayerID."
1285
- },
1286
- {
1287
- "name": "belowLayerID",
1288
- "required": false,
1289
- "type": "string",
1290
- "default": "none",
1291
- "description": "Inserts a layer below belowLayerID"
1292
- },
1293
- {
1294
- "name": "layerIndex",
1295
- "required": false,
1296
- "type": "number",
1297
- "default": "none",
1298
- "description": "Inserts a layer at a specified index"
1299
- },
1300
- {
1301
- "name": "filter",
1302
- "required": false,
1303
- "type": "array",
1304
- "default": "none",
1305
- "description": "Filter only the features in the source layer that satisfy a condition that you define"
1306
- },
1307
- {
1308
- "name": "minZoomLevel",
1309
- "required": false,
1310
- "type": "number",
1311
- "default": "none",
1312
- "description": "The minimum zoom level at which the layer gets parsed and appears."
1313
- },
1314
- {
1315
- "name": "maxZoomLevel",
1316
- "required": false,
1317
- "type": "number",
1318
- "default": "none",
1319
- "description": "The maximum zoom level at which the layer gets parsed and appears."
1320
- },
1321
- {
1322
- "name": "style",
1323
- "required": false,
1324
- "type": "union",
1325
- "default": "none",
1326
- "description": "Customizable style attributes"
898
+ "description": "FIX ME NO DESCRIPTION"
1327
899
  }
1328
900
  ],
1329
901
  "composes": [
1330
- "../utils"
902
+ "BaseProps",
903
+ "BaseLayerProps"
1331
904
  ],
1332
- "fileNameWithExt": "FillExtrusionLayer.js",
905
+ "fileNameWithExt": "FillExtrusionLayer.tsx",
1333
906
  "name": "FillExtrusionLayer",
1334
907
  "styles": [
1335
908
  {
@@ -1508,80 +1081,25 @@
1508
1081
  "methods": [],
1509
1082
  "props": [
1510
1083
  {
1511
- "name": "id",
1512
- "required": true,
1513
- "type": "string",
1084
+ "name": "style",
1085
+ "required": false,
1086
+ "type": "FillLayerStyleProps",
1514
1087
  "default": "none",
1515
- "description": "A string that uniquely identifies the source in the style to which it is added."
1088
+ "description": "Customizable style attributes"
1516
1089
  },
1517
1090
  {
1518
1091
  "name": "sourceID",
1519
1092
  "required": false,
1520
- "type": "string",
1093
+ "type": "FIX ME UNKNOWN TYPE",
1521
1094
  "default": "MapLibreGL.StyleSource.DefaultSourceID",
1522
- "description": "The source from which to obtain the data to style.\nIf the source has not yet been added to the current style, the behavior is undefined.\nInferred from parent source only if the layer is a direct child to it."
1523
- },
1524
- {
1525
- "name": "sourceLayerID",
1526
- "required": false,
1527
- "type": "string",
1528
- "default": "none",
1529
- "description": "Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style."
1530
- },
1531
- {
1532
- "name": "aboveLayerID",
1533
- "required": false,
1534
- "type": "string",
1535
- "default": "none",
1536
- "description": "Inserts a layer above aboveLayerID."
1537
- },
1538
- {
1539
- "name": "belowLayerID",
1540
- "required": false,
1541
- "type": "string",
1542
- "default": "none",
1543
- "description": "Inserts a layer below belowLayerID"
1544
- },
1545
- {
1546
- "name": "layerIndex",
1547
- "required": false,
1548
- "type": "number",
1549
- "default": "none",
1550
- "description": "Inserts a layer at a specified index"
1551
- },
1552
- {
1553
- "name": "filter",
1554
- "required": false,
1555
- "type": "array",
1556
- "default": "none",
1557
- "description": "Filter only the features in the source layer that satisfy a condition that you define"
1558
- },
1559
- {
1560
- "name": "minZoomLevel",
1561
- "required": false,
1562
- "type": "number",
1563
- "default": "none",
1564
- "description": "The minimum zoom level at which the layer gets parsed and appears."
1565
- },
1566
- {
1567
- "name": "maxZoomLevel",
1568
- "required": false,
1569
- "type": "number",
1570
- "default": "none",
1571
- "description": "The maximum zoom level at which the layer gets parsed and appears."
1572
- },
1573
- {
1574
- "name": "style",
1575
- "required": false,
1576
- "type": "union",
1577
- "default": "none",
1578
- "description": "Customizable style attributes"
1095
+ "description": "FIX ME NO DESCRIPTION"
1579
1096
  }
1580
1097
  ],
1581
1098
  "composes": [
1582
- "../utils"
1099
+ "BaseProps",
1100
+ "BaseLayerProps"
1583
1101
  ],
1584
- "fileNameWithExt": "FillLayer.js",
1102
+ "fileNameWithExt": "FillLayer.tsx",
1585
1103
  "name": "FillLayer",
1586
1104
  "styles": [
1587
1105
  {
@@ -1777,7 +1295,10 @@
1777
1295
  "description": "FIX ME NO DESCRIPTION"
1778
1296
  }
1779
1297
  ],
1780
- "fileNameWithExt": "HeadingIndicator.js",
1298
+ "composes": [
1299
+ "BaseProps"
1300
+ ],
1301
+ "fileNameWithExt": "HeadingIndicator.tsx",
1781
1302
  "name": "HeadingIndicator"
1782
1303
  },
1783
1304
  "HeatmapLayer": {
@@ -1786,80 +1307,25 @@
1786
1307
  "methods": [],
1787
1308
  "props": [
1788
1309
  {
1789
- "name": "id",
1790
- "required": true,
1791
- "type": "string",
1310
+ "name": "style",
1311
+ "required": false,
1312
+ "type": "HeatmapLayerStyleProps",
1792
1313
  "default": "none",
1793
- "description": "A string that uniquely identifies the source in the style to which it is added."
1314
+ "description": "Customizable style attributes"
1794
1315
  },
1795
1316
  {
1796
1317
  "name": "sourceID",
1797
1318
  "required": false,
1798
- "type": "string",
1319
+ "type": "FIX ME UNKNOWN TYPE",
1799
1320
  "default": "MapLibreGL.StyleSource.DefaultSourceID",
1800
- "description": "The source from which to obtain the data to style.\nIf the source has not yet been added to the current style, the behavior is undefined.\nInferred from parent source only if the layer is a direct child to it."
1801
- },
1802
- {
1803
- "name": "sourceLayerID",
1804
- "required": false,
1805
- "type": "string",
1806
- "default": "none",
1807
- "description": "Identifier of the layer within the source identified by the sourceID property\nfrom which the receiver obtains the data to style."
1808
- },
1809
- {
1810
- "name": "aboveLayerID",
1811
- "required": false,
1812
- "type": "string",
1813
- "default": "none",
1814
- "description": "Inserts a layer above aboveLayerID."
1815
- },
1816
- {
1817
- "name": "belowLayerID",
1818
- "required": false,
1819
- "type": "string",
1820
- "default": "none",
1821
- "description": "Inserts a layer below belowLayerID"
1822
- },
1823
- {
1824
- "name": "layerIndex",
1825
- "required": false,
1826
- "type": "number",
1827
- "default": "none",
1828
- "description": "Inserts a layer at a specified index"
1829
- },
1830
- {
1831
- "name": "filter",
1832
- "required": false,
1833
- "type": "array",
1834
- "default": "none",
1835
- "description": "Filter only the features in the source layer that satisfy a condition that you define"
1836
- },
1837
- {
1838
- "name": "minZoomLevel",
1839
- "required": false,
1840
- "type": "number",
1841
- "default": "none",
1842
- "description": "The minimum zoom level at which the layer gets parsed and appears."
1843
- },
1844
- {
1845
- "name": "maxZoomLevel",
1846
- "required": false,
1847
- "type": "number",
1848
- "default": "none",
1849
- "description": "The maximum zoom level at which the layer gets parsed and appears."
1850
- },
1851
- {
1852
- "name": "style",
1853
- "required": false,
1854
- "type": "union",
1855
- "default": "none",
1856
- "description": "Customizable style attributes"
1321
+ "description": "FIX ME NO DESCRIPTION"
1857
1322
  }
1858
1323
  ],
1859
1324
  "composes": [
1860
- "../utils"
1325
+ "BaseProps",
1326
+ "BaseLayerProps"
1861
1327
  ],
1862
- "fileNameWithExt": "HeatmapLayer.js",
1328
+ "fileNameWithExt": "HeatmapLayer.tsx",
1863
1329
  "name": "HeatmapLayer",
1864
1330
  "styles": [
1865
1331
  {
@@ -2013,32 +1479,29 @@
2013
1479
  {
2014
1480
  "name": "url",
2015
1481
  "required": false,
2016
- "type": "union",
1482
+ "type": "number \\| string",
2017
1483
  "default": "none",
2018
1484
  "description": "An HTTP(S) URL, absolute file URL, or local file URL to the source image.\nGifs are currently not supported."
2019
1485
  },
2020
1486
  {
2021
1487
  "name": "coordinates",
2022
- "required": true,
2023
- "type": {
2024
- "name": "array",
2025
- "value": {
2026
- "type": {
2027
- "name": "array",
2028
- "value": {
2029
- "type": "number"
2030
- }
2031
- }
2032
- }
2033
- },
1488
+ "required": false,
1489
+ "type": "tuple",
2034
1490
  "default": "none",
2035
1491
  "description": "The top left, top right, bottom right, and bottom left coordinates for the image."
1492
+ },
1493
+ {
1494
+ "name": "children",
1495
+ "required": false,
1496
+ "type": "ReactElement \\| ReactElement[]",
1497
+ "default": "none",
1498
+ "description": "FIX ME NO DESCRIPTION"
2036
1499
  }
2037
1500
  ],
2038
1501
  "composes": [
2039
- "../utils"
1502
+ "BaseProps"
2040
1503
  ],
2041
- "fileNameWithExt": "ImageSource.js",
1504
+ "fileNameWithExt": "ImageSource.tsx",
2042
1505
  "name": "ImageSource"
2043
1506
  },
2044
1507
  "Images": {
@@ -2049,34 +1512,49 @@
2049
1512
  {
2050
1513
  "name": "images",
2051
1514
  "required": false,
2052
- "type": "object",
1515
+ "type": {
1516
+ "name": "shape",
1517
+ "value": [
1518
+ {
1519
+ "name": {
1520
+ "name": "string"
1521
+ },
1522
+ "required": true,
1523
+ "type": "union",
1524
+ "default": "none",
1525
+ "description": "FIX ME NO DESCRIPTION"
1526
+ }
1527
+ ]
1528
+ },
2053
1529
  "default": "none",
2054
1530
  "description": "Specifies the external images in key-value pairs required for the shape source.\nKeys are names - see iconImage expressions, values can be either urls-s objects\nwith format {uri: 'http://...'}` or `require('image.png')` or `import 'image.png'`"
2055
1531
  },
2056
1532
  {
2057
1533
  "name": "nativeAssetImages",
2058
1534
  "required": false,
2059
- "type": {
2060
- "name": "array",
2061
- "value": {
2062
- "type": "string"
2063
- }
2064
- },
1535
+ "type": "Array",
2065
1536
  "default": "none",
2066
1537
  "description": "If you have an asset under Image.xcassets on iOS and the drawables directory on android\nyou can specify an array of string names with assets as the key `['pin']`."
2067
1538
  },
2068
1539
  {
2069
- "name": "onImageMissing",
1540
+ "name": "id",
2070
1541
  "required": false,
2071
- "type": "func",
1542
+ "type": "string",
2072
1543
  "default": "none",
2073
- "description": "Gets called when a Layer is trying to render an image whose key is not present in\nany of the `Images` component of the Map."
1544
+ "description": "FIX ME NO DESCRIPTION"
1545
+ },
1546
+ {
1547
+ "name": "children",
1548
+ "required": true,
1549
+ "type": "ReactElement",
1550
+ "default": "none",
1551
+ "description": "FIX ME NO DESCRIPTION"
2074
1552
  }
2075
1553
  ],
2076
1554
  "composes": [
2077
- "../utils"
1555
+ "BaseProps"
2078
1556
  ],
2079
- "fileNameWithExt": "Images.js",
1557
+ "fileNameWithExt": "Images.tsx",
2080
1558
  "name": "Images"
2081
1559
  },
2082
1560
  "Light": {
@@ -2087,15 +1565,16 @@
2087
1565
  {
2088
1566
  "name": "style",
2089
1567
  "required": false,
2090
- "type": "custom",
1568
+ "type": "LightLayerStyleProps",
2091
1569
  "default": "none",
2092
1570
  "description": "Customizable style attributes"
2093
1571
  }
2094
1572
  ],
2095
1573
  "composes": [
2096
- "../utils"
1574
+ "BaseProps",
1575
+ "BaseLayerProps"
2097
1576
  ],
2098
- "fileNameWithExt": "Light.js",
1577
+ "fileNameWithExt": "Light.tsx",
2099
1578
  "name": "Light",
2100
1579
  "styles": [
2101
1580
  {
@@ -2158,111 +1637,56 @@
2158
1637
  "interpolated": true,
2159
1638
  "parameters": [
2160
1639
  "zoom"
2161
- ]
2162
- },
2163
- "transition": true
2164
- },
2165
- {
2166
- "name": "intensity",
2167
- "type": "number",
2168
- "values": [],
2169
- "minimum": 0,
2170
- "maximum": 1,
2171
- "default": 0.5,
2172
- "description": "Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.",
2173
- "requires": [],
2174
- "disabledBy": [],
2175
- "allowedFunctionTypes": [],
2176
- "expression": {
2177
- "interpolated": true,
2178
- "parameters": [
2179
- "zoom"
2180
- ]
2181
- },
2182
- "transition": true
2183
- }
2184
- ]
2185
- },
2186
- "LineLayer": {
2187
- "description": "LineLayer is a style layer that renders one or more stroked polylines on the map.",
2188
- "displayName": "LineLayer",
2189
- "methods": [],
2190
- "props": [
2191
- {
2192
- "name": "id",
2193
- "required": true,
2194
- "type": "string",
2195
- "default": "none",
2196
- "description": "A string that uniquely identifies the source in the style to which it is added."
2197
- },
2198
- {
2199
- "name": "sourceID",
2200
- "required": false,
2201
- "type": "string",
2202
- "default": "MapLibreGL.StyleSource.DefaultSourceID",
2203
- "description": "The source from which to obtain the data to style.\nIf the source has not yet been added to the current style, the behavior is undefined.\nInferred from parent source only if the layer is a direct child to it."
2204
- },
2205
- {
2206
- "name": "sourceLayerID",
2207
- "required": false,
2208
- "type": "string",
2209
- "default": "none",
2210
- "description": "Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style."
2211
- },
2212
- {
2213
- "name": "aboveLayerID",
2214
- "required": false,
2215
- "type": "string",
2216
- "default": "none",
2217
- "description": "Inserts a layer above aboveLayerID."
2218
- },
2219
- {
2220
- "name": "belowLayerID",
2221
- "required": false,
2222
- "type": "string",
2223
- "default": "none",
2224
- "description": "Inserts a layer below belowLayerID"
2225
- },
2226
- {
2227
- "name": "layerIndex",
2228
- "required": false,
2229
- "type": "number",
2230
- "default": "none",
2231
- "description": "Inserts a layer at a specified index"
2232
- },
2233
- {
2234
- "name": "filter",
2235
- "required": false,
2236
- "type": "array",
2237
- "default": "none",
2238
- "description": "Filter only the features in the source layer that satisfy a condition that you define"
1640
+ ]
1641
+ },
1642
+ "transition": true
2239
1643
  },
2240
1644
  {
2241
- "name": "minZoomLevel",
2242
- "required": false,
1645
+ "name": "intensity",
2243
1646
  "type": "number",
2244
- "default": "none",
2245
- "description": "The minimum zoom level at which the layer gets parsed and appears."
2246
- },
1647
+ "values": [],
1648
+ "minimum": 0,
1649
+ "maximum": 1,
1650
+ "default": 0.5,
1651
+ "description": "Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.",
1652
+ "requires": [],
1653
+ "disabledBy": [],
1654
+ "allowedFunctionTypes": [],
1655
+ "expression": {
1656
+ "interpolated": true,
1657
+ "parameters": [
1658
+ "zoom"
1659
+ ]
1660
+ },
1661
+ "transition": true
1662
+ }
1663
+ ]
1664
+ },
1665
+ "LineLayer": {
1666
+ "description": "LineLayer is a style layer that renders one or more stroked polylines on the map.",
1667
+ "displayName": "LineLayer",
1668
+ "methods": [],
1669
+ "props": [
2247
1670
  {
2248
- "name": "maxZoomLevel",
1671
+ "name": "style",
2249
1672
  "required": false,
2250
- "type": "number",
1673
+ "type": "LineLayerStyleProps",
2251
1674
  "default": "none",
2252
- "description": "The maximum zoom level at which the layer gets parsed and appears."
1675
+ "description": "Customizable style attributes"
2253
1676
  },
2254
1677
  {
2255
- "name": "style",
1678
+ "name": "sourceID",
2256
1679
  "required": false,
2257
- "type": "union",
2258
- "default": "none",
2259
- "description": "Customizable style attributes"
1680
+ "type": "FIX ME UNKNOWN TYPE",
1681
+ "default": "MapLibreGL.StyleSource.DefaultSourceID",
1682
+ "description": "FIX ME NO DESCRIPTION"
2260
1683
  }
2261
1684
  ],
2262
1685
  "composes": [
2263
- "../utils"
1686
+ "BaseProps",
1687
+ "BaseLayerProps"
2264
1688
  ],
2265
- "fileNameWithExt": "LineLayer.js",
1689
+ "fileNameWithExt": "LineLayer.tsx",
2266
1690
  "name": "LineLayer",
2267
1691
  "styles": [
2268
1692
  {
@@ -2641,7 +2065,7 @@
2641
2065
  "name": "coordinate",
2642
2066
  "description": "A point expressed in the map view's coordinate system.",
2643
2067
  "type": {
2644
- "name": "Array"
2068
+ "name": "GeoJSON.Position"
2645
2069
  },
2646
2070
  "optional": false
2647
2071
  }
@@ -2649,7 +2073,13 @@
2649
2073
  "returns": {
2650
2074
  "description": null,
2651
2075
  "type": {
2652
- "name": "Array"
2076
+ "name": "Promise",
2077
+ "elements": [
2078
+ {
2079
+ "name": "GeoJSON.Point"
2080
+ }
2081
+ ],
2082
+ "raw": "Promise<GeoJSON.Point>"
2653
2083
  }
2654
2084
  },
2655
2085
  "description": "Converts a geographic coordinate to a point in the given view’s coordinate system.",
@@ -2676,7 +2106,13 @@
2676
2106
  "returns": {
2677
2107
  "description": null,
2678
2108
  "type": {
2679
- "name": "Array"
2109
+ "name": "Promise",
2110
+ "elements": [
2111
+ {
2112
+ "name": "GeoJSON.Position"
2113
+ }
2114
+ ],
2115
+ "raw": "Promise<GeoJSON.Position>"
2680
2116
  }
2681
2117
  },
2682
2118
  "description": "Converts a point in the given view’s coordinate system to a geographic coordinate.",
@@ -2694,7 +2130,22 @@
2694
2130
  "returns": {
2695
2131
  "description": null,
2696
2132
  "type": {
2697
- "name": "Array"
2133
+ "name": "Promise",
2134
+ "elements": [
2135
+ {
2136
+ "name": "tuple",
2137
+ "raw": "[northEast: GeoJSON.Position, southWest: GeoJSON.Position]",
2138
+ "elements": [
2139
+ {
2140
+ "name": "unknown"
2141
+ },
2142
+ {
2143
+ "name": "unknown"
2144
+ }
2145
+ ]
2146
+ }
2147
+ ],
2148
+ "raw": "Promise<VisibleBounds>"
2698
2149
  }
2699
2150
  },
2700
2151
  "description": "The coordinate bounds(ne, sw) visible in the users’s viewport.",
@@ -2704,24 +2155,23 @@
2704
2155
  },
2705
2156
  {
2706
2157
  "name": "queryRenderedFeaturesAtPoint",
2707
- "docblock": "Returns an array of rendered map features that intersect with a given point.\n\n@example\nthis._map.queryRenderedFeaturesAtPoint([30, 40], ['==', 'type', 'Point'], ['id1', 'id2'])\n\n@param {Array<Number>} coordinate - A point expressed in the map view’s coordinate system.\n@param {Array=} filter - 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.\n@param {Array=} layerIDs - A array of layer id's to filter the features by\n@return {FeatureCollection}",
2158
+ "docblock": "Returns an array of rendered map features that intersect with a given point.\n\n@example\nthis._map.queryRenderedFeaturesAtPoint([30, 40], ['==', 'type', 'Point'], ['id1', 'id2'])\n\n@param {Array<Number>} coordinate - A point expressed in the map view’s coordinate system.\n@param {Array=} filter - 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.\n@param {Array=} layerIDs - A array of layer id's to filter the features by\n@return {GeoJSON.FeatureCollection}",
2708
2159
  "modifiers": [
2709
2160
  "async"
2710
2161
  ],
2711
2162
  "params": [
2712
2163
  {
2713
- "name": "coordinate",
2714
- "description": "A point expressed in the map view’s coordinate system.",
2164
+ "name": "point",
2165
+ "optional": false,
2715
2166
  "type": {
2716
- "name": "Array"
2717
- },
2718
- "optional": false
2167
+ "name": "tuple"
2168
+ }
2719
2169
  },
2720
2170
  {
2721
2171
  "name": "filter",
2722
2172
  "description": "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.",
2723
2173
  "type": {
2724
- "name": "Array"
2174
+ "name": "FilterExpression"
2725
2175
  },
2726
2176
  "optional": true
2727
2177
  },
@@ -2737,7 +2187,13 @@
2737
2187
  "returns": {
2738
2188
  "description": null,
2739
2189
  "type": {
2740
- "name": "FeatureCollection"
2190
+ "name": "Promise",
2191
+ "elements": [
2192
+ {
2193
+ "name": "GeoJSON.FeatureCollection"
2194
+ }
2195
+ ],
2196
+ "raw": "Promise<GeoJSON.FeatureCollection>"
2741
2197
  }
2742
2198
  },
2743
2199
  "description": "Returns an array of rendered map features that intersect with a given point.",
@@ -2747,7 +2203,7 @@
2747
2203
  },
2748
2204
  {
2749
2205
  "name": "queryRenderedFeaturesInRect",
2750
- "docblock": "Returns an array of rendered map features that intersect with the given rectangle,\nrestricted to the given style layers and filtered by the given predicate.\n\n@example\nthis._map.queryRenderedFeaturesInRect([30, 40, 20, 10], ['==', 'type', 'Point'], ['id1', 'id2'])\n\n@param {Array<Number>} bbox - A rectangle expressed in the map view’s coordinate system.\n@param {Array=} filter - 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.\n@param {Array=} layerIDs - A array of layer id's to filter the features by\n@return {FeatureCollection}",
2206
+ "docblock": "Returns an array of rendered map features that intersect with the given rectangle,\nrestricted to the given style layers and filtered by the given predicate.\n\n@example\nthis._map.queryRenderedFeaturesInRect([30, 40, 20, 10], ['==', 'type', 'Point'], ['id1', 'id2'])\n\n@param {Array<Number>} bbox - A rectangle expressed in the map view’s coordinate system.\n@param {Array=} filter - 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.\n@param {Array=} layerIDs - A array of layer id's to filter the features by\n@return {GeoJSON.FeatureCollection}",
2751
2207
  "modifiers": [
2752
2208
  "async"
2753
2209
  ],
@@ -2756,7 +2212,7 @@
2756
2212
  "name": "bbox",
2757
2213
  "description": "A rectangle expressed in the map view’s coordinate system.",
2758
2214
  "type": {
2759
- "name": "Array"
2215
+ "name": "GeoJSON.BBox"
2760
2216
  },
2761
2217
  "optional": false
2762
2218
  },
@@ -2764,7 +2220,7 @@
2764
2220
  "name": "filter",
2765
2221
  "description": "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.",
2766
2222
  "type": {
2767
- "name": "Array"
2223
+ "name": "FilterExpression"
2768
2224
  },
2769
2225
  "optional": true
2770
2226
  },
@@ -2780,7 +2236,13 @@
2780
2236
  "returns": {
2781
2237
  "description": null,
2782
2238
  "type": {
2783
- "name": "FeatureCollection"
2239
+ "name": "Promise",
2240
+ "elements": [
2241
+ {
2242
+ "name": "GeoJSON.FeatureCollection"
2243
+ }
2244
+ ],
2245
+ "raw": "Promise<GeoJSON.FeatureCollection>"
2784
2246
  }
2785
2247
  },
2786
2248
  "description": "Returns an array of rendered map features that intersect with the given rectangle,\nrestricted to the given style layers and filtered by the given predicate.",
@@ -2793,7 +2255,11 @@
2793
2255
  "docblock": "Map camera will perform updates based on provided config. Deprecated use Camera#setCamera.",
2794
2256
  "modifiers": [],
2795
2257
  "params": [],
2796
- "returns": null,
2258
+ "returns": {
2259
+ "type": {
2260
+ "name": "void"
2261
+ }
2262
+ },
2797
2263
  "description": "Map camera will perform updates based on provided config. Deprecated use Camera#setCamera.",
2798
2264
  "examples": []
2799
2265
  },
@@ -2816,7 +2282,13 @@
2816
2282
  "returns": {
2817
2283
  "description": null,
2818
2284
  "type": {
2819
- "name": "String"
2285
+ "name": "Promise",
2286
+ "elements": [
2287
+ {
2288
+ "name": "string"
2289
+ }
2290
+ ],
2291
+ "raw": "Promise<string>"
2820
2292
  }
2821
2293
  },
2822
2294
  "description": "Takes snapshot of map with current tiles and returns a URI to the image",
@@ -2832,7 +2304,13 @@
2832
2304
  "returns": {
2833
2305
  "description": null,
2834
2306
  "type": {
2835
- "name": "Number"
2307
+ "name": "Promise",
2308
+ "elements": [
2309
+ {
2310
+ "name": "number"
2311
+ }
2312
+ ],
2313
+ "raw": "Promise<number>"
2836
2314
  }
2837
2315
  },
2838
2316
  "description": "Returns the current zoom of the map view.",
@@ -2850,12 +2328,13 @@
2850
2328
  "returns": {
2851
2329
  "description": "Coordinates",
2852
2330
  "type": {
2853
- "name": "Array",
2331
+ "name": "Promise",
2854
2332
  "elements": [
2855
2333
  {
2856
- "name": "Number"
2334
+ "name": "GeoJSON.Position"
2857
2335
  }
2858
- ]
2336
+ ],
2337
+ "raw": "Promise<GeoJSON.Position>"
2859
2338
  }
2860
2339
  },
2861
2340
  "description": "Returns the map's geographical centerpoint",
@@ -2880,7 +2359,7 @@
2880
2359
  "name": "sourceId",
2881
2360
  "description": "Identifier of the target source (e.g. 'composite')",
2882
2361
  "type": {
2883
- "name": "String"
2362
+ "name": "string"
2884
2363
  },
2885
2364
  "optional": false
2886
2365
  },
@@ -2893,7 +2372,11 @@
2893
2372
  "optional": true
2894
2373
  }
2895
2374
  ],
2896
- "returns": null,
2375
+ "returns": {
2376
+ "type": {
2377
+ "name": "void"
2378
+ }
2379
+ },
2897
2380
  "description": "Sets the visibility of all the layers referencing the specified `sourceLayerId` and/or `sourceId`",
2898
2381
  "examples": [
2899
2382
  "\nawait this._map.setSourceVisibility(false, 'composite', 'building')\n\n"
@@ -2902,9 +2385,21 @@
2902
2385
  {
2903
2386
  "name": "showAttribution",
2904
2387
  "docblock": "Show the attribution and telemetry action sheet.\nIf you implement a custom attribution button, you should add this action to the button.",
2905
- "modifiers": [],
2388
+ "modifiers": [
2389
+ "async"
2390
+ ],
2906
2391
  "params": [],
2907
- "returns": null,
2392
+ "returns": {
2393
+ "type": {
2394
+ "name": "Promise",
2395
+ "elements": [
2396
+ {
2397
+ "name": "void"
2398
+ }
2399
+ ],
2400
+ "raw": "Promise<void>"
2401
+ }
2402
+ },
2908
2403
  "description": "Show the attribution and telemetry action sheet.\nIf you implement a custom attribution button, you should add this action to the button.",
2909
2404
  "examples": []
2910
2405
  }
@@ -2913,14 +2408,14 @@
2913
2408
  {
2914
2409
  "name": "contentInset",
2915
2410
  "required": false,
2916
- "type": "union",
2411
+ "type": "number[] \\| number",
2917
2412
  "default": "none",
2918
2413
  "description": "The distance from the edges of the map view’s frame to the edges of the map view’s logical viewport."
2919
2414
  },
2920
2415
  {
2921
2416
  "name": "style",
2922
2417
  "required": false,
2923
- "type": "any",
2418
+ "type": "ViewProps[\"style\"]",
2924
2419
  "default": "none",
2925
2420
  "description": "Style for wrapping React Native View"
2926
2421
  },
@@ -2929,7 +2424,7 @@
2929
2424
  "required": false,
2930
2425
  "type": "string",
2931
2426
  "default": "none",
2932
- "description": "Style URL for map - notice, if non is set it _will_ default to `MapLibreGL.StyleURL.Street`"
2427
+ "description": "Style URL for map - notice, if non is set it _will_ default to `MapLibreGL.StyleURL.Default`"
2933
2428
  },
2934
2429
  {
2935
2430
  "name": "styleJSON",
@@ -2943,82 +2438,82 @@
2943
2438
  "required": false,
2944
2439
  "type": "number",
2945
2440
  "default": "none",
2946
- "description": "iOS: The preferred frame rate at which the map view is rendered.\nThe default value for this property is MGLMapViewPreferredFramesPerSecondDefault,\nwhich will adaptively set the preferred frame rate based on the capability of\nthe user’s device to maintain a smooth experience. This property can be set to arbitrary integer values.\n\nAndroid: The maximum frame rate at which the map view is rendered, but it can't excess the ability of device hardware.\nThis property can be set to arbitrary integer values."
2441
+ "description": "iOS: The preferred frame rate at which the map view is rendered.\nThe default value for this property is MLNMapViewPreferredFramesPerSecondDefault,\nwhich will adaptively set the preferred frame rate based on the capability of\nthe user’s device to maintain a smooth experience. This property can be set to arbitrary integer values.\n\nAndroid: The maximum frame rate at which the map view is rendered, but it can't excess the ability of device hardware.\nThis property can be set to arbitrary integer values."
2947
2442
  },
2948
2443
  {
2949
2444
  "name": "localizeLabels",
2950
2445
  "required": false,
2951
- "type": "bool",
2446
+ "type": "boolean",
2952
2447
  "default": "false",
2953
2448
  "description": "Automatically change the language of the map labels to the system’s preferred language,\nthis is not something that can be toggled on/off"
2954
2449
  },
2955
2450
  {
2956
2451
  "name": "zoomEnabled",
2957
2452
  "required": false,
2958
- "type": "bool",
2453
+ "type": "boolean",
2959
2454
  "default": "none",
2960
2455
  "description": "Enable/Disable zoom on the map"
2961
2456
  },
2962
2457
  {
2963
2458
  "name": "scrollEnabled",
2964
2459
  "required": false,
2965
- "type": "bool",
2460
+ "type": "boolean",
2966
2461
  "default": "true",
2967
2462
  "description": "Enable/Disable scroll on the map"
2968
2463
  },
2969
2464
  {
2970
2465
  "name": "pitchEnabled",
2971
2466
  "required": false,
2972
- "type": "bool",
2467
+ "type": "boolean",
2973
2468
  "default": "true",
2974
2469
  "description": "Enable/Disable pitch on map"
2975
2470
  },
2976
2471
  {
2977
2472
  "name": "rotateEnabled",
2978
2473
  "required": false,
2979
- "type": "bool",
2474
+ "type": "boolean",
2980
2475
  "default": "true",
2981
2476
  "description": "Enable/Disable rotation on map"
2982
2477
  },
2983
2478
  {
2984
2479
  "name": "attributionEnabled",
2985
2480
  "required": false,
2986
- "type": "bool",
2481
+ "type": "boolean",
2987
2482
  "default": "true",
2988
2483
  "description": "Enable/Disable attribution on map.\n\nThis must be enabled for Mapbox-hosted tiles and styles. Please refer to the Mapbox Terms of Service.\nOther providers do not require this."
2989
2484
  },
2990
2485
  {
2991
2486
  "name": "attributionPosition",
2992
2487
  "required": false,
2993
- "type": "union",
2488
+ "type": "\\| { top?: number; left?: number }\n\\| { top?: number; right?: number }\n\\| { bottom?: number; left?: number }\n\\| { bottom?: number; right?: number }",
2994
2489
  "default": "none",
2995
2490
  "description": "Adds attribution offset, e.g. `{top: 8, left: 8}` will put attribution button in top-left corner of the map"
2996
2491
  },
2997
2492
  {
2998
2493
  "name": "tintColor",
2999
2494
  "required": false,
3000
- "type": "union",
2495
+ "type": "string \\| unknown[]",
3001
2496
  "default": "none",
3002
2497
  "description": "MapView's tintColor"
3003
2498
  },
3004
2499
  {
3005
2500
  "name": "logoEnabled",
3006
2501
  "required": false,
3007
- "type": "bool",
2502
+ "type": "boolean",
3008
2503
  "default": "false",
3009
2504
  "description": "Enable/Disable the logo on the map."
3010
2505
  },
3011
2506
  {
3012
2507
  "name": "logoPosition",
3013
2508
  "required": false,
3014
- "type": "union",
2509
+ "type": "\\| { top?: number; left?: number }\n\\| { top?: number; right?: number }\n\\| { bottom?: number; left?: number }\n\\| { bottom?: number; right?: number }",
3015
2510
  "default": "none",
3016
2511
  "description": "Adds logo offset, e.g. `{top: 8, left: 8}` will put the logo in top-left corner of the map"
3017
2512
  },
3018
2513
  {
3019
2514
  "name": "compassEnabled",
3020
2515
  "required": false,
3021
- "type": "bool",
2516
+ "type": "boolean",
3022
2517
  "default": "none",
3023
2518
  "description": "Enable/Disable the compass from appearing on the map"
3024
2519
  },
@@ -3039,151 +2534,19 @@
3039
2534
  {
3040
2535
  "name": "surfaceView",
3041
2536
  "required": false,
3042
- "type": "bool",
2537
+ "type": "boolean",
3043
2538
  "default": "false",
3044
2539
  "description": "[Android only] Enable/Disable use of GLSurfaceView insted of TextureView."
3045
2540
  },
3046
- {
3047
- "name": "onPress",
3048
- "required": false,
3049
- "type": "func",
3050
- "default": "none",
3051
- "description": "Map press listener, gets called when a user presses the map"
3052
- },
3053
- {
3054
- "name": "onLongPress",
3055
- "required": false,
3056
- "type": "func",
3057
- "default": "none",
3058
- "description": "Map long press listener, gets called when a user long presses the map"
3059
- },
3060
- {
3061
- "name": "onRegionWillChange",
3062
- "required": false,
3063
- "type": "func",
3064
- "default": "none",
3065
- "description": "This event is triggered whenever the currently displayed map region is about to change.",
3066
- "params": [
3067
- {
3068
- "name": "feature",
3069
- "description": "The geojson point feature at the camera center, properties contains zoomLevel, visibleBounds",
3070
- "type": {
3071
- "name": "PointFeature"
3072
- },
3073
- "optional": false
3074
- }
3075
- ]
3076
- },
3077
- {
3078
- "name": "onRegionIsChanging",
3079
- "required": false,
3080
- "type": "func",
3081
- "default": "none",
3082
- "description": "This event is triggered whenever the currently displayed map region is changing.",
3083
- "params": [
3084
- {
3085
- "name": "feature",
3086
- "description": "The geojson point feature at the camera center, properties contains zoomLevel, visibleBounds",
3087
- "type": {
3088
- "name": "PointFeature"
3089
- },
3090
- "optional": false
3091
- }
3092
- ]
3093
- },
3094
- {
3095
- "name": "onRegionDidChange",
3096
- "required": false,
3097
- "type": "func",
3098
- "default": "none",
3099
- "description": "This event is triggered whenever the currently displayed map region finished changing",
3100
- "params": [
3101
- {
3102
- "name": "feature",
3103
- "description": "The geojson point feature at the camera center, properties contains zoomLevel, visibleBounds",
3104
- "type": {
3105
- "name": "PointFeature"
3106
- },
3107
- "optional": false
3108
- }
3109
- ]
3110
- },
3111
- {
3112
- "name": "onWillStartLoadingMap",
3113
- "required": false,
3114
- "type": "func",
3115
- "default": "none",
3116
- "description": "This event is triggered when the map is about to start loading a new map style."
3117
- },
3118
- {
3119
- "name": "onDidFinishLoadingMap",
3120
- "required": false,
3121
- "type": "func",
3122
- "default": "none",
3123
- "description": "This is triggered when the map has successfully loaded a new map style."
3124
- },
3125
- {
3126
- "name": "onDidFailLoadingMap",
3127
- "required": false,
3128
- "type": "func",
3129
- "default": "none",
3130
- "description": "This event is triggered when the map has failed to load a new map style."
3131
- },
3132
- {
3133
- "name": "onWillStartRenderingFrame",
3134
- "required": false,
3135
- "type": "func",
3136
- "default": "none",
3137
- "description": "This event is triggered when the map will start rendering a frame."
3138
- },
3139
- {
3140
- "name": "onDidFinishRenderingFrame",
3141
- "required": false,
3142
- "type": "func",
3143
- "default": "none",
3144
- "description": "This event is triggered when the map finished rendering a frame."
3145
- },
3146
- {
3147
- "name": "onDidFinishRenderingFrameFully",
3148
- "required": false,
3149
- "type": "func",
3150
- "default": "none",
3151
- "description": "This event is triggered when the map fully finished rendering a frame."
3152
- },
3153
- {
3154
- "name": "onWillStartRenderingMap",
3155
- "required": false,
3156
- "type": "func",
3157
- "default": "none",
3158
- "description": "This event is triggered when the map will start rendering the map."
3159
- },
3160
- {
3161
- "name": "onDidFinishRenderingMap",
3162
- "required": false,
3163
- "type": "func",
3164
- "default": "none",
3165
- "description": "This event is triggered when the map finished rendering the map."
3166
- },
3167
- {
3168
- "name": "onDidFinishRenderingMapFully",
3169
- "required": false,
3170
- "type": "func",
3171
- "default": "none",
3172
- "description": "This event is triggered when the map fully finished rendering the map."
3173
- },
3174
2541
  {
3175
2542
  "name": "onUserLocationUpdate",
3176
2543
  "required": false,
3177
- "type": "func",
3178
- "default": "none",
3179
- "description": "This event is triggered when the user location is updated."
3180
- },
3181
- {
3182
- "name": "onDidFinishLoadingStyle",
3183
- "required": false,
3184
- "type": "func",
2544
+ "type": {
2545
+ "name": "func",
2546
+ "funcSignature": "(location:Location) => void"
2547
+ },
3185
2548
  "default": "none",
3186
- "description": "This event is triggered when a style has finished loading."
2549
+ "description": "This event is triggered when the user location is updated.\n*signature:*`(location:Location) => void`"
3187
2550
  },
3188
2551
  {
3189
2552
  "name": "regionWillChangeDebounceTime",
@@ -3198,12 +2561,19 @@
3198
2561
  "type": "number",
3199
2562
  "default": "500",
3200
2563
  "description": "The emitted frequency of regiondidchange events"
2564
+ },
2565
+ {
2566
+ "name": "children",
2567
+ "required": true,
2568
+ "type": "ReactNode",
2569
+ "default": "none",
2570
+ "description": "FIX ME NO DESCRIPTION"
3201
2571
  }
3202
2572
  ],
3203
2573
  "composes": [
3204
- "../utils"
2574
+ "BaseProps"
3205
2575
  ],
3206
- "fileNameWithExt": "MapView.js",
2576
+ "fileNameWithExt": "MapView.tsx",
3207
2577
  "name": "MapView"
3208
2578
  },
3209
2579
  "MarkerView": {
@@ -3214,12 +2584,7 @@
3214
2584
  {
3215
2585
  "name": "coordinate",
3216
2586
  "required": true,
3217
- "type": {
3218
- "name": "array",
3219
- "value": {
3220
- "type": "number"
3221
- }
3222
- },
2587
+ "type": "Array",
3223
2588
  "default": "none",
3224
2589
  "description": "The center point (specified as a map coordinate) of the marker.\nSee also #anchor."
3225
2590
  },
@@ -3245,21 +2610,35 @@
3245
2610
  }
3246
2611
  ]
3247
2612
  },
3248
- "default": "{x: 0.5, y: 0.5}",
2613
+ "default": "{ x: 0.5, y: 0.5 }",
3249
2614
  "description": "Specifies the anchor being set on a particular point of the annotation.\nThe anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],\nwhere (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.\nNote this is only for custom annotations not the default pin view.\nDefaults to the center of the view."
3250
2615
  },
2616
+ {
2617
+ "name": "allowOverlap",
2618
+ "required": false,
2619
+ "type": "boolean",
2620
+ "default": "false",
2621
+ "description": "FIX ME NO DESCRIPTION"
2622
+ },
2623
+ {
2624
+ "name": "isSelected",
2625
+ "required": false,
2626
+ "type": "boolean",
2627
+ "default": "false",
2628
+ "description": "FIX ME NO DESCRIPTION"
2629
+ },
3251
2630
  {
3252
2631
  "name": "children",
3253
2632
  "required": true,
3254
- "type": "element",
2633
+ "type": "ReactReactElement",
3255
2634
  "default": "none",
3256
2635
  "description": "Expects one child - can be container with multiple elements"
3257
2636
  }
3258
2637
  ],
3259
2638
  "composes": [
3260
- "../utils"
2639
+ "ViewProps"
3261
2640
  ],
3262
- "fileNameWithExt": "MarkerView.js",
2641
+ "fileNameWithExt": "MarkerView.tsx",
3263
2642
  "name": "MarkerView"
3264
2643
  },
3265
2644
  "NativeUserLocation": {
@@ -3270,19 +2649,19 @@
3270
2649
  {
3271
2650
  "name": "androidRenderMode",
3272
2651
  "required": false,
3273
- "type": "enum",
2652
+ "type": "\"normal\" \\| \"compass\" \\| \"gps\"",
3274
2653
  "default": "none",
3275
2654
  "description": "Android render mode.\n\n - normal: just a circle\n - compass: triangle with heading\n - gps: large arrow\n\n@platform android"
3276
2655
  },
3277
2656
  {
3278
2657
  "name": "iosShowsUserHeadingIndicator",
3279
2658
  "required": false,
3280
- "type": "bool",
2659
+ "type": "boolean",
3281
2660
  "default": "none",
3282
2661
  "description": "iOS only. A Boolean value indicating whether the user location annotation may display a permanent heading indicator.\n\n@platform ios"
3283
2662
  }
3284
2663
  ],
3285
- "fileNameWithExt": "NativeUserLocation.js",
2664
+ "fileNameWithExt": "NativeUserLocation.tsx",
3286
2665
  "name": "NativeUserLocation"
3287
2666
  },
3288
2667
  "PointAnnotation": {
@@ -3294,7 +2673,11 @@
3294
2673
  "docblock": "On android point annotation is rendered offscreen with a canvas into an image.\nTo rerender the image from the current state of the view call refresh.\nCall this for example from Image#onLoad.",
3295
2674
  "modifiers": [],
3296
2675
  "params": [],
3297
- "returns": null,
2676
+ "returns": {
2677
+ "type": {
2678
+ "name": "void"
2679
+ }
2680
+ },
3298
2681
  "description": "On android point annotation is rendered offscreen with a canvas into an image.\nTo rerender the image from the current state of the view call refresh.\nCall this for example from Image#onLoad.",
3299
2682
  "examples": []
3300
2683
  }
@@ -3324,26 +2707,21 @@
3324
2707
  {
3325
2708
  "name": "selected",
3326
2709
  "required": false,
3327
- "type": "bool",
2710
+ "type": "boolean",
3328
2711
  "default": "none",
3329
2712
  "description": "Manually selects/deselects annotation\n@type {[type]}"
3330
2713
  },
3331
2714
  {
3332
2715
  "name": "draggable",
3333
2716
  "required": false,
3334
- "type": "bool",
2717
+ "type": "boolean",
3335
2718
  "default": "false",
3336
2719
  "description": "Enable or disable dragging. Defaults to false."
3337
2720
  },
3338
2721
  {
3339
2722
  "name": "coordinate",
3340
2723
  "required": true,
3341
- "type": {
3342
- "name": "array",
3343
- "value": {
3344
- "type": "number"
3345
- }
3346
- },
2724
+ "type": "Array",
3347
2725
  "default": "none",
3348
2726
  "description": "The center point (specified as a map coordinate) of the annotation."
3349
2727
  },
@@ -3369,49 +2747,25 @@
3369
2747
  }
3370
2748
  ]
3371
2749
  },
3372
- "default": "{x: 0.5, y: 0.5}",
2750
+ "default": "{ x: 0.5, y: 0.5 }",
3373
2751
  "description": "Specifies the anchor being set on a particular point of the annotation.\nThe anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],\nwhere (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.\nNote this is only for custom annotations not the default pin view.\nDefaults to the center of the view."
3374
2752
  },
3375
2753
  {
3376
- "name": "onSelected",
3377
- "required": false,
3378
- "type": "func",
3379
- "default": "none",
3380
- "description": "This callback is fired once this annotation is selected. Returns a Feature as the first param."
3381
- },
3382
- {
3383
- "name": "onDeselected",
3384
- "required": false,
3385
- "type": "func",
3386
- "default": "none",
3387
- "description": "This callback is fired once this annotation is deselected."
3388
- },
3389
- {
3390
- "name": "onDragStart",
3391
- "required": false,
3392
- "type": "func",
3393
- "default": "none",
3394
- "description": "This callback is fired once this annotation has started being dragged."
3395
- },
3396
- {
3397
- "name": "onDragEnd",
3398
- "required": false,
3399
- "type": "func",
2754
+ "name": "children",
2755
+ "required": true,
2756
+ "type": "React.ReactElement \\| [React.ReactElement, React.ReactElement]",
3400
2757
  "default": "none",
3401
- "description": "This callback is fired once this annotation has stopped being dragged."
2758
+ "description": "Expects one child, and an optional callout can be added as well"
3402
2759
  },
3403
2760
  {
3404
- "name": "onDrag",
2761
+ "name": "style",
3405
2762
  "required": false,
3406
- "type": "func",
2763
+ "type": "ViewProps[\"style\"]",
3407
2764
  "default": "none",
3408
- "description": "This callback is fired while this annotation is being dragged."
2765
+ "description": "FIX ME NO DESCRIPTION"
3409
2766
  }
3410
2767
  ],
3411
- "composes": [
3412
- "../utils"
3413
- ],
3414
- "fileNameWithExt": "PointAnnotation.js",
2768
+ "fileNameWithExt": "PointAnnotation.tsx",
3415
2769
  "name": "PointAnnotation"
3416
2770
  },
3417
2771
  "RasterLayer": {
@@ -3420,80 +2774,25 @@
3420
2774
  "methods": [],
3421
2775
  "props": [
3422
2776
  {
3423
- "name": "id",
3424
- "required": true,
3425
- "type": "string",
2777
+ "name": "style",
2778
+ "required": false,
2779
+ "type": "RasterLayerStyleProps",
3426
2780
  "default": "none",
3427
- "description": "A string that uniquely identifies the source in the style to which it is added."
2781
+ "description": "Customizable style attributes"
3428
2782
  },
3429
2783
  {
3430
2784
  "name": "sourceID",
3431
2785
  "required": false,
3432
- "type": "string",
2786
+ "type": "FIX ME UNKNOWN TYPE",
3433
2787
  "default": "MapLibreGL.StyleSource.DefaultSourceID",
3434
- "description": "The source from which to obtain the data to style.\nIf the source has not yet been added to the current style, the behavior is undefined.\nInferred from parent source only if the layer is a direct child to it."
3435
- },
3436
- {
3437
- "name": "sourceLayerID",
3438
- "required": false,
3439
- "type": "string",
3440
- "default": "none",
3441
- "description": "Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style."
3442
- },
3443
- {
3444
- "name": "aboveLayerID",
3445
- "required": false,
3446
- "type": "string",
3447
- "default": "none",
3448
- "description": "Inserts a layer above aboveLayerID."
3449
- },
3450
- {
3451
- "name": "belowLayerID",
3452
- "required": false,
3453
- "type": "string",
3454
- "default": "none",
3455
- "description": "Inserts a layer below belowLayerID"
3456
- },
3457
- {
3458
- "name": "layerIndex",
3459
- "required": false,
3460
- "type": "number",
3461
- "default": "none",
3462
- "description": "Inserts a layer at a specified index"
3463
- },
3464
- {
3465
- "name": "filter",
3466
- "required": false,
3467
- "type": "array",
3468
- "default": "none",
3469
- "description": "Filter only the features in the source layer that satisfy a condition that you define"
3470
- },
3471
- {
3472
- "name": "minZoomLevel",
3473
- "required": false,
3474
- "type": "number",
3475
- "default": "none",
3476
- "description": "The minimum zoom level at which the layer gets parsed and appears."
3477
- },
3478
- {
3479
- "name": "maxZoomLevel",
3480
- "required": false,
3481
- "type": "number",
3482
- "default": "none",
3483
- "description": "The maximum zoom level at which the layer gets parsed and appears."
3484
- },
3485
- {
3486
- "name": "style",
3487
- "required": false,
3488
- "type": "union",
3489
- "default": "none",
3490
- "description": "Customizable style attributes"
2788
+ "description": "FIX ME NO DESCRIPTION"
3491
2789
  }
3492
2790
  ],
3493
2791
  "composes": [
3494
- "../utils"
2792
+ "BaseProps",
2793
+ "BaseLayerProps"
3495
2794
  ],
3496
- "fileNameWithExt": "RasterLayer.js",
2795
+ "fileNameWithExt": "RasterLayer.tsx",
3497
2796
  "name": "RasterLayer",
3498
2797
  "styles": [
3499
2798
  {
@@ -3696,12 +2995,7 @@
3696
2995
  {
3697
2996
  "name": "tileUrlTemplates",
3698
2997
  "required": false,
3699
- "type": {
3700
- "name": "array",
3701
- "value": {
3702
- "type": "string"
3703
- }
3704
- },
2998
+ "type": "Array",
3705
2999
  "default": "none",
3706
3000
  "description": "An array of tile URL templates. If multiple endpoints are specified, clients may use any combination of endpoints.\nExample: https://example.com/raster-tiles/{z}/{x}/{y}.png"
3707
3001
  },
@@ -3729,7 +3023,7 @@
3729
3023
  {
3730
3024
  "name": "tms",
3731
3025
  "required": false,
3732
- "type": "bool",
3026
+ "type": "boolean",
3733
3027
  "default": "none",
3734
3028
  "description": "Influences the y direction of the tile coordinates. (tms inverts y axis)"
3735
3029
  },
@@ -3739,12 +3033,19 @@
3739
3033
  "type": "string",
3740
3034
  "default": "none",
3741
3035
  "description": "An HTML or literal text string defining the buttons to be displayed in an action sheet when the\nsource is part of a map view’s style and the map view’s attribution button is pressed."
3036
+ },
3037
+ {
3038
+ "name": "children",
3039
+ "required": false,
3040
+ "type": "React.ReactElement \\| React.ReactElement[]",
3041
+ "default": "none",
3042
+ "description": "FIX ME NO DESCRIPTION"
3742
3043
  }
3743
3044
  ],
3744
3045
  "composes": [
3745
- "../utils"
3046
+ "BaseProps"
3746
3047
  ],
3747
- "fileNameWithExt": "RasterSource.js",
3048
+ "fileNameWithExt": "RasterSource.tsx",
3748
3049
  "name": "RasterSource"
3749
3050
  },
3750
3051
  "ShapeSource": {
@@ -3762,7 +3063,7 @@
3762
3063
  "name": "filter",
3763
3064
  "description": "an optional filter statement to filter the returned Features.",
3764
3065
  "type": {
3765
- "name": "Array"
3066
+ "name": "FilterExpression"
3766
3067
  },
3767
3068
  "optional": true
3768
3069
  }
@@ -3770,7 +3071,13 @@
3770
3071
  "returns": {
3771
3072
  "description": null,
3772
3073
  "type": {
3773
- "name": "FeatureCollection"
3074
+ "name": "Promise",
3075
+ "elements": [
3076
+ {
3077
+ "name": "FeatureCollection"
3078
+ }
3079
+ ],
3080
+ "raw": "Promise<FeatureCollection>"
3774
3081
  }
3775
3082
  },
3776
3083
  "description": "Returns all features from the source that match the query parameters regardless of whether or not the feature is\ncurrently rendered on the map.",
@@ -3797,7 +3104,13 @@
3797
3104
  "returns": {
3798
3105
  "description": null,
3799
3106
  "type": {
3800
- "name": "number"
3107
+ "name": "Promise",
3108
+ "elements": [
3109
+ {
3110
+ "name": "number"
3111
+ }
3112
+ ],
3113
+ "raw": "Promise<number>"
3801
3114
  }
3802
3115
  },
3803
3116
  "description": "Returns the zoom needed to expand the cluster.",
@@ -3840,7 +3153,13 @@
3840
3153
  "returns": {
3841
3154
  "description": null,
3842
3155
  "type": {
3843
- "name": "FeatureCollection"
3156
+ "name": "Promise",
3157
+ "elements": [
3158
+ {
3159
+ "name": "FeatureCollection"
3160
+ }
3161
+ ],
3162
+ "raw": "Promise<FeatureCollection>"
3844
3163
  }
3845
3164
  },
3846
3165
  "description": "Returns the FeatureCollection from the cluster.",
@@ -3867,7 +3186,13 @@
3867
3186
  "returns": {
3868
3187
  "description": null,
3869
3188
  "type": {
3870
- "name": "FeatureCollection"
3189
+ "name": "Promise",
3190
+ "elements": [
3191
+ {
3192
+ "name": "FeatureCollection"
3193
+ }
3194
+ ],
3195
+ "raw": "Promise<FeatureCollection>"
3871
3196
  }
3872
3197
  },
3873
3198
  "description": "Returns the FeatureCollection from the cluster (on the next zoom level).",
@@ -3884,11 +3209,15 @@
3884
3209
  "name": "event",
3885
3210
  "optional": false,
3886
3211
  "type": {
3887
- "name": null
3212
+ "name": "NativeSyntheticEvent"
3888
3213
  }
3889
3214
  }
3890
3215
  ],
3891
- "returns": null
3216
+ "returns": {
3217
+ "type": {
3218
+ "name": "void"
3219
+ }
3220
+ }
3892
3221
  }
3893
3222
  ],
3894
3223
  "props": [
@@ -3909,14 +3238,14 @@
3909
3238
  {
3910
3239
  "name": "shape",
3911
3240
  "required": false,
3912
- "type": "object",
3241
+ "type": "\\| GeoJSON.GeometryCollection\n\\| GeoJSON.Feature\n\\| GeoJSON.FeatureCollection\n\\| GeoJSON.Geometry",
3913
3242
  "default": "none",
3914
3243
  "description": "The contents of the source. A shape can represent a GeoJSON geometry, a feature, or a feature colllection."
3915
3244
  },
3916
3245
  {
3917
3246
  "name": "cluster",
3918
3247
  "required": false,
3919
- "type": "bool",
3248
+ "type": "boolean",
3920
3249
  "default": "none",
3921
3250
  "description": "Enables clustering on the source for point shapes."
3922
3251
  },
@@ -3937,7 +3266,20 @@
3937
3266
  {
3938
3267
  "name": "clusterProperties",
3939
3268
  "required": false,
3940
- "type": "object",
3269
+ "type": {
3270
+ "name": "shape",
3271
+ "value": [
3272
+ {
3273
+ "name": {
3274
+ "name": "string"
3275
+ },
3276
+ "required": true,
3277
+ "type": "ExpressionField",
3278
+ "default": "none",
3279
+ "description": "FIX ME NO DESCRIPTION"
3280
+ }
3281
+ ]
3282
+ },
3941
3283
  "default": "none",
3942
3284
  "description": "Specifies custom properties on the generated clusters if clustering\nis enabled, aggregating values from clustered points.\n\nHas the form `{ \"property_name\": [operator, map_expression]}`, where\n `operator` is a custom reduce expression that references a special `[\"accumulated\"]` value -\n it accumulates the property value from clusters/points the cluster contains\n `map_expression` produces the value of a single point\n\nExample: `{ \"resultingSum\": [[\"+\", [\"accumulated\"], [\"get\", \"resultingSum\"]], [\"get\", \"scalerank\"]] }`"
3943
3285
  },
@@ -3965,59 +3307,19 @@
3965
3307
  {
3966
3308
  "name": "lineMetrics",
3967
3309
  "required": false,
3968
- "type": "bool",
3310
+ "type": "boolean",
3969
3311
  "default": "none",
3970
3312
  "description": "Whether to calculate line distance metrics.\nThis is required for line layers that specify lineGradient values.\nThe default value is false."
3971
3313
  },
3972
3314
  {
3973
3315
  "name": "onPress",
3974
3316
  "required": false,
3975
- "type": "func",
3317
+ "type": {
3318
+ "name": "func",
3319
+ "funcSignature": "(event:OnPressEvent) => void"
3320
+ },
3976
3321
  "default": "none",
3977
- "description": "Source press listener, gets called when a user presses one of the children layers only\nif that layer has a higher z-index than another source layers",
3978
- "params": [
3979
- {
3980
- "name": "event",
3981
- "description": null,
3982
- "type": {
3983
- "name": "Object"
3984
- },
3985
- "optional": false
3986
- },
3987
- {
3988
- "name": "event.features",
3989
- "description": "the geojson features that have hit by the press (might be multiple)",
3990
- "type": {
3991
- "name": "Array",
3992
- "elements": [
3993
- {
3994
- "name": "Object"
3995
- }
3996
- ]
3997
- },
3998
- "optional": false
3999
- },
4000
- {
4001
- "name": "event.coordinates",
4002
- "description": "the coordinates of the click",
4003
- "type": {
4004
- "name": "Object"
4005
- },
4006
- "optional": false
4007
- },
4008
- {
4009
- "name": "event.point",
4010
- "description": "the point of the click",
4011
- "type": {
4012
- "name": "Object"
4013
- },
4014
- "optional": false
4015
- }
4016
- ],
4017
- "returns": {
4018
- "description": "void",
4019
- "type": null
4020
- }
3322
+ "description": "Source press listener, gets called when a user presses one of the children layers only\nif that layer has a higher z-index than another source layers\n\n@param {Object} event\n@param {Object[]} event.features - the geojson features that have hit by the press (might be multiple)\n@param {Object} event.coordinates - the coordinates of the click\n@param {Object} event.point - the point of the click\n@return void\n*signature:*`(event:OnPressEvent) => void`"
4021
3323
  },
4022
3324
  {
4023
3325
  "name": "hitbox",
@@ -4043,12 +3345,19 @@
4043
3345
  },
4044
3346
  "default": "none",
4045
3347
  "description": "Overrides the default touch hitbox(44x44 pixels) for the source layers"
3348
+ },
3349
+ {
3350
+ "name": "children",
3351
+ "required": false,
3352
+ "type": "ReactElement \\| ReactElement[]",
3353
+ "default": "none",
3354
+ "description": "FIX ME NO DESCRIPTION"
4046
3355
  }
4047
3356
  ],
4048
3357
  "composes": [
4049
- "../utils"
3358
+ "BaseProps"
4050
3359
  ],
4051
- "fileNameWithExt": "ShapeSource.js",
3360
+ "fileNameWithExt": "ShapeSource.tsx",
4052
3361
  "name": "ShapeSource"
4053
3362
  },
4054
3363
  "Style": {
@@ -4059,12 +3368,12 @@
4059
3368
  {
4060
3369
  "name": "json",
4061
3370
  "required": false,
4062
- "type": "any",
3371
+ "type": "MaplibreJSON \\| URL",
4063
3372
  "default": "none",
4064
3373
  "description": "A JSON object conforming to the schema described in the MapLibre Style Specification, or a URL to such JSON."
4065
3374
  }
4066
3375
  ],
4067
- "fileNameWithExt": "Style.js",
3376
+ "fileNameWithExt": "Style.tsx",
4068
3377
  "name": "Style"
4069
3378
  },
4070
3379
  "SymbolLayer": {
@@ -4073,80 +3382,32 @@
4073
3382
  "methods": [],
4074
3383
  "props": [
4075
3384
  {
4076
- "name": "id",
4077
- "required": true,
4078
- "type": "string",
4079
- "default": "none",
4080
- "description": "A string that uniquely identifies the source in the style to which it is added."
4081
- },
4082
- {
4083
- "name": "sourceID",
4084
- "required": false,
4085
- "type": "string",
4086
- "default": "MapLibreGL.StyleSource.DefaultSourceID",
4087
- "description": "The source from which to obtain the data to style.\nIf the source has not yet been added to the current style, the behavior is undefined.\nInferred from parent source only if the layer is a direct child to it."
4088
- },
4089
- {
4090
- "name": "sourceLayerID",
4091
- "required": false,
4092
- "type": "string",
4093
- "default": "none",
4094
- "description": "Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style."
4095
- },
4096
- {
4097
- "name": "aboveLayerID",
4098
- "required": false,
4099
- "type": "string",
4100
- "default": "none",
4101
- "description": "Inserts a layer above aboveLayerID."
4102
- },
4103
- {
4104
- "name": "belowLayerID",
4105
- "required": false,
4106
- "type": "string",
4107
- "default": "none",
4108
- "description": "Inserts a layer below belowLayerID"
4109
- },
4110
- {
4111
- "name": "layerIndex",
4112
- "required": false,
4113
- "type": "number",
4114
- "default": "none",
4115
- "description": "Inserts a layer at a specified index"
4116
- },
4117
- {
4118
- "name": "filter",
4119
- "required": false,
4120
- "type": "array",
4121
- "default": "none",
4122
- "description": "Filter only the features in the source layer that satisfy a condition that you define"
4123
- },
4124
- {
4125
- "name": "minZoomLevel",
3385
+ "name": "style",
4126
3386
  "required": false,
4127
- "type": "number",
3387
+ "type": "SymbolLayerStyleProps",
4128
3388
  "default": "none",
4129
- "description": "The minimum zoom level at which the layer gets parsed and appears."
3389
+ "description": "Customizable style attributes"
4130
3390
  },
4131
3391
  {
4132
- "name": "maxZoomLevel",
3392
+ "name": "children",
4133
3393
  "required": false,
4134
- "type": "number",
3394
+ "type": "ReactElement \\| ReactElement[]",
4135
3395
  "default": "none",
4136
- "description": "The maximum zoom level at which the layer gets parsed and appears."
3396
+ "description": "@deprecated passed children used to create an image with id of symbol in style and also set the iconImageName property accordingly.\nThis is now deprecated, use Image component instead."
4137
3397
  },
4138
3398
  {
4139
- "name": "style",
3399
+ "name": "sourceID",
4140
3400
  "required": false,
4141
- "type": "union",
4142
- "default": "none",
4143
- "description": "Customizable style attributes"
3401
+ "type": "FIX ME UNKNOWN TYPE",
3402
+ "default": "MapLibreGL.StyleSource.DefaultSourceID",
3403
+ "description": "FIX ME NO DESCRIPTION"
4144
3404
  }
4145
3405
  ],
4146
3406
  "composes": [
4147
- "../utils"
3407
+ "BaseProps",
3408
+ "BaseLayerProps"
4148
3409
  ],
4149
- "fileNameWithExt": "SymbolLayer.js",
3410
+ "fileNameWithExt": "SymbolLayer.tsx",
4150
3411
  "name": "SymbolLayer",
4151
3412
  "styles": [
4152
3413
  {
@@ -5502,10 +4763,10 @@
5502
4763
  ],
5503
4764
  "params": [
5504
4765
  {
5505
- "name": "{running}",
4766
+ "name": "{\n running,\n}: {\n running: boolean;\n}",
5506
4767
  "optional": false,
5507
4768
  "type": {
5508
- "name": null
4769
+ "name": "{running:boolean;}"
5509
4770
  }
5510
4771
  }
5511
4772
  ],
@@ -5517,7 +4778,8 @@
5517
4778
  {
5518
4779
  "name": "void"
5519
4780
  }
5520
- ]
4781
+ ],
4782
+ "raw": "Promise<void>"
5521
4783
  }
5522
4784
  },
5523
4785
  "description": "Whether to start or stop listening to the locationManager\n\nNotice, that listening will start automatically when\neither `onUpdate` or `visible` are set",
@@ -5542,49 +4804,35 @@
5542
4804
  {
5543
4805
  "name": "animated",
5544
4806
  "required": false,
5545
- "type": "bool",
4807
+ "type": "boolean",
5546
4808
  "default": "true",
5547
4809
  "description": "Whether location icon is animated between updates"
5548
4810
  },
5549
4811
  {
5550
4812
  "name": "renderMode",
5551
4813
  "required": false,
5552
- "type": "enum",
5553
- "default": "'normal'",
4814
+ "type": "\"normal\" \\| \"native\"",
4815
+ "default": "\"normal\"",
5554
4816
  "description": "Which render mode to use.\nCan either be `normal` or `native`"
5555
4817
  },
5556
4818
  {
5557
4819
  "name": "androidRenderMode",
5558
4820
  "required": false,
5559
- "type": "enum",
4821
+ "type": "\"normal\" \\| \"compass\" \\| \"gps\"",
5560
4822
  "default": "none",
5561
4823
  "description": "native/android only render mode\n\n - normal: just a circle\n - compass: triangle with heading\n - gps: large arrow\n\n@platform android"
5562
4824
  },
5563
4825
  {
5564
4826
  "name": "visible",
5565
4827
  "required": false,
5566
- "type": "bool",
4828
+ "type": "boolean",
5567
4829
  "default": "true",
5568
4830
  "description": "Whether location icon is visible"
5569
4831
  },
5570
- {
5571
- "name": "onPress",
5572
- "required": false,
5573
- "type": "func",
5574
- "default": "none",
5575
- "description": "Callback that is triggered on location icon press"
5576
- },
5577
- {
5578
- "name": "onUpdate",
5579
- "required": false,
5580
- "type": "func",
5581
- "default": "none",
5582
- "description": "Callback that is triggered on location update"
5583
- },
5584
4832
  {
5585
4833
  "name": "showsUserHeadingIndicator",
5586
4834
  "required": false,
5587
- "type": "bool",
4835
+ "type": "boolean",
5588
4836
  "default": "false",
5589
4837
  "description": "Show or hide small arrow which indicates direction the device is pointing relative to north."
5590
4838
  },
@@ -5598,12 +4846,12 @@
5598
4846
  {
5599
4847
  "name": "children",
5600
4848
  "required": false,
5601
- "type": "any",
4849
+ "type": "ReactElement \\| ReactElement[]",
5602
4850
  "default": "none",
5603
4851
  "description": "Custom location icon of type mapbox-gl-native components\n\nNOTE: Forking maintainer does not understand the above comment."
5604
4852
  }
5605
4853
  ],
5606
- "fileNameWithExt": "UserLocation.js",
4854
+ "fileNameWithExt": "UserLocation.tsx",
5607
4855
  "name": "UserLocation"
5608
4856
  },
5609
4857
  "VectorSource": {
@@ -5612,7 +4860,7 @@
5612
4860
  "methods": [
5613
4861
  {
5614
4862
  "name": "features",
5615
- "docblock": "Returns all features that match the query parameters regardless of whether or not the feature is\ncurrently rendered on the map. The domain of the query includes all currently-loaded vector tiles\nand GeoJSON source tiles. This function does not check tiles outside of the visible viewport.\n\n@example\nvectorSource.features(['id1', 'id2'])\n\n@param {Array=} layerIDs - 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.\n@param {Array=} filter - an optional filter statement to filter the returned Features.\n@return {FeatureCollection}",
4863
+ "docblock": "Returns all features that match the query parameters regardless of whether or not the feature is\ncurrently rendered on the map. The domain of the query includes all currently-loaded vector tiles\nand GeoJSON source tiles. This function does not check tiles outside of the visible viewport.\n\n@example\nvectorSource.features(['id1', 'id2'])\n\n@param {Array=} layerIDs - 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.\n@param {Array=} filter - an optional filter statement to filter the returned Features.\n@return {GeoJSON.FeatureCollection}",
5616
4864
  "modifiers": [
5617
4865
  "async"
5618
4866
  ],
@@ -5629,7 +4877,7 @@
5629
4877
  "name": "filter",
5630
4878
  "description": "an optional filter statement to filter the returned Features.",
5631
4879
  "type": {
5632
- "name": "Array"
4880
+ "name": "FilterExpression"
5633
4881
  },
5634
4882
  "optional": true
5635
4883
  }
@@ -5637,7 +4885,13 @@
5637
4885
  "returns": {
5638
4886
  "description": null,
5639
4887
  "type": {
5640
- "name": "FeatureCollection"
4888
+ "name": "Promise",
4889
+ "elements": [
4890
+ {
4891
+ "name": "GeoJSON.FeatureCollection"
4892
+ }
4893
+ ],
4894
+ "raw": "Promise<GeoJSON.FeatureCollection>"
5641
4895
  }
5642
4896
  },
5643
4897
  "description": "Returns all features that match the query parameters regardless of whether or not the feature is\ncurrently rendered on the map. The domain of the query includes all currently-loaded vector tiles\nand GeoJSON source tiles. This function does not check tiles outside of the visible viewport.",
@@ -5654,11 +4908,15 @@
5654
4908
  "name": "event",
5655
4909
  "optional": false,
5656
4910
  "type": {
5657
- "name": null
4911
+ "name": "NativeSyntheticEvent"
5658
4912
  }
5659
4913
  }
5660
4914
  ],
5661
- "returns": null
4915
+ "returns": {
4916
+ "type": {
4917
+ "name": "void"
4918
+ }
4919
+ }
5662
4920
  }
5663
4921
  ],
5664
4922
  "props": [
@@ -5679,12 +4937,7 @@
5679
4937
  {
5680
4938
  "name": "tileUrlTemplates",
5681
4939
  "required": false,
5682
- "type": {
5683
- "name": "array",
5684
- "value": {
5685
- "type": "string"
5686
- }
5687
- },
4940
+ "type": "Array",
5688
4941
  "default": "none",
5689
4942
  "description": "An array of tile URL templates. If multiple endpoints are specified, clients may use any combination of endpoints.\nExample: https://example.com/vector-tiles/{z}/{x}/{y}.pbf"
5690
4943
  },
@@ -5705,7 +4958,7 @@
5705
4958
  {
5706
4959
  "name": "tms",
5707
4960
  "required": false,
5708
- "type": "bool",
4961
+ "type": "boolean",
5709
4962
  "default": "none",
5710
4963
  "description": "Influences the y direction of the tile coordinates. (tms inverts y axis)"
5711
4964
  },
@@ -5719,48 +4972,12 @@
5719
4972
  {
5720
4973
  "name": "onPress",
5721
4974
  "required": false,
5722
- "type": "func",
4975
+ "type": {
4976
+ "name": "func",
4977
+ "funcSignature": "(event:OnPressEvent) => void"
4978
+ },
5723
4979
  "default": "none",
5724
- "description": "Source press listener, gets called when a user presses one of the children layers only\nif that layer has a higher z-index than another source layers",
5725
- "params": [
5726
- {
5727
- "name": "event",
5728
- "description": null,
5729
- "type": {
5730
- "name": "Object"
5731
- },
5732
- "optional": false
5733
- },
5734
- {
5735
- "name": "event.features",
5736
- "description": "the geojson features that have hit by the press (might be multiple)",
5737
- "type": {
5738
- "name": "Array",
5739
- "elements": [
5740
- {
5741
- "name": "Object"
5742
- }
5743
- ]
5744
- },
5745
- "optional": false
5746
- },
5747
- {
5748
- "name": "event.coordinates",
5749
- "description": "the coordinates of the click",
5750
- "type": {
5751
- "name": "Object"
5752
- },
5753
- "optional": false
5754
- },
5755
- {
5756
- "name": "event.point",
5757
- "description": "the point of the click",
5758
- "type": {
5759
- "name": "Object"
5760
- },
5761
- "optional": false
5762
- }
5763
- ]
4980
+ "description": "Source press listener, gets called when a user presses one of the children layers only\nif that layer has a higher z-index than another source layers\n\n@param {Object} event\n@param {Object[]} event.features - the geojson features that have hit by the press (might be multiple)\n@param {Object} event.coordinates - the coordinates of the click\n@param {Object} event.point - the point of the click\n*signature:*`(event:OnPressEvent) => void`"
5764
4981
  },
5765
4982
  {
5766
4983
  "name": "hitbox",
@@ -5786,17 +5003,40 @@
5786
5003
  },
5787
5004
  "default": "none",
5788
5005
  "description": "Overrides the default touch hitbox(44x44 pixels) for the source layers"
5006
+ },
5007
+ {
5008
+ "name": "children",
5009
+ "required": false,
5010
+ "type": "React.ReactElement \\| React.ReactElement[]",
5011
+ "default": "none",
5012
+ "description": "FIX ME NO DESCRIPTION"
5789
5013
  }
5790
5014
  ],
5791
5015
  "composes": [
5792
- "../utils"
5016
+ "BaseProps"
5793
5017
  ],
5794
- "fileNameWithExt": "VectorSource.js",
5018
+ "fileNameWithExt": "VectorSource.tsx",
5795
5019
  "name": "VectorSource"
5796
5020
  },
5021
+ "coordinates": {
5022
+ "name": "coordinates",
5023
+ "fileNameWithExt": "locationManager.ts",
5024
+ "description": "Coorinates sent by locationManager",
5025
+ "props": [],
5026
+ "styles": [],
5027
+ "methods": []
5028
+ },
5029
+ "location": {
5030
+ "name": "location",
5031
+ "fileNameWithExt": "locationManager.ts",
5032
+ "description": "Location sent by locationManager",
5033
+ "props": [],
5034
+ "styles": [],
5035
+ "methods": []
5036
+ },
5797
5037
  "offlineManager": {
5798
5038
  "name": "offlineManager",
5799
- "fileNameWithExt": "offlineManager.js",
5039
+ "fileNameWithExt": "offlineManager.ts",
5800
5040
  "description": "OfflineManager implements a singleton (shared object) that manages offline packs.\nAll of this class’s instance methods are asynchronous, reflecting the fact that offline resources are stored in a database.\nThe shared object maintains a canonical collection of offline packs.",
5801
5041
  "props": [],
5802
5042
  "styles": [],
@@ -6123,7 +5363,7 @@
6123
5363
  },
6124
5364
  "snapshotManager": {
6125
5365
  "name": "snapshotManager",
6126
- "fileNameWithExt": "snapshotManager.js",
5366
+ "fileNameWithExt": "snapshotManager.ts",
6127
5367
  "description": "The snapshotManager generates static raster images of the map.\nEach snapshot image depicts a portion of a map defined by an SnapshotOptions object you provide.\nThe snapshotter generates the snapshot asynchronous.",
6128
5368
  "props": [],
6129
5369
  "styles": [],
@@ -6142,7 +5382,7 @@
6142
5382
  }
6143
5383
  ],
6144
5384
  "examples": [
6145
- "// creates a temp file png of base map\nconst uri = await MapLibreGL.snapshotManager.takeSnap({\n centerCoordinate: [-74.126410, 40.797968],\n width: width,\n height: height,\n zoomLevel: 12,\n pitch: 30,\n heading: 20,\n styleURL: MapLibreGL.StyleURL.Dark,\n writeToDisk: true, // Create a temporary file\n});\n\n// creates base64 png of base map without logo\nconst uri = await MapLibreGL.snapshotManager.takeSnap({\n centerCoordinate: [-74.126410, 40.797968],\n width: width,\n height: height,\n zoomLevel: 12,\n pitch: 30,\n heading: 20,\n styleURL: MapLibreGL.StyleURL.Dark,\n withLogo: false, // Disable Mapbox logo (Android only)\n});\n\n// creates snapshot with bounds\nconst uri = await MapLibreGL.snapshotManager.takeSnap({\n bounds: [[-74.126410, 40.797968], [-74.143727, 40.772177]],\n width: width,\n height: height,\n styleURL: MapLibreGL.StyleURL.Dark,\n});"
5385
+ "// creates a temp file png of base map\nconst uri = await MapLibreGL.snapshotManager.takeSnap({\n centerCoordinate: [-74.126410, 40.797968],\n width: width,\n height: height,\n zoomLevel: 12,\n pitch: 30,\n heading: 20,\n styleURL: MapLibreGL.StyleURL.Default,\n writeToDisk: true, // Create a temporary file\n});\n\n// creates base64 png of base map without logo\nconst uri = await MapLibreGL.snapshotManager.takeSnap({\n centerCoordinate: [-74.126410, 40.797968],\n width: width,\n height: height,\n zoomLevel: 12,\n pitch: 30,\n heading: 20,\n styleURL: MapLibreGL.StyleURL.Default,\n withLogo: false, // Disable Mapbox logo (Android only)\n});\n\n// creates snapshot with bounds\nconst uri = await MapLibreGL.snapshotManager.takeSnap({\n bounds: [[-74.126410, 40.797968], [-74.143727, 40.772177]],\n width: width,\n height: height,\n styleURL: MapLibreGL.StyleURL.Default,\n});"
6146
5386
  ],
6147
5387
  "returns": {
6148
5388
  "description": "",