@maplibre/maplibre-react-native 10.1.0-beta.1 → 10.1.1

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 (166) hide show
  1. package/android/gradle.properties +1 -1
  2. package/ios/MLRN/CameraStop.h +1 -1
  3. package/ios/MLRN/CameraStop.m +58 -60
  4. package/ios/MLRN/CameraUpdateItem.h +2 -1
  5. package/ios/MLRN/CameraUpdateItem.m +132 -132
  6. package/ios/MLRN/CameraUpdateQueue.m +43 -47
  7. package/ios/MLRN/FilterParser.h +1 -1
  8. package/ios/MLRN/FilterParser.m +5 -6
  9. package/ios/MLRN/MLRNBackgroundLayer.m +10 -9
  10. package/ios/MLRN/MLRNBackgroundLayerManager.m +4 -5
  11. package/ios/MLRN/MLRNCallout.h +1 -1
  12. package/ios/MLRN/MLRNCallout.m +37 -36
  13. package/ios/MLRN/MLRNCalloutManager.m +2 -3
  14. package/ios/MLRN/MLRNCamera.h +1 -1
  15. package/ios/MLRN/MLRNCamera.m +169 -182
  16. package/ios/MLRN/MLRNCameraManager.m +4 -6
  17. package/ios/MLRN/MLRNCircleLayer.m +17 -14
  18. package/ios/MLRN/MLRNCircleLayerManager.m +4 -5
  19. package/ios/MLRN/MLRNCustomHeaders.h +2 -2
  20. package/ios/MLRN/MLRNCustomHeaders.m +63 -63
  21. package/ios/MLRN/MLRNEvent.h +3 -3
  22. package/ios/MLRN/MLRNEvent.m +19 -24
  23. package/ios/MLRN/MLRNEventProtocol.h +1 -1
  24. package/ios/MLRN/MLRNFillExtrusionLayer.m +18 -14
  25. package/ios/MLRN/MLRNFillExtrusionLayerManager.m +4 -5
  26. package/ios/MLRN/MLRNFillLayer.m +16 -14
  27. package/ios/MLRN/MLRNFillLayerManager.m +4 -5
  28. package/ios/MLRN/MLRNHeatmapLayer.m +17 -14
  29. package/ios/MLRN/MLRNHeatmapLayerManager.m +4 -5
  30. package/ios/MLRN/MLRNImageQueue.h +4 -1
  31. package/ios/MLRN/MLRNImageQueue.m +29 -32
  32. package/ios/MLRN/MLRNImageQueueOperation.h +1 -1
  33. package/ios/MLRN/MLRNImageQueueOperation.m +92 -91
  34. package/ios/MLRN/MLRNImageSource.m +36 -38
  35. package/ios/MLRN/MLRNImageSourceManager.m +2 -3
  36. package/ios/MLRN/MLRNImageUtils.h +3 -3
  37. package/ios/MLRN/MLRNImageUtils.m +15 -14
  38. package/ios/MLRN/MLRNImages.h +0 -1
  39. package/ios/MLRN/MLRNImages.m +89 -91
  40. package/ios/MLRN/MLRNImagesManager.m +4 -5
  41. package/ios/MLRN/MLRNLayer.h +9 -11
  42. package/ios/MLRN/MLRNLayer.m +170 -182
  43. package/ios/MLRN/MLRNLight.m +21 -23
  44. package/ios/MLRN/MLRNLightManager.m +2 -3
  45. package/ios/MLRN/MLRNLineLayer.m +17 -15
  46. package/ios/MLRN/MLRNLineLayerManager.m +4 -6
  47. package/ios/MLRN/MLRNLocation.h +1 -1
  48. package/ios/MLRN/MLRNLocation.m +16 -17
  49. package/ios/MLRN/MLRNLocationManager.m +109 -124
  50. package/ios/MLRN/MLRNLocationManagerDelegate.h +3 -3
  51. package/ios/MLRN/MLRNLocationModule.h +1 -1
  52. package/ios/MLRN/MLRNLocationModule.m +40 -55
  53. package/ios/MLRN/MLRNLogging.h +1 -4
  54. package/ios/MLRN/MLRNLogging.m +84 -89
  55. package/ios/MLRN/MLRNMapTouchEvent.h +2 -2
  56. package/ios/MLRN/MLRNMapTouchEvent.m +50 -49
  57. package/ios/MLRN/MLRNMapView.h +43 -36
  58. package/ios/MLRN/MLRNMapView.m +409 -440
  59. package/ios/MLRN/MLRNMapViewManager.m +489 -502
  60. package/ios/MLRN/MLRNModule.h +1 -1
  61. package/ios/MLRN/MLRNModule.m +111 -105
  62. package/ios/MLRN/MLRNNativeUserLocation.m +24 -27
  63. package/ios/MLRN/MLRNNativeUserLocationManager.m +4 -8
  64. package/ios/MLRN/MLRNOfflineModule.h +1 -1
  65. package/ios/MLRN/MLRNOfflineModule.m +416 -421
  66. package/ios/MLRN/MLRNPointAnnotation.h +2 -2
  67. package/ios/MLRN/MLRNPointAnnotation.m +154 -175
  68. package/ios/MLRN/MLRNPointAnnotationManager.m +2 -3
  69. package/ios/MLRN/MLRNRasterLayer.m +16 -12
  70. package/ios/MLRN/MLRNRasterLayerManager.m +4 -5
  71. package/ios/MLRN/MLRNRasterSource.m +21 -17
  72. package/ios/MLRN/MLRNRasterSourceManager.m +2 -3
  73. package/ios/MLRN/MLRNShapeSource.h +17 -16
  74. package/ios/MLRN/MLRNShapeSource.m +94 -102
  75. package/ios/MLRN/MLRNShapeSourceManager.h +2 -2
  76. package/ios/MLRN/MLRNShapeSourceManager.m +86 -90
  77. package/ios/MLRN/MLRNSnapshotModule.h +1 -1
  78. package/ios/MLRN/MLRNSnapshotModule.m +51 -53
  79. package/ios/MLRN/MLRNSource.h +12 -12
  80. package/ios/MLRN/MLRNSource.m +82 -88
  81. package/ios/MLRN/MLRNStyleValue.h +1 -1
  82. package/ios/MLRN/MLRNStyleValue.m +128 -128
  83. package/ios/MLRN/MLRNSymbolLayer.m +17 -13
  84. package/ios/MLRN/MLRNSymbolLayerManager.m +4 -5
  85. package/ios/MLRN/MLRNTileSource.h +1 -1
  86. package/ios/MLRN/MLRNTileSource.m +21 -20
  87. package/ios/MLRN/MLRNUserLocation.h +1 -1
  88. package/ios/MLRN/MLRNUserLocation.m +10 -12
  89. package/ios/MLRN/MLRNUtils.h +18 -11
  90. package/ios/MLRN/MLRNUtils.m +168 -160
  91. package/ios/MLRN/MLRNVectorLayer.m +28 -34
  92. package/ios/MLRN/MLRNVectorSource.h +3 -1
  93. package/ios/MLRN/MLRNVectorSource.m +14 -11
  94. package/ios/MLRN/MLRNVectorSourceManager.h +2 -2
  95. package/ios/MLRN/MLRNVectorSourceManager.m +36 -39
  96. package/ios/MLRN/ViewManager.h +1 -1
  97. package/ios/MLRN/ViewManager.m +29 -35
  98. package/lib/commonjs/components/MarkerView.js +1 -1
  99. package/lib/commonjs/components/UserLocation.js +8 -38
  100. package/lib/commonjs/components/UserLocation.js.map +1 -1
  101. package/lib/commonjs/components/UserLocationPuck.js +52 -0
  102. package/lib/commonjs/components/UserLocationPuck.js.map +1 -0
  103. package/lib/commonjs/components/{HeadingIndicator.js → UserLocationPuckHeading.js} +12 -9
  104. package/lib/commonjs/components/UserLocationPuckHeading.js.map +1 -0
  105. package/lib/commonjs/plugin/android.js +4 -6
  106. package/lib/commonjs/plugin/android.js.map +1 -1
  107. package/lib/module/components/MarkerView.js +1 -1
  108. package/lib/module/components/UserLocation.js +7 -36
  109. package/lib/module/components/UserLocation.js.map +1 -1
  110. package/lib/module/components/UserLocationPuck.js +48 -0
  111. package/lib/module/components/UserLocationPuck.js.map +1 -0
  112. package/lib/module/components/{HeadingIndicator.js → UserLocationPuckHeading.js} +11 -7
  113. package/lib/module/components/UserLocationPuckHeading.js.map +1 -0
  114. package/lib/module/plugin/android.js +3 -5
  115. package/lib/module/plugin/android.js.map +1 -1
  116. package/lib/typescript/commonjs/src/components/MarkerView.d.ts +1 -1
  117. package/lib/typescript/commonjs/src/components/UserLocation.d.ts +0 -1
  118. package/lib/typescript/commonjs/src/components/UserLocation.d.ts.map +1 -1
  119. package/lib/typescript/commonjs/src/components/UserLocationPuck.d.ts +9 -0
  120. package/lib/typescript/commonjs/src/components/UserLocationPuck.d.ts.map +1 -0
  121. package/lib/typescript/commonjs/src/components/UserLocationPuckHeading.d.ts +9 -0
  122. package/lib/typescript/commonjs/src/components/UserLocationPuckHeading.d.ts.map +1 -0
  123. package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts +1 -1
  124. package/lib/typescript/commonjs/src/plugin/android.d.ts +1 -0
  125. package/lib/typescript/commonjs/src/plugin/android.d.ts.map +1 -1
  126. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts +0 -1
  127. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
  128. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +0 -1
  129. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
  130. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts +0 -1
  131. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
  132. package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts +0 -1
  133. package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts.map +1 -1
  134. package/lib/typescript/module/src/components/MarkerView.d.ts +1 -1
  135. package/lib/typescript/module/src/components/UserLocation.d.ts +0 -1
  136. package/lib/typescript/module/src/components/UserLocation.d.ts.map +1 -1
  137. package/lib/typescript/module/src/components/UserLocationPuck.d.ts +9 -0
  138. package/lib/typescript/module/src/components/UserLocationPuck.d.ts.map +1 -0
  139. package/lib/typescript/module/src/components/UserLocationPuckHeading.d.ts +9 -0
  140. package/lib/typescript/module/src/components/UserLocationPuckHeading.d.ts.map +1 -0
  141. package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts +1 -1
  142. package/lib/typescript/module/src/plugin/android.d.ts +1 -0
  143. package/lib/typescript/module/src/plugin/android.d.ts.map +1 -1
  144. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts +0 -1
  145. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
  146. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +0 -1
  147. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
  148. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts +0 -1
  149. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
  150. package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts +0 -1
  151. package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts.map +1 -1
  152. package/maplibre-react-native.podspec +1 -1
  153. package/package.json +8 -8
  154. package/src/components/MarkerView.tsx +1 -1
  155. package/src/components/UserLocation.tsx +13 -51
  156. package/src/components/UserLocationPuck.tsx +62 -0
  157. package/src/components/UserLocationPuckHeading.tsx +33 -0
  158. package/src/plugin/MapLibrePluginProps.ts +1 -1
  159. package/src/plugin/android.ts +7 -3
  160. package/lib/commonjs/components/HeadingIndicator.js.map +0 -1
  161. package/lib/module/components/HeadingIndicator.js.map +0 -1
  162. package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts +0 -7
  163. package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts.map +0 -1
  164. package/lib/typescript/module/src/components/HeadingIndicator.d.ts +0 -7
  165. package/lib/typescript/module/src/components/HeadingIndicator.d.ts.map +0 -1
  166. package/src/components/HeadingIndicator.tsx +0 -26
