@maplibre/maplibre-react-native 11.0.0-beta.24 → 11.0.0-beta.26

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 (218) hide show
  1. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.kt +10 -8
  2. package/ios/modules/offline/MLRNOfflineModule.h +1 -2
  3. package/ios/modules/offline/MLRNOfflineModule.mm +9 -9
  4. package/lib/commonjs/components/annotations/callout/Callout.js +2 -1
  5. package/lib/commonjs/components/annotations/callout/Callout.js.map +1 -1
  6. package/lib/commonjs/components/annotations/marker/Marker.js +4 -2
  7. package/lib/commonjs/components/annotations/marker/Marker.js.map +1 -1
  8. package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js +6 -5
  9. package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
  10. package/lib/commonjs/components/camera/Camera.js.map +1 -1
  11. package/lib/commonjs/components/images/Images.js +2 -2
  12. package/lib/commonjs/components/layer/Layer.js +0 -1
  13. package/lib/commonjs/components/layer/Layer.js.map +1 -1
  14. package/lib/commonjs/components/map/Map.js.map +1 -1
  15. package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js +2 -2
  16. package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
  17. package/lib/commonjs/components/sources/image-source/ImageSource.js +3 -2
  18. package/lib/commonjs/components/sources/image-source/ImageSource.js.map +1 -1
  19. package/lib/commonjs/components/sources/raster-source/RasterSource.js +4 -3
  20. package/lib/commonjs/components/sources/raster-source/RasterSource.js.map +1 -1
  21. package/lib/commonjs/components/sources/vector-source/VectorSource.js +4 -2
  22. package/lib/commonjs/components/sources/vector-source/VectorSource.js.map +1 -1
  23. package/lib/commonjs/components/user-location/NativeUserLocation.js.map +1 -1
  24. package/lib/commonjs/components/user-location/UserLocation.js.map +1 -1
  25. package/lib/commonjs/modules/log/LogManager.js +5 -4
  26. package/lib/commonjs/modules/log/LogManager.js.map +1 -1
  27. package/lib/commonjs/modules/network/NetworkManager.js +7 -7
  28. package/lib/commonjs/modules/network/NetworkManager.js.map +1 -1
  29. package/lib/commonjs/modules/offline/OfflineManager.js +63 -47
  30. package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -1
  31. package/lib/commonjs/modules/transform-request/TransformRequestManager.js +50 -45
  32. package/lib/commonjs/modules/transform-request/TransformRequestManager.js.map +1 -1
  33. package/lib/commonjs/plugin/ios.js +9 -8
  34. package/lib/commonjs/plugin/ios.js.map +1 -1
  35. package/lib/commonjs/types/Anchor.js +5 -6
  36. package/lib/commonjs/types/Anchor.js.map +1 -1
  37. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
  38. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +6 -6
  39. package/lib/commonjs/utils/animated/AnimatedGeoJSON.js +2 -1
  40. package/lib/commonjs/utils/animated/AnimatedGeoJSON.js.map +1 -1
  41. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
  42. package/lib/commonjs/utils/convertStyleSpec.js +4 -4
  43. package/lib/module/components/annotations/callout/Callout.js +2 -1
  44. package/lib/module/components/annotations/callout/Callout.js.map +1 -1
  45. package/lib/module/components/annotations/marker/Marker.js +4 -2
  46. package/lib/module/components/annotations/marker/Marker.js.map +1 -1
  47. package/lib/module/components/annotations/view-annotation/ViewAnnotation.js +6 -5
  48. package/lib/module/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
  49. package/lib/module/components/camera/Camera.js.map +1 -1
  50. package/lib/module/components/images/Images.js +2 -2
  51. package/lib/module/components/layer/Layer.js +0 -1
  52. package/lib/module/components/layer/Layer.js.map +1 -1
  53. package/lib/module/components/map/Map.js.map +1 -1
  54. package/lib/module/components/sources/geojson-source/GeoJSONSource.js +2 -2
  55. package/lib/module/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
  56. package/lib/module/components/sources/image-source/ImageSource.js +3 -2
  57. package/lib/module/components/sources/image-source/ImageSource.js.map +1 -1
  58. package/lib/module/components/sources/raster-source/RasterSource.js +4 -3
  59. package/lib/module/components/sources/raster-source/RasterSource.js.map +1 -1
  60. package/lib/module/components/sources/vector-source/VectorSource.js +4 -2
  61. package/lib/module/components/sources/vector-source/VectorSource.js.map +1 -1
  62. package/lib/module/components/user-location/NativeUserLocation.js.map +1 -1
  63. package/lib/module/components/user-location/UserLocation.js.map +1 -1
  64. package/lib/module/modules/log/LogManager.js +5 -4
  65. package/lib/module/modules/log/LogManager.js.map +1 -1
  66. package/lib/module/modules/network/NetworkManager.js +7 -7
  67. package/lib/module/modules/network/NetworkManager.js.map +1 -1
  68. package/lib/module/modules/offline/OfflineManager.js +63 -47
  69. package/lib/module/modules/offline/OfflineManager.js.map +1 -1
  70. package/lib/module/modules/transform-request/TransformRequestManager.js +50 -45
  71. package/lib/module/modules/transform-request/TransformRequestManager.js.map +1 -1
  72. package/lib/module/plugin/ios.js +9 -8
  73. package/lib/module/plugin/ios.js.map +1 -1
  74. package/lib/module/types/Anchor.js +5 -6
  75. package/lib/module/types/Anchor.js.map +1 -1
  76. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +2 -2
  77. package/lib/module/utils/animated/AnimatedCoordinatesArray.js +6 -6
  78. package/lib/module/utils/animated/AnimatedGeoJSON.js +2 -1
  79. package/lib/module/utils/animated/AnimatedGeoJSON.js.map +1 -1
  80. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
  81. package/lib/module/utils/convertStyleSpec.js +4 -4
  82. package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts +3 -2
  83. package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts.map +1 -1
  84. package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts +15 -14
  85. package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts.map +1 -1
  86. package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts +26 -24
  87. package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -1
  88. package/lib/typescript/commonjs/components/camera/Camera.d.ts +10 -24
  89. package/lib/typescript/commonjs/components/camera/Camera.d.ts.map +1 -1
  90. package/lib/typescript/commonjs/components/images/Images.d.ts +12 -12
  91. package/lib/typescript/commonjs/components/layer/Layer.d.ts +0 -1
  92. package/lib/typescript/commonjs/components/layer/Layer.d.ts.map +1 -1
  93. package/lib/typescript/commonjs/components/map/Map.d.ts +54 -51
  94. package/lib/typescript/commonjs/components/map/Map.d.ts.map +1 -1
  95. package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts +40 -41
  96. package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -1
  97. package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts +5 -3
  98. package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts.map +1 -1
  99. package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts +20 -15
  100. package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts.map +1 -1
  101. package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts +23 -20
  102. package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts.map +1 -1
  103. package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts +9 -6
  104. package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts.map +1 -1
  105. package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts +4 -2
  106. package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts.map +1 -1
  107. package/lib/typescript/commonjs/hooks/useCurrentPosition.d.ts +2 -2
  108. package/lib/typescript/commonjs/modules/log/LogManager.d.ts +5 -4
  109. package/lib/typescript/commonjs/modules/log/LogManager.d.ts.map +1 -1
  110. package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts +7 -7
  111. package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts.map +1 -1
  112. package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts +63 -47
  113. package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts.map +1 -1
  114. package/lib/typescript/commonjs/modules/static-map/StaticMapManager.d.ts +2 -2
  115. package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts +56 -49
  116. package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts.map +1 -1
  117. package/lib/typescript/commonjs/plugin/MapLibrePluginProps.d.ts +10 -15
  118. package/lib/typescript/commonjs/plugin/MapLibrePluginProps.d.ts.map +1 -1
  119. package/lib/typescript/commonjs/plugin/ios.d.ts +2 -2
  120. package/lib/typescript/commonjs/plugin/ios.d.ts.map +1 -1
  121. package/lib/typescript/commonjs/types/Anchor.d.ts +5 -6
  122. package/lib/typescript/commonjs/types/Anchor.d.ts.map +1 -1
  123. package/lib/typescript/commonjs/types/LngLatBounds.d.ts +2 -1
  124. package/lib/typescript/commonjs/types/LngLatBounds.d.ts.map +1 -1
  125. package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts +243 -93
  126. package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts.map +1 -1
  127. package/lib/typescript/commonjs/types/sources/PressableSourceProps.d.ts +1 -2
  128. package/lib/typescript/commonjs/types/sources/PressableSourceProps.d.ts.map +1 -1
  129. package/lib/typescript/commonjs/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  130. package/lib/typescript/commonjs/utils/animated/AnimatedCoordinatesArray.d.ts +6 -6
  131. package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts +2 -1
  132. package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts.map +1 -1
  133. package/lib/typescript/commonjs/utils/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
  134. package/lib/typescript/commonjs/utils/convertStyleSpec.d.ts +4 -4
  135. package/lib/typescript/module/components/annotations/callout/Callout.d.ts +3 -2
  136. package/lib/typescript/module/components/annotations/callout/Callout.d.ts.map +1 -1
  137. package/lib/typescript/module/components/annotations/marker/Marker.d.ts +15 -14
  138. package/lib/typescript/module/components/annotations/marker/Marker.d.ts.map +1 -1
  139. package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts +26 -24
  140. package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -1
  141. package/lib/typescript/module/components/camera/Camera.d.ts +10 -24
  142. package/lib/typescript/module/components/camera/Camera.d.ts.map +1 -1
  143. package/lib/typescript/module/components/images/Images.d.ts +12 -12
  144. package/lib/typescript/module/components/layer/Layer.d.ts +0 -1
  145. package/lib/typescript/module/components/layer/Layer.d.ts.map +1 -1
  146. package/lib/typescript/module/components/map/Map.d.ts +54 -51
  147. package/lib/typescript/module/components/map/Map.d.ts.map +1 -1
  148. package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts +40 -41
  149. package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -1
  150. package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts +5 -3
  151. package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts.map +1 -1
  152. package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts +20 -15
  153. package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts.map +1 -1
  154. package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts +23 -20
  155. package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts.map +1 -1
  156. package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts +9 -6
  157. package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts.map +1 -1
  158. package/lib/typescript/module/components/user-location/UserLocation.d.ts +4 -2
  159. package/lib/typescript/module/components/user-location/UserLocation.d.ts.map +1 -1
  160. package/lib/typescript/module/hooks/useCurrentPosition.d.ts +2 -2
  161. package/lib/typescript/module/modules/log/LogManager.d.ts +5 -4
  162. package/lib/typescript/module/modules/log/LogManager.d.ts.map +1 -1
  163. package/lib/typescript/module/modules/network/NetworkManager.d.ts +7 -7
  164. package/lib/typescript/module/modules/network/NetworkManager.d.ts.map +1 -1
  165. package/lib/typescript/module/modules/offline/OfflineManager.d.ts +63 -47
  166. package/lib/typescript/module/modules/offline/OfflineManager.d.ts.map +1 -1
  167. package/lib/typescript/module/modules/static-map/StaticMapManager.d.ts +2 -2
  168. package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts +56 -49
  169. package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts.map +1 -1
  170. package/lib/typescript/module/plugin/MapLibrePluginProps.d.ts +10 -15
  171. package/lib/typescript/module/plugin/MapLibrePluginProps.d.ts.map +1 -1
  172. package/lib/typescript/module/plugin/ios.d.ts +2 -2
  173. package/lib/typescript/module/plugin/ios.d.ts.map +1 -1
  174. package/lib/typescript/module/types/Anchor.d.ts +5 -6
  175. package/lib/typescript/module/types/Anchor.d.ts.map +1 -1
  176. package/lib/typescript/module/types/LngLatBounds.d.ts +2 -1
  177. package/lib/typescript/module/types/LngLatBounds.d.ts.map +1 -1
  178. package/lib/typescript/module/types/MapLibreRNStyles.d.ts +243 -93
  179. package/lib/typescript/module/types/MapLibreRNStyles.d.ts.map +1 -1
  180. package/lib/typescript/module/types/sources/PressableSourceProps.d.ts +1 -2
  181. package/lib/typescript/module/types/sources/PressableSourceProps.d.ts.map +1 -1
  182. package/lib/typescript/module/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  183. package/lib/typescript/module/utils/animated/AnimatedCoordinatesArray.d.ts +6 -6
  184. package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts +2 -1
  185. package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts.map +1 -1
  186. package/lib/typescript/module/utils/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
  187. package/lib/typescript/module/utils/convertStyleSpec.d.ts +4 -4
  188. package/package.json +1 -2
  189. package/src/components/annotations/callout/Callout.tsx +3 -2
  190. package/src/components/annotations/marker/Marker.tsx +15 -14
  191. package/src/components/annotations/view-annotation/ViewAnnotation.tsx +26 -24
  192. package/src/components/camera/Camera.tsx +10 -24
  193. package/src/components/images/Images.tsx +12 -12
  194. package/src/components/layer/Layer.tsx +0 -1
  195. package/src/components/map/Map.tsx +54 -51
  196. package/src/components/sources/geojson-source/GeoJSONSource.tsx +40 -41
  197. package/src/components/sources/image-source/ImageSource.tsx +5 -3
  198. package/src/components/sources/raster-source/RasterSource.tsx +20 -15
  199. package/src/components/sources/vector-source/VectorSource.tsx +23 -20
  200. package/src/components/user-location/NativeUserLocation.tsx +9 -6
  201. package/src/components/user-location/UserLocation.tsx +4 -2
  202. package/src/hooks/useCurrentPosition.ts +2 -2
  203. package/src/modules/log/LogManager.ts +5 -4
  204. package/src/modules/network/NetworkManager.ts +7 -7
  205. package/src/modules/offline/OfflineManager.ts +63 -47
  206. package/src/modules/static-map/StaticMapManager.ts +2 -2
  207. package/src/modules/transform-request/TransformRequestManager.ts +56 -49
  208. package/src/plugin/MapLibrePluginProps.ts +10 -15
  209. package/src/plugin/ios.ts +9 -8
  210. package/src/types/Anchor.ts +5 -6
  211. package/src/types/LngLatBounds.ts +2 -1
  212. package/src/types/MapLibreRNStyles.ts +243 -93
  213. package/src/types/sources/PressableSourceProps.ts +1 -2
  214. package/src/utils/animated/AbstractAnimatedCoordinates.ts +2 -2
  215. package/src/utils/animated/AnimatedCoordinatesArray.ts +6 -6
  216. package/src/utils/animated/AnimatedGeoJSON.ts +2 -1
  217. package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +6 -6
  218. package/src/utils/convertStyleSpec.ts +4 -4