@@ -1,22 +1,26 @@
1
1
  "use strict";
2
2
 
3
+ import { memo } from "react";
3
4
  import { SymbolLayer } from "./SymbolLayer.js";
4
5
  import headingIcon from "../assets/heading.png";
5
6
  import { jsx as _jsx } from "react/jsx-runtime";
6
- const style = {
7
+ const layerStyle = {
7
8
  iconImage: headingIcon,
8
9
  iconAllowOverlap: true,
9
10
  iconPitchAlignment: "map",
10
11
  iconRotationAlignment: "map"
11
12
  };
12
- export const HeadingIndicator = ({
13
+ export const UserLocationPuckHeading = /*#__PURE__*/memo(({
14
+ sourceID,
15
+ belowLayerID,
13
16
  heading
14
17
  }) => /*#__PURE__*/_jsx(SymbolLayer, {
15
- id: "mapboxUserLocationHeadingIndicator",
16
- belowLayerID: "mapboxUserLocationWhiteCircle",
18
+ id: "mlrn-user-location-puck-heading",
19
+ sourceID: sourceID,
20
+ belowLayerID: belowLayerID,
17
21
  style: {
18
22
  iconRotate: heading,
19
- ...style
23
+ ...layerStyle
20
24
  }
21
- }, "mapboxUserLocationHeadingIndicator");
22
- //# sourceMappingURL=HeadingIndicator.js.map
25
+ }));
26
+ //# sourceMappingURL=UserLocationPuckHeading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["memo","SymbolLayer","headingIcon","jsx","_jsx","layerStyle","iconImage","iconAllowOverlap","iconPitchAlignment","iconRotationAlignment","UserLocationPuckHeading","sourceID","belowLayerID","heading","id","style","iconRotate"],"sourceRoot":"../../../src","sources":["components/UserLocationPuckHeading.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,OAAO;AAE5B,SAASC,WAAW,QAAQ,kBAAe;AAC3C,OAAOC,WAAW,MAAM,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAIhD,MAAMC,UAA4B,GAAG;EACnCC,SAAS,EAAEJ,WAAW;EACtBK,gBAAgB,EAAE,IAAI;EACtBC,kBAAkB,EAAE,KAAK;EACzBC,qBAAqB,EAAE;AACzB,CAAC;AAQD,OAAO,MAAMC,uBAAuB,gBAAGV,IAAI,CACzC,CAAC;EAAEW,QAAQ;EAAEC,YAAY;EAAEC;AAAsC,CAAC,kBAChET,IAAA,CAACH,WAAW;EACVa,EAAE,EAAC,iCAAiC;EACpCH,QAAQ,EAAEA,QAAS;EACnBC,YAAY,EAAEA,YAAa;EAC3BG,KAAK,EAAE;IACLC,UAAU,EAAEH,OAAO;IACnB,GAAGR;EACL;AAAE,CACH,CAEL,CAAC","ignoreList":[]}
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
 
3
3
  import { withGradleProperties as withGradlePropertiesExpo } from "@expo/config-plugins";
4
+ export const GRADLE_PROPERTIES_PREFIX = "org.maplibre.reactnative.";
4
5
  export const getGradleProperties = props => {
5
6
  return Object.entries(props?.android || {}).reduce((properties, [key, value]) => {
6
7
  if (key && value) {
7
8
  properties.push({
8
9
  type: "property",
9
- key: `org.maplibre.reactnative.${key}`,
10
+ key: `${GRADLE_PROPERTIES_PREFIX}${key}`,
10
11
  value: value.toString()
11
12
  });
12
13
  }
@@ -14,10 +15,7 @@ export const getGradleProperties = props => {
14
15
  }, []);
15
16
  };
16
17
  export const mergeGradleProperties = (oldProperties, newProperties) => {
17
- const newPropertiesKeys = newProperties.map(({
18
- key
19
- }) => key);
20
- const merged = oldProperties.filter(item => !(item.type === "property" && newPropertiesKeys.includes(item.key)));
18
+ const merged = oldProperties.filter(item => !(item.type === "property" && item.key.startsWith(GRADLE_PROPERTIES_PREFIX)));
21
19
  merged.push(...newProperties);
22
20
  return merged;
23
21
  };
@@ -1 +1 @@
1
- {"version":3,"names":["withGradleProperties","withGradlePropertiesExpo","getGradleProperties","props","Object","entries","android","reduce","properties","key","value","push","type","toString","mergeGradleProperties","oldProperties","newProperties","newPropertiesKeys","map","merged","filter","item","includes","config","gradleProperties","c","modResults"],"sourceRoot":"../../../src","sources":["plugin/android.ts"],"mappings":";;AAAA,SAEEA,oBAAoB,IAAIC,wBAAwB,QAC3C,sBAAsB;AAW7B,OAAO,MAAMC,mBAAmB,GAC9BC,KAA0B,IACP;EACnB,OAAOC,MAAM,CAACC,OAAO,CAACF,KAAK,EAAEG,OAAO,IAAI,CAAC,CAAC,CAAC,CAACC,MAAM,CAChD,CAACC,UAAU,EAAE,CAACC,GAAG,EAAEC,KAAK,CAAC,KAAK;IAC5B,IAAID,GAAG,IAAIC,KAAK,EAAE;MAChBF,UAAU,CAACG,IAAI,CAAC;QACdC,IAAI,EAAE,UAAU;QAChBH,GAAG,EAAE,4BAA4BA,GAAG,EAAE;QACtCC,KAAK,EAAEA,KAAK,CAACG,QAAQ,CAAC;MACxB,CAAC,CAAC;IACJ;IAEA,OAAOL,UAAU;EACnB,CAAC,EACD,EACF,CAAC;AACH,CAAC;AAED,OAAO,MAAMM,qBAAqB,GAAGA,CACnCC,aAA+B,EAC/BC,aAA6B,KACR;EACrB,MAAMC,iBAAiB,GAAGD,aAAa,CAACE,GAAG,CAAC,CAAC;IAAET;EAAI,CAAC,KAAKA,GAAG,CAAC;EAC7D,MAAMU,MAAM,GAAGJ,aAAa,CAACK,MAAM,CAChCC,IAAI,IACH,EAAEA,IAAI,CAACT,IAAI,KAAK,UAAU,IAAIK,iBAAiB,CAACK,QAAQ,CAACD,IAAI,CAACZ,GAAG,CAAC,CACtE,CAAC;EAEDU,MAAM,CAACR,IAAI,CAAC,GAAGK,aAAa,CAAC;EAE7B,OAAOG,MAAM;AACf,CAAC;AAED,OAAO,MAAMnB,oBAAuD,GAAGA,CACrEuB,MAAM,EACNpB,KAAK,KACF;EACH,MAAMqB,gBAAgB,GAAGtB,mBAAmB,CAACC,KAAK,CAAC;EAEnD,OAAOF,wBAAwB,CAACsB,MAAM,EAAGE,CAAC,IAAK;IAC7CA,CAAC,CAACC,UAAU,GAAGZ,qBAAqB,CAACW,CAAC,CAACC,UAAU,EAAEF,gBAAgB,CAAC;IAEpE,OAAOC,CAAC;EACV,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,MAAMnB,OAAO,GAAG;EACrBN;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["withGradleProperties","withGradlePropertiesExpo","GRADLE_PROPERTIES_PREFIX","getGradleProperties","props","Object","entries","android","reduce","properties","key","value","push","type","toString","mergeGradleProperties","oldProperties","newProperties","merged","filter","item","startsWith","config","gradleProperties","c","modResults"],"sourceRoot":"../../../src","sources":["plugin/android.ts"],"mappings":";;AAAA,SAEEA,oBAAoB,IAAIC,wBAAwB,QAC3C,sBAAsB;AAW7B,OAAO,MAAMC,wBAAwB,GAAG,2BAA2B;AAEnE,OAAO,MAAMC,mBAAmB,GAC9BC,KAA0B,IACP;EACnB,OAAOC,MAAM,CAACC,OAAO,CAACF,KAAK,EAAEG,OAAO,IAAI,CAAC,CAAC,CAAC,CAACC,MAAM,CAChD,CAACC,UAAU,EAAE,CAACC,GAAG,EAAEC,KAAK,CAAC,KAAK;IAC5B,IAAID,GAAG,IAAIC,KAAK,EAAE;MAChBF,UAAU,CAACG,IAAI,CAAC;QACdC,IAAI,EAAE,UAAU;QAChBH,GAAG,EAAE,GAAGR,wBAAwB,GAAGQ,GAAG,EAAE;QACxCC,KAAK,EAAEA,KAAK,CAACG,QAAQ,CAAC;MACxB,CAAC,CAAC;IACJ;IAEA,OAAOL,UAAU;EACnB,CAAC,EACD,EACF,CAAC;AACH,CAAC;AAED,OAAO,MAAMM,qBAAqB,GAAGA,CACnCC,aAA+B,EAC/BC,aAA6B,KACR;EACrB,MAAMC,MAAM,GAAGF,aAAa,CAACG,MAAM,CAChCC,IAAI,IACH,EACEA,IAAI,CAACP,IAAI,KAAK,UAAU,IACxBO,IAAI,CAACV,GAAG,CAACW,UAAU,CAACnB,wBAAwB,CAAC,CAEnD,CAAC;EAEDgB,MAAM,CAACN,IAAI,CAAC,GAAGK,aAAa,CAAC;EAE7B,OAAOC,MAAM;AACf,CAAC;AAED,OAAO,MAAMlB,oBAAuD,GAAGA,CACrEsB,MAAM,EACNlB,KAAK,KACF;EACH,MAAMmB,gBAAgB,GAAGpB,mBAAmB,CAACC,KAAK,CAAC;EAEnD,OAAOH,wBAAwB,CAACqB,MAAM,EAAGE,CAAC,IAAK;IAC7CA,CAAC,CAACC,UAAU,GAAGV,qBAAqB,CAACS,CAAC,CAACC,UAAU,EAAEF,gBAAgB,CAAC;IAEpE,OAAOC,CAAC;EACV,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,MAAMjB,OAAO,GAAG;EACrBP;AACF,CAAC","ignoreList":[]}
@@ -36,7 +36,7 @@ interface MarkerViewProps extends ViewProps {
36
36
  *
37
37
  * If you have static view consider using PointAnnotation or SymbolLayer they'll offer much better performance
38
38
  * .
39
- * This is based on [MakerView plugin](https://docs.mapbox.com/android/plugins/overview/markerview/) on Android
39
+ * This is based on [MakerView plugin](https://github.com/maplibre/maplibre-plugins-android/tree/main/plugin-markerview) on Android
40
40
  * and PointAnnotation on iOS.
41
41
  */
42
42
  export declare const MarkerView: ({ anchor, allowOverlap, isSelected, ...rest }: MarkerViewProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
2
  import { type Location } from "../modules/location/LocationManager";
3
- export declare const normalIcon: (showsUserHeadingIndicator?: boolean, heading?: number) => import("react/jsx-runtime").JSX.Element[];
4
3
  interface UserLocationProps {
5
4
  /**
6
5
  * Whether location icon is animated between updates
@@ -1 +1 @@
1
- {"version":3,"file":"UserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserLocation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAMf,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,qCAAqC,CAAC;AAwB7C,eAAO,MAAM,UAAU,+BACO,OAAO,YACzB,MAAM,8CAqBjB,CAAC;AAEF,UAAU,iBAAiB;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACjC;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAC;IACjD;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IACpC;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAQD,oBAAY,sBAAsB;IAChC,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,kBAAkB,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE,2BAA2B,EAAE,MAAM,OAAO,CAAC;IAC3C,iBAAiB,EAAE,CAAC,QAA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JAgLxB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { BaseProps } from "../types/BaseProps";
2
+ interface UserLocationPuckProps extends BaseProps {
3
+ sourceID: string;
4
+ heading?: number;
5
+ belowLayerID?: string;
6
+ }
7
+ export declare const UserLocationPuck: import("react").MemoExoticComponent<({ sourceID, heading }: UserLocationPuckProps) => import("react/jsx-runtime").JSX.Element>;
8
+ export {};
9
+ //# sourceMappingURL=UserLocationPuck.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserLocationPuck.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserLocationPuck.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAwBpD,UAAU,qBAAsB,SAAQ,SAAS;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,gBAAgB,8DACH,qBAAqB,6CA0B9C,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type BaseProps } from "../types/BaseProps";
2
+ interface UserLocationPuckHeadingProps extends BaseProps {
3
+ sourceID: string;
4
+ belowLayerID?: string;
5
+ heading: number;
6
+ }
7
+ export declare const UserLocationPuckHeading: import("react").MemoExoticComponent<({ sourceID, belowLayerID, heading }: UserLocationPuckHeadingProps) => import("react/jsx-runtime").JSX.Element>;
8
+ export {};
9
+ //# sourceMappingURL=UserLocationPuckHeading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserLocationPuckHeading.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserLocationPuckHeading.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAUpD,UAAU,4BAA6B,SAAQ,SAAS;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,uBAAuB,4EACI,4BAA4B,6CAWnE,CAAC"}
@@ -13,7 +13,7 @@ export type MapLibrePluginProps = {
13
13
  /**
14
14
  * Variant of `org.maplibre.gl:android-sdk-*`
15
15
  *
16
- * @default "vulkan"
16
+ * @default "opengl"
17
17
  */
18
18
  nativeVariant?: "opengl" | "vulkan";
19
19
  /**
@@ -6,6 +6,7 @@ type PropertyItem = {
6
6
  key: string;
7
7
  value: string;
8
8
  };
9
+ export declare const GRADLE_PROPERTIES_PREFIX = "org.maplibre.reactnative.";
9
10
  export declare const getGradleProperties: (props: MapLibrePluginProps) => PropertyItem[];
10
11
  export declare const mergeGradleProperties: (oldProperties: PropertiesItem[], newProperties: PropertyItem[]) => PropertiesItem[];
11
12
  export declare const withGradleProperties: ConfigPlugin<MapLibrePluginProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../../src/plugin/android.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,mBAAmB,UACvB,mBAAmB,KACzB,YAAY,EAed,CAAC;AAEF,eAAO,MAAM,qBAAqB,kBACjB,cAAc,EAAE,iBAChB,YAAY,EAAE,KAC5B,cAAc,EAUhB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,mBAAmB,CAWlE,CAAC;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
1
+ {"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../../src/plugin/android.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,wBAAwB,8BAA8B,CAAC;AAEpE,eAAO,MAAM,mBAAmB,UACvB,mBAAmB,KACzB,YAAY,EAed,CAAC;AAEF,eAAO,MAAM,qBAAqB,kBACjB,cAAc,EAAE,iBAChB,YAAY,EAAE,KAC5B,cAAc,EAYhB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,mBAAmB,CAWlE,CAAC;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
@@ -2,7 +2,6 @@ import { Animated } from "react-native";
2
2
  declare const AnimatedWithChildren: any;
3
3
  export type AnimatedCoordinates = [number, number];
4
4
  export declare abstract class AbstractAnimatedCoordinates<State> extends AnimatedWithChildren {
5
- static [x: string]: any;
6
5
  constructor(coords: AnimatedCoordinates[]);
7
6
  /**
8
7
  * Subclasses can override to calculate initial state
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractAnimatedCoordinates.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AbstractAnimatedCoordinates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,MAAM,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAMnD,8BAAsB,2BAA2B,CAC/C,KAAK,CACL,SAAQ,oBAAoB;;gBAChB,MAAM,EAAE,mBAAmB,EAAE;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oB;gBAChB,MAAM,EAAE,mBAAmB,EAAE;IAMzC;;;;;OAKG;IACH,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,mBAAmB,EAAE,GAAG,KAAK;IAC7D;;;;;;OAMG;IACH,QAAQ,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,KAAK;IAE3D,OAAO,CACL,aAAa,EAAE,QAAQ,CAAC,KAAK,EAC7B,iBAAiB,EAAE,QAAQ,CAAC,kBAAkB,EAC9C,MAAM,EAAE,CACJ,QAAQ,CAAC,qBAAqB,GAC9B,QAAQ,CAAC,qBAAqB,GAC9B,QAAQ,CAAC,oBAAoB,CAChC,GAAG;QAAE,OAAO,EAAE,mBAAmB,EAAE,CAAA;KAAE,GACrC,QAAQ,CAAC,kBAAkB;IA2B9B,MAAM,CACJ,MAAM,EAAE,QAAQ,CAAC,qBAAqB,GAAG;QACvC,OAAO,EAAE,mBAAmB,EAAE,CAAC;KAChC,GACA,QAAQ,CAAC,kBAAkB;IAa9B,MAAM,CACJ,MAAM,EAAE,QAAQ,CAAC,qBAAqB,GAAG;QAAE,OAAO,EAAE,mBAAmB,EAAE,CAAA;KAAE,GAC1E,QAAQ,CAAC,kBAAkB;IAa9B,KAAK,CACH,MAAM,EAAE,QAAQ,CAAC,oBAAoB,GAAG;QAAE,OAAO,EAAE,mBAAmB,EAAE,CAAA;KAAE,GACzE,QAAQ,CAAC,kBAAkB;IAY9B,UAAU,IAAI,mBAAmB,EAAE;CAQpC"}
@@ -1,6 +1,5 @@
1
1
  declare const AnimatedWithChildren: any;
2
2
  export declare class AnimatedExtractCoordinateFromArray extends AnimatedWithChildren {
3
- static [x: string]: any;
4
3
  _array: AnimatedExtractCoordinateFromArray;
5
4
  _index: number;
6
5
  constructor(array: AnimatedExtractCoordinateFromArray, index: number);
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedExtractCoordinateFromArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedExtractCoordinateFromArray.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,qBAAa,kCAAmC,SAAQ,oBAAoB;;IAC1E,MAAM,EAAE,kCAAkC,CAAC;IAE3C,MAAM,SAAK;gBAEC,KAAK,EAAE,kCAAkC,EAAE,KAAK,EAAE,MAAM;IAMpE,UAAU,IAAI,kCAAkC;IAUhD,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB"}
1
+ {"version":3,"file":"AnimatedExtractCoordinateFromArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedExtractCoordinateFromArray.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,qBAAa,kCAAmC,SAAQ,oBAAoB;IAC1E,MAAM,EAAE,kCAAkC,CAAC;IAE3C,MAAM,SAAK;gBAEC,KAAK,EAAE,kCAAkC,EAAE,KAAK,EAAE,MAAM;IAMpE,UAAU,IAAI,kCAAkC;IAUhD,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB"}
@@ -1,7 +1,6 @@
1
1
  import { Animated } from "react-native";
2
2
  declare const AnimatedWithChildren: any;
3
3
  export declare class AnimatedPoint extends AnimatedWithChildren {
4
- static [x: string]: any;
5
4
  constructor(point?: {
6
5
  type: string;
7
6
  coordinates: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedPoint.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedPoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AAOrE,qBAAa,aAAc,SAAQ,oBAAoB;;gBACzC,KAAK;;;KAAgB;IAiBjC,QAAQ,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKrC,SAAS,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKtC,a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D,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAMhC,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,UAAU,IAAI,OAAO,CAAC,KAAK;IAO3B,QAAQ,IAAI,IAAI;IAKhB,QAAQ,IAAI,IAAI;CAIjB"}
@@ -16,7 +16,6 @@ type Shape = {
16
16
  * <AnimatedShapeSource ... shape={new AnimatedShape({type:'LineString', coordinates: animatedCoords})} />
17
17
  */
18
18
  export declare class AnimatedShape extends AnimatedWithChildren {
19
- static [x: string]: any;
20
19
  constructor(shape: Shape);
21
20
  _walkShapeAndGetValues(value: any): any;
22
21
  __getValue(): any;
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedShape.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedShape.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAIhF,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,KAAK,KAAK,GACN;IACE,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EACP,kCAAkC,GAClC,6BAA6B,CAAC;CACnC,GACD;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,EAAE,wBAAwB,CAAC;CACvC,CAAC;AAEN;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,oBAAoB;;gBAIzC,KAAK,EAAE,KAAK;IAKxB,sBAAsB,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG;IAkBvC,UAAU,IAAI,GAAG;IAMjB,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,KAAK,IAAI,GAAG,IAAI;IAarE,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB"}
1
+ {"version":3,"file":"AnimatedShape.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedShape.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAIhF,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,KAAK,KAAK,GACN;IACE,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EACP,kCAAkC,GAClC,6BAA6B,CAAC;CACnC,GACD;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,EAAE,wBAAwB,CAAC;CACvC,CAAC;AAEN;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,oBAAoB;gBAIzC,KAAK,EAAE,KAAK;IAKxB,sBAAsB,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG;IAkBvC,UAAU,IAAI,GAAG;IAMjB,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,KAAK,IAAI,GAAG,IAAI;IAarE,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB"}
@@ -36,7 +36,7 @@ interface MarkerViewProps extends ViewProps {
36
36
  *
37
37
  * If you have static view consider using PointAnnotation or SymbolLayer they'll offer much better performance
38
38
  * .
39
- * This is based on [MakerView plugin](https://docs.mapbox.com/android/plugins/overview/markerview/) on Android
39
+ * This is based on [MakerView plugin](https://github.com/maplibre/maplibre-plugins-android/tree/main/plugin-markerview) on Android
40
40
  * and PointAnnotation on iOS.
41
41
  */
42
42
  export declare const MarkerView: ({ anchor, allowOverlap, isSelected, ...rest }: MarkerViewProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
2
  import { type Location } from "../modules/location/LocationManager";
3
- export declare const normalIcon: (showsUserHeadingIndicator?: boolean, heading?: number) => import("react/jsx-runtime").JSX.Element[];
4
3
  interface UserLocationProps {
5
4
  /**
6
5
  * Whether location icon is animated between updates
@@ -1 +1 @@
1
- {"version":3,"file":"UserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserLocation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAMf,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,qCAAqC,CAAC;AAwB7C,eAAO,MAAM,UAAU,+BACO,OAAO,YACzB,MAAM,8CAqBjB,CAAC;AAEF,UAAU,iBAAiB;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACjC;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAC;IACjD;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IACpC;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,C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,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAQD,oBAAY,sBAAsB;IAChC,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,kBAAkB,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE,2BAA2B,EAAE,MAAM,OAAO,CAAC;IAC3C,iBAAiB,EAAE,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC;CACxD;AAED,eAAO,MAAM,YAAY,oJAgLxB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { BaseProps } from "../types/BaseProps";
2
+ interface UserLocationPuckProps extends BaseProps {
3
+ sourceID: string;
4
+ heading?: number;
5
+ belowLayerID?: string;
6
+ }
7
+ export declare const UserLocationPuck: import("react").MemoExoticComponent<({ sourceID, heading }: UserLocationPuckProps) => import("react/jsx-runtime").JSX.Element>;
8
+ export {};
9
+ //# sourceMappingURL=UserLocationPuck.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserLocationPuck.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserLocationPuck.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAwBpD,UAAU,qBAAsB,SAAQ,SAAS;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,gBAAgB,8DACH,qBAAqB,6CA0B9C,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type BaseProps } from "../types/BaseProps";
2
+ interface UserLocationPuckHeadingProps extends BaseProps {
3
+ sourceID: string;
4
+ belowLayerID?: string;
5
+ heading: number;
6
+ }
7
+ export declare const UserLocationPuckHeading: import("react").MemoExoticComponent<({ sourceID, belowLayerID, heading }: UserLocationPuckHeadingProps) => import("react/jsx-runtime").JSX.Element>;
8
+ export {};
9
+ //# sourceMappingURL=UserLocationPuckHeading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserLocationPuckHeading.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserLocationPuckHeading.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAUpD,UAAU,4BAA6B,SAAQ,SAAS;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,uBAAuB,4EACI,4BAA4B,6CAWnE,CAAC"}
@@ -13,7 +13,7 @@ export type MapLibrePluginProps = {
13
13
  /**
14
14
  * Variant of `org.maplibre.gl:android-sdk-*`
15
15
  *
16
- * @default "vulkan"
16
+ * @default "opengl"
17
17
  */
18
18
  nativeVariant?: "opengl" | "vulkan";
19
19
  /**
@@ -6,6 +6,7 @@ type PropertyItem = {
6
6
  key: string;
7
7
  value: string;
8
8
  };
9
+ export declare const GRADLE_PROPERTIES_PREFIX = "org.maplibre.reactnative.";
9
10
  export declare const getGradleProperties: (props: MapLibrePluginProps) => PropertyItem[];
10
11
  export declare const mergeGradleProperties: (oldProperties: PropertiesItem[], newProperties: PropertyItem[]) => PropertiesItem[];
11
12
  export declare const withGradleProperties: ConfigPlugin<MapLibrePluginProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../../src/plugin/android.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,mBAAmB,UACvB,mBAAmB,KACzB,YAAY,EAed,CAAC;AAEF,eAAO,MAAM,qBAAqB,kBACjB,cAAc,EAAE,iBAChB,YAAY,EAAE,KAC5B,cAAc,EAUhB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,mBAAmB,CAWlE,CAAC;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
1
+ {"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../../src/plugin/android.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,wBAAwB,8BAA8B,CAAC;AAEpE,eAAO,MAAM,mBAAmB,UACvB,mBAAmB,KACzB,YAAY,EAed,CAAC;AAEF,eAAO,MAAM,qBAAqB,kBACjB,cAAc,EAAE,iBAChB,YAAY,EAAE,KAC5B,cAAc,EAYhB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,mBAAmB,CAWlE,CAAC;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
@@ -2,7 +2,6 @@ import { Animated } from "react-native";
2
2
  declare const AnimatedWithChildren: any;
3
3
  export type AnimatedCoordinates = [number, number];
4
4
  export declare abstract class AbstractAnimatedCoordinates<State> extends AnimatedWithChildren {
5
- static [x: string]: any;
6
5
  constructor(coords: AnimatedCoordinates[]);
7
6
  /**
8
7
  * Subclasses can override to calculate initial state
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractAnimatedCoordinates.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AbstractAnimatedCoordinates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,MAAM,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAMnD,8BAAsB,2BAA2B,CAC/C,KAAK,CACL,SAAQ,oBAAoB;;gBAChB,MAAM,EAAE,mBAAmB,EAAE;IAMzC;;;;;OAKG;IACH,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,mBAAmB,EAAE,GAAG,KAAK;IAC7D;;;;;;OAMG;IACH,QAAQ,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,KAAK;IAE3D,OAAO,CACL,aAAa,EAAE,QAAQ,CAAC,KAAK,EAC7B,iBAAiB,EAAE,QAAQ,CAAC,kBAAkB,EAC9C,MAAM,EAAE,CACJ,QAAQ,CAAC,qBAAqB,GAC9B,QAAQ,CAAC,qBAAqB,GAC9B,QAAQ,CAAC,oBAAoB,CAChC,GAAG;QAAE,OAAO,EAAE,mBAAmB,EAAE,CAAA;KAAE,GACrC,QAAQ,CAAC,kBAAkB;IA2B9B,MAAM,CACJ,MAAM,EAAE,QAAQ,CAAC,qBAAqB,GAAG;QACvC,OAAO,EAAE,mBAAmB,EAAE,CAAC;KAChC,GACA,QAAQ,CAAC,kBAAkB;IAa9B,MAAM,CACJ,MAAM,EAAE,QAAQ,CAAC,qBAAqB,GAAG;QAAE,OAAO,EAAE,mBAAmB,EAAE,CAAA;KAAE,GAC1E,QAAQ,CAAC,kBAAkB;IAa9B,KAAK,CACH,MAAM,EAAE,QAAQ,CAAC,oBAAoB,GAAG;QAAE,OAAO,EAAE,mBAAmB,EAAE,CAAA;KAAE,GACzE,QAA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,mBAAmB,EAAE,CAAA;KAAE,GACzE,QAAQ,CAAC,kBAAkB;IAY9B,UAAU,IAAI,mBAAmB,EAAE;CAQpC"}
@@ -1,6 +1,5 @@
1
1
  declare const AnimatedWithChildren: any;
2
2
  export declare class AnimatedExtractCoordinateFromArray extends AnimatedWithChildren {
3
- static [x: string]: any;
4
3
  _array: AnimatedExtractCoordinateFromArray;
5
4
  _index: number;
6
5
  constructor(array: AnimatedExtractCoordinateFromArray, index: number);
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedExtractCoordinateFromArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedExtractCoordinateFromArray.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,qBAAa,kCAAmC,SAAQ,oBAAoB;;IAC1E,MAAM,EAAE,kCAAkC,CAAC;IAE3C,MAAM,SAAK;gBAEC,KAAK,EAAE,kCAAkC,EAAE,KAAK,EAAE,MAAM;IAMpE,UAAU,IAAI,kCAAkC;IAUhD,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB"}
1
+ {"version":3,"file":"AnimatedExtractCoordinateFromArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedExtractCoordinateFromArray.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,qBAAa,kCAAmC,SAAQ,oBAAoB;IAC1E,MAAM,EAAE,kCAAkC,CAAC;IAE3C,MAAM,SAAK;gBAEC,KAAK,EAAE,kCAAkC,EAAE,KAAK,EAAE,MAAM;IAMpE,UAAU,IAAI,kCAAkC;IAUhD,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB"}
@@ -1,7 +1,6 @@
1
1
  import { Animated } from "react-native";
2
2
  declare const AnimatedWithChildren: any;
3
3
  export declare class AnimatedPoint extends AnimatedWithChildren {
4
- static [x: string]: any;
5
4
  constructor(point?: {
6
5
  type: string;
7
6
  coordinates: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedPoint.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedPoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AAOrE,qBAAa,aAAc,SAAQ,oBAAoB;;gBACzC,KAAK;;;KAAgB;IAiBjC,QAAQ,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKrC,SAAS,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKtC,aAAa,IAAI,IAAI;IAKrB,aAAa,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,IAAI;IASxD,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,MAAM;IAkBxD,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAMhC,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,UAAU,IAAI,OAAO,CAAC,KAAK;IAO3B,QAAQ,IAAI,IAAI;IAKhB,QAAQ,IAAI,IAAI;CAIjB"}
1
+ {"version":3,"file":"AnimatedPoint.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedPoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AAOrE,qBAAa,aAAc,SAAQ,oBAAoB;gBACzC,KAAK;;;KAAgB;IAiBjC,QAAQ,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKrC,SAAS,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKtC,aAAa,IAAI,IAAI;IAKrB,aAAa,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,IAAI;IASxD,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,MAAM;IAkBxD,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAMhC,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,UAAU,IAAI,OAAO,CAAC,KAAK;IAO3B,QAAQ,IAAI,IAAI;IAKhB,QAAQ,IAAI,IAAI;CAIjB"}
@@ -16,7 +16,6 @@ type Shape = {
16
16
  * <AnimatedShapeSource ... shape={new AnimatedShape({type:'LineString', coordinates: animatedCoords})} />
17
17
  */
18
18
  export declare class AnimatedShape extends AnimatedWithChildren {
19
- static [x: string]: any;
20
19
  constructor(shape: Shape);
21
20
  _walkShapeAndGetValues(value: any): any;
22
21
  __getValue(): any;
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedShape.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedShape.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,wBAAw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H,qBAAa,aAAc,SAAQ,oBAAoB;gBAIzC,KAAK,EAAE,KAAK;IAKxB,sBAAsB,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG;IAkBvC,UAAU,IAAI,GAAG;IAMjB,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,KAAK,IAAI,GAAG,IAAI;IAarE,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB"}
@@ -3,7 +3,7 @@ require 'json'
3
3
  package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
4
 
5
5
  # Global Variable Defaults
6
- $MLRN_NATIVE_VERSION ||= "6.10.0"
6
+ $MLRN_NATIVE_VERSION ||= "6.11.0"
7
7
  $MLRN_SPM_SPEC ||= {
8
8
  url: "https://github.com/maplibre/maplibre-gl-native-distribution",
9
9
  requirement: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maplibre/maplibre-react-native",
3
3
  "description": "React Native library for creating maps with MapLibre Native for Android & iOS",
4
- "version": "10.1.0-beta.1",
4
+ "version": "10.1.1",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "provenance": true
@@ -145,25 +145,25 @@
145
145
  "devDependencies": {
146
146
  "@babel/core": "^7.26.0",
147
147
  "@expo/config-plugins": "^9.0.11",
148
- "@maplibre/maplibre-gl-style-spec": "22.0.1",
148
+ "@maplibre/maplibre-gl-style-spec": "23.1.0",
149
149
  "@semantic-release/changelog": "^6.0.3",
150
150
  "@semantic-release/git": "^10.0.1",
151
- "@sinonjs/fake-timers": "^13.0.5",
152
- "@testing-library/react-native": "^12.9.0",
151
+ "@sinonjs/fake-timers": "^14.0.0",
152
+ "@testing-library/react-native": "^13.0.1",
153
153
  "@types/ejs": "^3.1.5",
154
154
  "@types/geojson": "^7946.0.14",
155
155
  "@types/node": "^22.10.1",
156
- "@types/react": "^18.3.13",
156
+ "@types/react": "^18.3.18",
157
157
  "documentation": "^14.0.0",
158
158
  "ejs": "^3.1.10",
159
159
  "eslint": "^8.57.1",
160
160
  "eslint-config-universe": "14.0.0",
161
- "expo-module-scripts": "^4.0.2",
161
+ "expo-module-scripts": "^4.0.4",
162
162
  "jest": "^29.7.0",
163
- "prettier": "3.4.2",
163
+ "prettier": "3.5.3",
164
164
  "react": "18.3.1",
165
165
  "react-docgen": "^7.1.0",
166
- "react-native": "0.75.4",
166
+ "react-native": "0.76.7",
167
167
  "react-native-builder-bob": "^0.34.0",
168
168
  "react-test-renderer": "18.3.1",
169
169
  "semantic-release": "^24.2.0",
@@ -50,7 +50,7 @@ interface NativeProps extends ViewProps {
50
50
  *
51
51
  * If you have static view consider using PointAnnotation or SymbolLayer they'll offer much better performance
52
52
  * .
53
- * This is based on [MakerView plugin](https://docs.mapbox.com/android/plugins/overview/markerview/) on Android
53
+ * This is based on [MakerView plugin](https://github.com/maplibre/maplibre-plugins-android/tree/main/plugin-markerview) on Android
54
54
  * and PointAnnotation on iOS.
55
55
  */
56
56
  export const MarkerView = ({
@@ -9,60 +9,14 @@ import {
9
9
  } from "react";
10
10
 
11
11
  import { Annotation } from "./Annotation";
12
- import { CircleLayer } from "./CircleLayer";
13
- import { HeadingIndicator } from "./HeadingIndicator";
14
12
  import { NativeUserLocation } from "./NativeUserLocation";
13
+ import { UserLocationPuck } from "./UserLocationPuck";
15
14
  import {
16
15
  type Location,
17
16
  LocationManager,
18
17
  } from "../modules/location/LocationManager";
19
- import { type CircleLayerStyle } from "../types/MapLibreRNStyles";
20
18
 
21
- const mapboxBlue = "rgba(51, 181, 229, 100)";
22
-
23
- const layerStyles: Record<string, CircleLayerStyle> = {
24
- pluse: {
25
- circleRadius: 15,
26
- circleColor: mapboxBlue,
27
- circleOpacity: 0.2,
28
- circlePitchAlignment: "map",
29
- },
30
- background: {
31
- circleRadius: 9,
32
- circleColor: "#fff",
33
- circlePitchAlignment: "map",
34
- },
35
- foreground: {
36
- circleRadius: 6,
37
- circleColor: mapboxBlue,
38
- circlePitchAlignment: "map",
39
- },
40
- };
41
-
42
- export const normalIcon = (
43
- showsUserHeadingIndicator?: boolean,
44
- heading?: number,
45
- ) => [
46
- <CircleLayer
47
- key="mapboxUserLocationPluseCircle"
48
- id="mapboxUserLocationPluseCircle"
49
- style={layerStyles.pluse}
50
- />,
51
- <CircleLayer
52
- key="mapboxUserLocationWhiteCircle"
53
- id="mapboxUserLocationWhiteCircle"
54
- style={layerStyles.background}
55
- />,
56
- <CircleLayer
57
- key="mapboxUserLocationBlueCicle"
58
- id="mapboxUserLocationBlueCicle"
59
- aboveLayerID="mapboxUserLocationWhiteCircle"
60
- style={layerStyles.foreground}
61
- />,
62
- ...(showsUserHeadingIndicator && heading
63
- ? [HeadingIndicator({ heading })]
64
- : []),
65
- ];
19
+ const USER_LOCATION_SOURCE_ID = "mlrn-user-location";
66
20
 
67
21
  interface UserLocationProps {
68
22
  /**
@@ -290,15 +244,23 @@ export const UserLocation = memo(
290
244
  return (
291
245
  <Annotation
292
246
  animated={animated}
293
- id="mapboxUserLocation"
247
+ id={USER_LOCATION_SOURCE_ID}
294
248
  onPress={onPress}
295
249
  coordinates={userLocationState.coordinates}
296
250
  style={{
297
251
  iconRotate: userLocationState.heading,
298
252
  }}
299
253
  >
300
- {children ||
301
- normalIcon(showsUserHeadingIndicator, userLocationState.heading)}
254
+ {children || (
255
+ <UserLocationPuck
256
+ sourceID={USER_LOCATION_SOURCE_ID}
257
+ heading={
258
+ showsUserHeadingIndicator
259
+ ? userLocationState.heading
260
+ : undefined
261
+ }
262
+ />
263
+ )}
302
264
  </Annotation>
303
265
  );
304
266
  },
@@ -0,0 +1,62 @@
1
+ import { memo } from "react";
2
+
3
+ import { CircleLayer } from "./CircleLayer";
4
+ import { UserLocationPuckHeading } from "./UserLocationPuckHeading";
5
+ import type { BaseProps } from "../types/BaseProps";
6
+ import type { CircleLayerStyle } from "../types/MapLibreRNStyles";
7
+
8
+ const blue = "#33B5E5";
9
+
10
+ const layerStyles: Record<"pulse" | "white" | "blue", CircleLayerStyle> = {
11
+ pulse: {
12
+ circleRadius: 15,
13
+ circleColor: blue,
14
+ circleOpacity: 0.2,
15
+ circlePitchAlignment: "map",
16
+ },
17
+ white: {
18
+ circleRadius: 9,
19
+ circleColor: "#fff",
20
+ circlePitchAlignment: "map",
21
+ },
22
+ blue: {
23
+ circleRadius: 6,
24
+ circleColor: blue,
25
+ circlePitchAlignment: "map",
26
+ },
27
+ };
28
+
29
+ interface UserLocationPuckProps extends BaseProps {
30
+ sourceID: string;
31
+ heading?: number;
32
+ belowLayerID?: string;
33
+ }
34
+
35
+ export const UserLocationPuck = memo(
36
+ ({ sourceID, heading }: UserLocationPuckProps) => (
37
+ <>
38
+ <CircleLayer
39
+ id="mlrn-user-location-puck-pulse"
40
+ sourceID={sourceID}
41
+ style={layerStyles.pulse}
42
+ />
43
+ <CircleLayer
44
+ id="mlrn-user-location-puck-white"
45
+ sourceID={sourceID}
46
+ style={layerStyles.white}
47
+ />
48
+ <CircleLayer
49
+ id="mlrn-user-location-puck-blue"
50
+ sourceID={sourceID}
51
+ style={layerStyles.blue}
52
+ />
53
+ {typeof heading === "number" && (
54
+ <UserLocationPuckHeading
55
+ sourceID={sourceID}
56
+ belowLayerID="mlrn-user-location-puck-white"
57
+ heading={heading}
58
+ />
59
+ )}
60
+ </>
61
+ ),
62
+ );