@@ -4,15 +4,13 @@ import { type BaseProps } from "../../../types/BaseProps";
4
4
  import type { PressableSourceProps } from "../../../types/sources/PressableSourceProps";
5
5
  export interface VectorSourceRef {
6
6
  /**
7
- * Returns all features that match the query parameters regardless of whether or not the feature is
8
- * currently rendered on the map. The domain of the query includes all currently-loaded vector tiles
9
- * and GeoJSON source tiles. This function does not check tiles outside of the visible viewport.
7
+ * Returns all features that match the query parameters regardless of whether or
8
+ * not the feature is currently rendered on the map. The domain of the query
9
+ * includes all currently-loaded vector tiles and GeoJSON source tiles. This
10
+ * function does not check tiles outside of the visible viewport.
10
11
  *
11
12
  * @example
12
13
  * vectorSource.features(['id1', 'id2'])
13
- *
14
- * @param options.sourceLayer - 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.
15
- * @param options.filter - an optional filter statement to filter the returned Features.
16
14
  */
17
15
  querySourceFeatures(options: {
18
16
  sourceLayer: string;
@@ -25,35 +23,38 @@ export interface VectorSourceProps extends BaseProps, PressableSourceProps {
25
23
  */
26
24
  id?: string;
27
25
  /**
28
- * A URL to a TileJSON configuration file describing the source’s contents and other metadata.
26
+ * A URL to a TileJSON configuration file describing the source’s contents and
27
+ * other metadata.
29
28
  */
30
29
  url?: string;
31
30
  /**
32
- * An array of tile URL templates. If multiple endpoints are specified, clients may use any combination of endpoints.
33
- * Example: https://example.com/vector-tiles/{z}/{x}/{y}.pbf
31
+ * An array of tile URL templates. If multiple endpoints are specified, clients
32
+ * may use any combination of endpoints. Example:
33
+ * https://example.com/vector-tiles/{z}/{x}/{y}.pbf
34
34
  */
35
35
  tiles?: string[];
36
36
  /**
37
- * An unsigned integer that specifies the minimum zoom level at which to display tiles from the source.
38
- * The value should be between 0 and 22, inclusive, and less than
39
- * maxzoom, if specified. The default value for this option is 0.
37
+ * An unsigned integer that specifies the minimum zoom level at which to display
38
+ * tiles from the source. The value should be between 0 and 22, inclusive, and
39
+ * less than maxzoom, if specified. The default value for this option is 0.
40
40
  */
41
41
  minzoom?: number;
42
42
  /**
43
- * An unsigned integer that specifies the maximum zoom level at which to display tiles from the source.
44
- * The value should be between 0 and 22, inclusive, and less than
45
- * minzoom, if specified. The default value for this option is 22.
43
+ * An unsigned integer that specifies the maximum zoom level at which to display
44
+ * tiles from the source. The value should be between 0 and 22, inclusive, and
45
+ * less than minzoom, if specified. The default value for this option is 22.
46
46
  */
47
47
  maxzoom?: number;
48
48
  /**
49
49
  * Influences the y direction of the tile coordinates. (tms inverts y-axis)
50
50
  *
51
- * @default "xyz"
51
+ * @defaultValue "xyz"
52
52
  */
53
53
  scheme?: "xyz" | "tms";
54
54
  /**
55
- * An HTML or literal text string defining the buttons to be displayed in an action sheet when the
56
- * source is part of a map view’s style and the map view’s attribution button is pressed.
55
+ * An HTML or literal text string defining the buttons to be displayed in an
56
+ * action sheet when the source is part of a map view’s style and the map view’s
57
+ * attribution button is pressed.
57
58
  */
58
59
  attribution?: string;
59
60
  children?: ReactNode;
@@ -63,8 +64,10 @@ export interface VectorSourceProps extends BaseProps, PressableSourceProps {
63
64
  ref?: Ref<VectorSourceRef>;
64
65
  }
65
66
  /**
66
- * VectorSource is a map content source that supplies tiled vector data in Mapbox Vector Tile format to be shown on the map.
67
- * The location of and metadata about the tiles are defined either by an option dictionary or by an external file that conforms to the TileJSON specification.
67
+ * VectorSource is a map content source that supplies tiled vector data in
68
+ * Mapbox Vector Tile format to be shown on the map. The location of and
69
+ * metadata about the tiles are defined either by an option dictionary or by an
70
+ * external file that conforms to the TileJSON specification.
68
71
  */
69
72
  export declare const VectorSource: import("react").MemoExoticComponent<({ id, ref, ...props }: VectorSourceProps) => import("react/jsx-runtime").JSX.Element>;
70
73
  //# sourceMappingURL=VectorSource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VectorSource.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/vector-source/VectorSource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,GAAG,EAGT,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAKxF,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;OAUG;IACH,mBAAmB,CAAC,OAAO,EAAE;QAC3B,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,mBAAmB,CAAC;KAC9B,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,iBAAkB,SAAQ,SAAS,EAAE,oBAAoB;IACxE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAEvB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,8DAAgC,iBAAiB,6CAoCxE,CAAC"}
1
+ {"version":3,"file":"VectorSource.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/vector-source/VectorSource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,GAAG,EAGT,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAKxF,MAAM,WAAW,eAAe;IAC9B;;;;;;;;OAQG;IACH,mBAAmB,CAAC,OAAO,EAAE;QAC3B,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,mBAAmB,CAAC;KAC9B,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,iBAAkB,SAAQ,SAAS,EAAE,oBAAoB;IACxE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAEvB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;CAC5B;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,8DAAgC,iBAAiB,6CAoCxE,CAAC"}
@@ -3,19 +3,22 @@ interface NativeUserLocationProps extends BaseProps {
3
3
  /**
4
4
  * Rendering mode
5
5
  *
6
- * - "default": Renders only a puck
7
- * - "heading": Renders a puck with triangle indicating device heading based on compass
8
- * - "course": Android renders an arrow indicating device heading based on GPS course, iOS behaves like mode="heading"
6
+ * - "default": Renders only a puck
7
+ * - "heading": Renders a puck with triangle indicating device heading based on
8
+ * compass
9
+ * - "course": Android renders an arrow indicating device heading based on GPS
10
+ * course, iOS behaves like mode="heading"
9
11
  *
10
- * @default "default"
12
+ * @defaultValue "default"
11
13
  */
12
14
  mode?: "default" | "heading" | "course";
13
15
  /**
14
16
  * Limit the maximum frames per second for location updates on Android
15
17
  *
16
- * Use this setting to limit animation rate of the location puck to decrease the stress on the device's CPU which could improve battery life.
18
+ * Use this setting to limit animation rate of the location puck to decrease the
19
+ * stress on the device's CPU which could improve battery life.
17
20
  *
18
- * @platform android
21
+ * @platform Android
19
22
  */
20
23
  androidPreferredFramesPerSecond?: number;
21
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NativeUserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/user-location/NativeUserLocation.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,UAAU,uBAAwB,SAAQ,SAAS;IACjD;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAExC;;;;;;OAMG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;CAC1C;AAED,eAAO,MAAM,kBAAkB,GAAI,OAAO,uBAAuB,4CAEhE,CAAC"}
1
+ {"version":3,"file":"NativeUserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/user-location/NativeUserLocation.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,UAAU,uBAAwB,SAAQ,SAAS;IACjD;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAExC;;;;;;;OAOG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;CAC1C;AAED,eAAO,MAAM,kBAAkB,GAAI,OAAO,uBAAuB,4CAEhE,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import { type ReactNode } from "react";
2
2
  export interface UserLocationProps {
3
3
  /**
4
- * Children to render inside the UserLocation Annotation, e.g. CircleLayer, SymbolLayer
4
+ * Children to render inside the UserLocation Annotation, e.g. CircleLayer,
5
+ * SymbolLayer
5
6
  */
6
7
  children?: ReactNode;
7
8
  /**
@@ -13,7 +14,8 @@ export interface UserLocationProps {
13
14
  */
14
15
  accuracy?: boolean;
15
16
  /**
16
- * Render an arrow which indicates direction the device is pointing relative to north
17
+ * Render an arrow which indicates direction the device is pointing relative to
18
+ * north
17
19
  */
18
20
  heading?: boolean;
19
21
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"UserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/user-location/UserLocation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAStD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,6GAQpB,iBAAiB,oDA8CrB,CAAC"}
1
+ {"version":3,"file":"UserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/user-location/UserLocation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAStD,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,6GAQpB,iBAAiB,oDA8CrB,CAAC"}
@@ -3,13 +3,13 @@ interface UseCurrentPositionOptions {
3
3
  /**
4
4
  * Enable or disable position updates
5
5
  *
6
- * @default true
6
+ * @defaultValue true
7
7
  */
8
8
  enabled?: boolean;
9
9
  /**
10
10
  * Minimum displacement in meters to trigger position update
11
11
  *
12
- * @default 0
12
+ * @defaultValue 0
13
13
  */
14
14
  minDisplacement?: number;
15
15
  }
@@ -10,9 +10,10 @@ interface LogEvent {
10
10
  /**
11
11
  * Handler for `onLog` events
12
12
  *
13
- * Called before logging a message, return false to proceed with default logging.
13
+ * Called before logging a message, return false to proceed with default
14
+ * logging.
14
15
  *
15
- * @param event
16
+ * @param event -
16
17
  */
17
18
  type LogHandler = (event: LogEvent) => boolean;
18
19
  declare class LogManager {
@@ -24,13 +25,13 @@ declare class LogManager {
24
25
  /**
25
26
  * Override logging behavior
26
27
  *
27
- * @param logHandler
28
+ * @param logHandler -
28
29
  */
29
30
  onLog(logHandler: LogHandler): void;
30
31
  /**
31
32
  * Set the minimum log level for a message to be logged
32
33
  *
33
- * @param level Minimum log level
34
+ * @param level - Minimum log level
34
35
  */
35
36
  setLogLevel(level: LogLevel): void;
36
37
  start(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"LogManager.d.ts","sourceRoot":"","sources":["../../../../../src/modules/log/LogManager.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEvE,UAAU,QAAQ;IAChB,KAAK,EAAE,QAAQ,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,KAAK,UAAU,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO,CAAC;AAE/C,cAAM,UAAU;IACd,OAAO,CAAC,QAAQ,CAAoB;IACpC,OAAO,CAAC,YAAY,CAAa;IACjC,OAAO,CAAC,UAAU,CAAqC;IACvD,OAAO,CAAC,YAAY,CAA4C;;IAMhE;;;;OAIG;IACH,KAAK,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;IAInC;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAKlC,KAAK,IAAI,IAAI;IAQb,IAAI,IAAI,IAAI;IAQZ,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,SAAS;CAgBlB;AAED,QAAA,MAAM,UAAU,YAAmB,CAAC;AAEpC,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"LogManager.d.ts","sourceRoot":"","sources":["../../../../../src/modules/log/LogManager.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEvE,UAAU,QAAQ;IAChB,KAAK,EAAE,QAAQ,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,KAAK,UAAU,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO,CAAC;AAE/C,cAAM,UAAU;IACd,OAAO,CAAC,QAAQ,CAAoB;IACpC,OAAO,CAAC,YAAY,CAAa;IACjC,OAAO,CAAC,UAAU,CAAqC;IACvD,OAAO,CAAC,YAAY,CAA4C;;IAMhE;;;;OAIG;IACH,KAAK,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;IAInC;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAKlC,KAAK,IAAI,IAAI;IAQb,IAAI,IAAI,IAAI;IAQZ,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,SAAS;CAgBlB;AAED,QAAA,MAAM,UAAU,YAAmB,CAAC;AAEpC,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,CAAC"}
@@ -1,22 +1,22 @@
1
1
  /**
2
- * NetworkManager provides methods for managing and controlling network connectivity.
2
+ * NetworkManager provides methods for managing and controlling network
3
+ * connectivity.
3
4
  */
4
5
  declare class NetworkManager {
5
6
  /**
6
- * Android only: Sets the connectivity state of the map. When set to false, the map will
7
- * not make any network requests and will only use cached tiles. This is
8
- * useful for implementing offline mode or reducing data usage.
7
+ * Android only: Sets the connectivity state of the map. When set to false, the
8
+ * map will not make any network requests and will only use cached tiles. This
9
+ * is useful for implementing offline mode or reducing data usage.
10
+ *
11
+ * @param connected - Whether the map should be connected to the network
9
12
  *
10
13
  * @example
11
14
  * ```ts
12
15
  * // Enable offline mode
13
16
  * NetworkManager.setConnected(false);
14
- *
15
17
  * // Re-enable network requests
16
18
  * NetworkManager.setConnected(true);
17
19
  * ```
18
- *
19
- * @param connected Whether the map should be connected to the network
20
20
  */
21
21
  static setConnected(connected: boolean): void;
22
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NetworkManager.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/NetworkManager.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,cAAM,cAAc;IAClB;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;CAG9C;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"NetworkManager.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/NetworkManager.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,cAAM,cAAc;IAClB;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;CAG9C;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -21,9 +21,10 @@ export type OfflinePackError = {
21
21
  export type OfflinePackProgressListener = (offlinePack: OfflinePack, status: OfflinePackStatus) => void;
22
22
  export type OfflinePackErrorListener = (offlinePack: OfflinePack, error: OfflinePackError) => void;
23
23
  /**
24
- * OfflineManager implements a singleton (shared object) that manages offline packs.
25
- * All of this class's instance methods are asynchronous, reflecting the fact that offline resources are stored in a database.
26
- * The shared object maintains a canonical collection of offline packs.
24
+ * OfflineManager implements a singleton (shared object) that manages offline
25
+ * packs. All of this class's instance methods are asynchronous, reflecting the
26
+ * fact that offline resources are stored in a database. The shared object
27
+ * maintains a canonical collection of offline packs.
27
28
  */
28
29
  declare class OfflineManager {
29
30
  private initialized;
@@ -34,10 +35,18 @@ declare class OfflineManager {
34
35
  private subscriptionError;
35
36
  constructor();
36
37
  /**
37
- * Creates and registers an offline pack that downloads the resources needed to use the given region offline.
38
+ * Creates and registers an offline pack that downloads the resources needed to
39
+ * use the given region offline.
38
40
  *
39
- * @example
41
+ * @param options - Create options for offline pack that specifies zoom levels, style url, and
42
+ * the region to download.
43
+ * @param progressListener - Callback that listens for status events while downloading the offline
44
+ * resource.
45
+ * @param errorListener - Callback that listens for status events while downloading the offline
46
+ * resource.
47
+ * @returns The created offline pack with its generated ID.
40
48
  *
49
+ * @example
41
50
  * const progressListener = (offlineRegion, status) => console.log(offlineRegion, status);
42
51
  * const errorListener = (offlineRegion, error) => console.log(offlineRegion, error);
43
52
  *
@@ -48,64 +57,68 @@ declare class OfflineManager {
48
57
  * bounds: [west, south, east, north],
49
58
  * metadata: { customValue: 'myValue' }
50
59
  * }, progressListener, errorListener)
51
- *
52
- * @param options Create options for offline pack that specifies zoom levels, style url, and the region to download.
53
- * @param progressListener Callback that listens for status events while downloading the offline resource.
54
- * @param errorListener Callback that listens for status events while downloading the offline resource.
55
- *
56
- * @return The created offline pack with its generated ID.
57
60
  */
58
61
  createPack(options: OfflinePackCreateOptions, progressListener: OfflinePackProgressListener, errorListener: OfflinePackErrorListener): Promise<OfflinePack>;
59
62
  /**
60
- * Invalidates the specified offline pack. This method checks that the tiles in the specified offline pack match those from the server. Local tiles that do not match the latest version on the server are updated.
63
+ * Invalidates the specified offline pack. This method checks that the tiles in
64
+ * the specified offline pack match those from the server. Local tiles that do
65
+ * not match the latest version on the server are updated.
66
+ *
67
+ * This is more efficient than deleting the offline pack and downloading it
68
+ * again. If the data stored locally matches that on the server, new data will
69
+ * not be downloaded.
61
70
  *
62
- * This is more efficient than deleting the offline pack and downloading it again. If the data stored locally matches that on the server, new data will not be downloaded.
71
+ * @param id - ID of the OfflinePack.
63
72
  *
64
73
  * @example
65
74
  * await OfflineManager.invalidatePack(pack.id)
66
- *
67
- * @param id ID of the OfflinePack.
68
75
  */
69
76
  invalidatePack(id: string): Promise<void>;
70
77
  /**
71
- * Unregisters the given OfflinePack and allows resources that are no longer required by any remaining packs to be potentially freed.
78
+ * Unregisters the given OfflinePack and allows resources that are no longer
79
+ * required by any remaining packs to be potentially freed.
80
+ *
81
+ * @param id - ID of the OfflinePack.
72
82
  *
73
83
  * @example
74
84
  * await OfflineManager.deletePack(pack.id)
75
- *
76
- * @param id ID of the OfflinePack.
77
85
  */
78
86
  deletePack(id: string): Promise<void>;
79
87
  /**
80
- * Forces a revalidation of the tiles in the ambient cache and downloads a fresh version of the tiles from the tile server.
81
- * This is the recommend method for clearing the cache.
82
- * This is the most efficient method because tiles in the ambient cache are re-downloaded to remove outdated data from a device.
83
- * It does not erase resources from the ambient cache or delete the database, which can be computationally expensive operations that may carry unintended side effects.
88
+ * Forces a revalidation of the tiles in the ambient cache and downloads a fresh
89
+ * version of the tiles from the tile server. This is the recommend method for
90
+ * clearing the cache. This is the most efficient method because tiles in the
91
+ * ambient cache are re-downloaded to remove outdated data from a device. It
92
+ * does not erase resources from the ambient cache or delete the database, which
93
+ * can be computationally expensive operations that may carry unintended side
94
+ * effects.
84
95
  *
85
96
  * @example
86
97
  * await OfflineManager.invalidateAmbientCache();
87
98
  */
88
99
  invalidateAmbientCache(): Promise<void>;
89
100
  /**
90
- * Erases resources from the ambient cache.
91
- * This method clears the cache and decreases the amount of space that map resources take up on the device.
101
+ * Erases resources from the ambient cache. This method clears the cache and
102
+ * decreases the amount of space that map resources take up on the device.
92
103
  *
93
104
  * @example
94
105
  * await OfflineManager.clearAmbientCache();
95
106
  */
96
107
  clearAmbientCache(): Promise<void>;
97
108
  /**
98
- * Sets the maximum size of the ambient cache in bytes. Disables the ambient cache if set to 0.
99
- * This method may be computationally expensive because it will erase resources from the ambient cache if its size is decreased.
109
+ * Sets the maximum size of the ambient cache in bytes. Disables the ambient
110
+ * cache if set to 0. This method may be computationally expensive because it
111
+ * will erase resources from the ambient cache if its size is decreased.
112
+ *
113
+ * @param size - Size of ambient cache.
100
114
  *
101
115
  * @example
102
116
  * await OfflineManager.setMaximumAmbientCacheSize(5000000);
103
- *
104
- * @param size Size of ambient cache.
105
117
  */
106
118
  setMaximumAmbientCacheSize(size: number): Promise<void>;
107
119
  /**
108
- * Deletes the existing database, which includes both the ambient cache and offline packs, then reinitializes it.
120
+ * Deletes the existing database, which includes both the ambient cache and
121
+ * offline packs, then reinitializes it.
109
122
  *
110
123
  * @example
111
124
  * await OfflineManager.resetDatabase();
@@ -128,49 +141,54 @@ declare class OfflineManager {
128
141
  /**
129
142
  * Sideloads offline db
130
143
  *
144
+ * @param path - Path to offline tile db on file system.
145
+ *
131
146
  * @example
132
147
  * await OfflineManager.mergeOfflineRegions(path);
133
- *
134
- * @param path Path to offline tile db on file system.
135
148
  */
136
149
  mergeOfflineRegions(path: string): Promise<void>;
137
150
  /**
138
- * Sets the maximum number of tiles that may be downloaded and stored on the current device.
139
- * Consult the Terms of Service for your map tile host before changing this value.
151
+ * Sets the maximum number of tiles that may be downloaded and stored on the
152
+ * current device. Consult the Terms of Service for your map tile host before
153
+ * changing this value.
154
+ *
155
+ * @param limit - Map tile limit count.
140
156
  *
141
157
  * @example
142
158
  * OfflineManager.setTileCountLimit(1000);
143
- *
144
- * @param limit Map tile limit count.
145
159
  */
146
160
  setTileCountLimit(limit: number): void;
147
161
  /**
148
- * Sets the period at which download status events will be sent over the React Native bridge.
149
- * The default is 500ms.
162
+ * Sets the period at which download status events will be sent over the React
163
+ * Native bridge. The default is 500ms.
164
+ *
165
+ * @param throttleValue - Event throttle value in ms.
150
166
  *
151
167
  * @example
152
168
  * OfflineManager.setProgressEventThrottle(500);
153
- *
154
- * @param throttleValue Event throttle value in ms.
155
169
  */
156
170
  setProgressEventThrottle(throttleValue: number): void;
157
171
  /**
158
172
  * Subscribe to download status/error events for the requested offline pack.
159
173
  * Note that createPack calls this internally if listeners are provided.
160
174
  *
175
+ * @param id - ID of the offline pack.
176
+ * @param progressListener - Callback that listens for status events while downloading the offline
177
+ * resource.
178
+ * @param errorListener - Callback that listens for status events while downloading the offline
179
+ * resource.
180
+ *
161
181
  * @example
162
182
  * const progressListener = (offlinePack, status) => console.log(offlinePack, status)
163
183
  * const errorListener = (offlinePack, error) => console.log(offlinePack, error)
164
184
  * OfflineManager.addListener(pack.id, progressListener, errorListener)
165
- *
166
- * @param id ID of the offline pack.
167
- * @param progressListener Callback that listens for status events while downloading the offline resource.
168
- * @param errorListener Callback that listens for status events while downloading the offline resource.
169
185
  */
170
186
  addListener(id: string, progressListener: OfflinePackProgressListener, errorListener: OfflinePackErrorListener): Promise<void>;
171
187
  /**
172
- * Unsubscribes any listeners associated with the offline pack.
173
- * Should be called when the component unmounts.
188
+ * Unsubscribes any listeners associated with the offline pack. Should be called
189
+ * when the component unmounts.
190
+ *
191
+ * @param packId - ID of the offline pack.
174
192
  *
175
193
  * @example
176
194
  * useEffect(() => {
@@ -178,8 +196,6 @@ declare class OfflineManager {
178
196
  * OfflineManager.removeListener(pack.id);
179
197
  * }
180
198
  * }, []);
181
- *
182
- * @param packId ID of the offline pack.
183
199
  */
184
200
  removeListener(packId: string): void;
185
201
  private initialize;
@@ -1 +1 @@
1
- {"version":3,"file":"OfflineManager.d.ts","sourceRoot":"","sources":["../../../../../src/modules/offline/OfflineManager.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAA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3C;;;;;;;;;;;OAWG;IACG,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC;IAK7C;;;;;;OAMG;IACG,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAKxC;;;;;;;;;OASG;IACG,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAK7D;;;;;;OAMG;IACG,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAKpC;;;;;OAKG;IACG,QAAQ,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAMxC;;;;;OAKG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAW/C;;;;;;;OAOG;IACG,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKtD;;;;;;;;;OASG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAItC;;;;;;;;OAQG;IACH,wBAAwB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;IAIrD;;;;;;;;;;;;;;OAcG;IACG,WAAW,CACf,EAAE,EAAE,MAAM,EACV,gBAAgB,EAAE,2BAA2B,EAC7C,aAAa,EAAE,wBAAwB,GACtC,OAAO,CAAC,IAAI,CAAC;IAoBhB;;;;;;;;;;;;OAYG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;YAmBtB,UAAU;IAiBxB,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,OAAO;CAQhB;AAED,QAAA,MAAM,cAAc,gBAAuB,CAAC;AAC5C,OAAO,EAAE,cAAc,IAAI,cAAc,EAAE,CAAC"}
@@ -4,7 +4,7 @@ export interface StaticMapOptions {
4
4
  /**
5
5
  * Maplibre style - either a URL or a Style JSON.
6
6
  *
7
- * @see https://maplibre.org/maplibre-style-spec/
7
+ * @see {@link https://maplibre.org/maplibre-style-spec/}
8
8
  */
9
9
  mapStyle: string | object;
10
10
  /**
@@ -39,7 +39,7 @@ export type StaticMapCenterOptions = StaticMapOptions & {
39
39
  */
40
40
  zoom?: number;
41
41
  /**
42
- * The bearing (rotation) of the map.
42
+ * The bearing (rotation) of the map.
43
43
  */
44
44
  bearing?: number;
45
45
  /**