@maplibre/maplibre-react-native 11.0.3 → 11.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 (52) hide show
  1. package/android/src/main/java/org/maplibre/reactnative/MLRNPackage.kt +2 -0
  2. package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerView.kt +4 -13
  3. package/android/src/main/java/org/maplibre/reactnative/components/layer/MLRNLayer.kt +34 -25
  4. package/android/src/main/java/org/maplibre/reactnative/components/sources/tilesources/rasterdemsource/MLRNRasterDEMSource.kt +28 -0
  5. package/android/src/main/java/org/maplibre/reactnative/components/sources/tilesources/rasterdemsource/MLRNRasterDEMSourceManager.kt +34 -0
  6. package/ios/components/layer/MLRNLayer.h +14 -1
  7. package/ios/components/layer/MLRNLayer.m +52 -37
  8. package/ios/components/layer/MLRNLayerComponentView.mm +26 -1
  9. package/ios/components/sources/tile-sources/raster-dem-source/MLRNRasterDEMSource.h +10 -0
  10. package/ios/components/sources/tile-sources/raster-dem-source/MLRNRasterDEMSource.m +39 -0
  11. package/ios/components/sources/tile-sources/raster-dem-source/MLRNRasterDEMSourceComponentView.h +9 -0
  12. package/ios/components/sources/tile-sources/raster-dem-source/MLRNRasterDEMSourceComponentView.mm +131 -0
  13. package/lib/commonjs/components/layer/LayerNativeComponent.ts +13 -1
  14. package/lib/commonjs/components/sources/raster-dem-source/RasterDEMSource.js +31 -0
  15. package/lib/commonjs/components/sources/raster-dem-source/RasterDEMSource.js.map +1 -0
  16. package/lib/commonjs/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.ts +25 -0
  17. package/lib/commonjs/components/sources/raster-source/RasterSourceNativeComponent.ts +2 -2
  18. package/lib/commonjs/index.js +7 -0
  19. package/lib/commonjs/index.js.map +1 -1
  20. package/lib/module/components/layer/LayerNativeComponent.ts +13 -1
  21. package/lib/module/components/sources/raster-dem-source/RasterDEMSource.js +26 -0
  22. package/lib/module/components/sources/raster-dem-source/RasterDEMSource.js.map +1 -0
  23. package/lib/module/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.ts +25 -0
  24. package/lib/module/components/sources/raster-source/RasterSourceNativeComponent.ts +2 -2
  25. package/lib/module/index.js +1 -0
  26. package/lib/module/index.js.map +1 -1
  27. package/lib/typescript/commonjs/components/layer/LayerNativeComponent.d.ts +1 -1
  28. package/lib/typescript/commonjs/components/layer/LayerNativeComponent.d.ts.map +1 -1
  29. package/lib/typescript/commonjs/components/sources/raster-dem-source/RasterDEMSource.d.ts +58 -0
  30. package/lib/typescript/commonjs/components/sources/raster-dem-source/RasterDEMSource.d.ts.map +1 -0
  31. package/lib/typescript/commonjs/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.d.ts +15 -0
  32. package/lib/typescript/commonjs/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.d.ts.map +1 -0
  33. package/lib/typescript/commonjs/components/sources/raster-source/RasterSourceNativeComponent.d.ts +2 -2
  34. package/lib/typescript/commonjs/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +1 -1
  35. package/lib/typescript/commonjs/index.d.ts +2 -1
  36. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  37. package/lib/typescript/module/components/layer/LayerNativeComponent.d.ts +1 -1
  38. package/lib/typescript/module/components/layer/LayerNativeComponent.d.ts.map +1 -1
  39. package/lib/typescript/module/components/sources/raster-dem-source/RasterDEMSource.d.ts +58 -0
  40. package/lib/typescript/module/components/sources/raster-dem-source/RasterDEMSource.d.ts.map +1 -0
  41. package/lib/typescript/module/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.d.ts +15 -0
  42. package/lib/typescript/module/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.d.ts.map +1 -0
  43. package/lib/typescript/module/components/sources/raster-source/RasterSourceNativeComponent.d.ts +2 -2
  44. package/lib/typescript/module/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +1 -1
  45. package/lib/typescript/module/index.d.ts +2 -1
  46. package/lib/typescript/module/index.d.ts.map +1 -1
  47. package/package.json +5 -4
  48. package/src/components/layer/LayerNativeComponent.ts +13 -1
  49. package/src/components/sources/raster-dem-source/RasterDEMSource.tsx +83 -0
  50. package/src/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.ts +25 -0
  51. package/src/components/sources/raster-source/RasterSourceNativeComponent.ts +2 -2
  52. package/src/index.ts +14 -9
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.RasterDEMSource = void 0;
7
+ var _react = require("react");
8
+ var _RasterDEMSourceNativeComponent = _interopRequireDefault(require("./RasterDEMSourceNativeComponent"));
9
+ var _useFrozenId = require("../../../hooks/useFrozenId.js");
10
+ var _index = require("../../../utils/index.js");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ /**
14
+ * RasterDEMSource is a map content source that supplies rasterized digital
15
+ * elevation model (DEM) tiles to be shown on the map. Use it together with a
16
+ * hillshade layer to visualize terrain.
17
+ */
18
+ const RasterDEMSource = exports.RasterDEMSource = /*#__PURE__*/(0, _react.memo)(({
19
+ id,
20
+ ...props
21
+ }) => {
22
+ const frozenId = (0, _useFrozenId.useFrozenId)(id);
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_RasterDEMSourceNativeComponent.default, {
24
+ id: frozenId,
25
+ ...props,
26
+ children: (0, _index.cloneReactChildrenWithProps)(props.children, {
27
+ source: frozenId
28
+ })
29
+ });
30
+ });
31
+ //# sourceMappingURL=RasterDEMSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_RasterDEMSourceNativeComponent","_interopRequireDefault","_useFrozenId","_index","_jsxRuntime","e","__esModule","default","RasterDEMSource","exports","memo","id","props","frozenId","useFrozenId","jsx","children","cloneReactChildrenWithProps","source"],"sourceRoot":"../../../../../src","sources":["components/sources/raster-dem-source/RasterDEMSource.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,+BAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AAA6D,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAE,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA4D7D;AACA;AACA;AACA;AACA;AACO,MAAMG,eAAe,GAAAC,OAAA,CAAAD,eAAA,gBAAG,IAAAE,WAAI,EACjC,CAAC;EAAEC,EAAE;EAAE,GAAGC;AAA4B,CAAC,KAAK;EAC1C,MAAMC,QAAQ,GAAG,IAAAC,wBAAW,EAACH,EAAE,CAAC;EAEhC,oBACE,IAAAP,WAAA,CAAAW,GAAA,EAACf,+BAAA,CAAAO,OAA8B;IAACI,EAAE,EAAEE,QAAS;IAAA,GAAKD,KAAK;IAAAI,QAAA,EACpD,IAAAC,kCAA2B,EAACL,KAAK,CAACI,QAAQ,EAAE;MAC3CE,MAAM,EAAEL;IACV,CAAC;EAAC,CAC4B,CAAC;AAErC,CACF,CAAC","ignoreList":[]}
@@ -0,0 +1,25 @@
1
+ import {
2
+ codegenNativeComponent,
3
+ type CodegenTypes,
4
+ type HostComponent,
5
+ type ViewProps,
6
+ } from "react-native";
7
+
8
+ type NativeDEMEncoding = "mapbox" | "terrarium";
9
+
10
+ export interface NativeProps extends ViewProps {
11
+ id: string;
12
+ url?: string;
13
+ tiles?: string[];
14
+
15
+ tileSize?: CodegenTypes.WithDefault<CodegenTypes.Int32, 512>;
16
+ minzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
17
+ maxzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
18
+ attribution?: string;
19
+
20
+ encoding?: CodegenTypes.WithDefault<NativeDEMEncoding, "mapbox">;
21
+ }
22
+
23
+ export default codegenNativeComponent<NativeProps>(
24
+ "MLRNRasterDEMSource",
25
+ ) as HostComponent<NativeProps>;
@@ -12,12 +12,12 @@ export interface NativeProps extends ViewProps {
12
12
  url?: string;
13
13
  tiles?: string[];
14
14
 
15
+ tileSize?: CodegenTypes.WithDefault<CodegenTypes.Int32, 512>;
15
16
  minzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
16
17
  maxzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
17
- scheme?: CodegenTypes.WithDefault<NativeScheme, "xyz">;
18
18
  attribution?: string;
19
19
 
20
- tileSize?: CodegenTypes.WithDefault<CodegenTypes.Int32, 512>;
20
+ scheme?: CodegenTypes.WithDefault<NativeScheme, "xyz">;
21
21
  }
22
22
 
23
23
  export default codegenNativeComponent<NativeProps>(
@@ -99,6 +99,12 @@ Object.defineProperty(exports, "OfflinePack", {
99
99
  return _OfflinePack.OfflinePack;
100
100
  }
101
101
  });
102
+ Object.defineProperty(exports, "RasterDEMSource", {
103
+ enumerable: true,
104
+ get: function () {
105
+ return _RasterDEMSource.RasterDEMSource;
106
+ }
107
+ });
102
108
  Object.defineProperty(exports, "RasterSource", {
103
109
  enumerable: true,
104
110
  get: function () {
@@ -152,6 +158,7 @@ var _useCurrentPosition = require("./hooks/useCurrentPosition.js");
152
158
  var _ImageSource = require("./components/sources/image-source/ImageSource.js");
153
159
  var _GeoJSONSource = require("./components/sources/geojson-source/GeoJSONSource.js");
154
160
  var _RasterSource = require("./components/sources/raster-source/RasterSource.js");
161
+ var _RasterDEMSource = require("./components/sources/raster-dem-source/RasterDEMSource.js");
155
162
  var _VectorSource = require("./components/sources/vector-source/VectorSource.js");
156
163
  var _Layer = require("./components/layer/Layer.js");
157
164
  var _Images = require("./components/images/Images.js");
@@ -1 +1 @@
1
- {"version":3,"names":["_Camera","require","_Map","_ViewAnnotation","_LayerAnnotation","_Callout","_UserLocation","_NativeUserLocation","_useCurrentPosition","_ImageSource","_GeoJSONSource","_RasterSource","_VectorSource","_Layer","_Images","_Marker","_LocationManager","_LogManager","_NetworkManager","_OfflineManager","_OfflinePack","_StaticMapManager","_TransformRequestManager","_Animated"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAiBA,IAAAC,IAAA,GAAAD,OAAA;AAQA,IAAAE,eAAA,GAAAF,OAAA;AAQA,IAAAG,gBAAA,GAAAH,OAAA;AAKA,IAAAI,QAAA,GAAAJ,OAAA;AAKA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AAEA,IAAAQ,YAAA,GAAAR,OAAA;AAKA,IAAAS,cAAA,GAAAT,OAAA;AAMA,IAAAU,aAAA,GAAAV,OAAA;AAKA,IAAAW,aAAA,GAAAX,OAAA;AAMA,IAAAY,MAAA,GAAAZ,OAAA;AA+CA,IAAAa,OAAA,GAAAb,OAAA;AAOA,IAAAc,OAAA,GAAAd,OAAA;AAQA,IAAAe,gBAAA,GAAAf,OAAA;AAKA,IAAAgB,WAAA,GAAAhB,OAAA;AAEA,IAAAiB,eAAA,GAAAjB,OAAA;AAEA,IAAAkB,eAAA,GAAAlB,OAAA;AAQA,IAAAmB,YAAA,GAAAnB,OAAA;AAKA,IAAAoB,iBAAA,GAAApB,OAAA;AAQA,IAAAqB,wBAAA,GAAArB,OAAA;AA8BA,IAAAsB,SAAA,GAAAtB,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_Camera","require","_Map","_ViewAnnotation","_LayerAnnotation","_Callout","_UserLocation","_NativeUserLocation","_useCurrentPosition","_ImageSource","_GeoJSONSource","_RasterSource","_RasterDEMSource","_VectorSource","_Layer","_Images","_Marker","_LocationManager","_LogManager","_NetworkManager","_OfflineManager","_OfflinePack","_StaticMapManager","_TransformRequestManager","_Animated"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAiBA,IAAAC,IAAA,GAAAD,OAAA;AAQA,IAAAE,eAAA,GAAAF,OAAA;AAQA,IAAAG,gBAAA,GAAAH,OAAA;AAKA,IAAAI,QAAA,GAAAJ,OAAA;AAKA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AAEA,IAAAQ,YAAA,GAAAR,OAAA;AAKA,IAAAS,cAAA,GAAAT,OAAA;AAMA,IAAAU,aAAA,GAAAV,OAAA;AAIA,IAAAW,gBAAA,GAAAX,OAAA;AAKA,IAAAY,aAAA,GAAAZ,OAAA;AAMA,IAAAa,MAAA,GAAAb,OAAA;AAgDA,IAAAc,OAAA,GAAAd,OAAA;AAOA,IAAAe,OAAA,GAAAf,OAAA;AAQA,IAAAgB,gBAAA,GAAAhB,OAAA;AAKA,IAAAiB,WAAA,GAAAjB,OAAA;AAEA,IAAAkB,eAAA,GAAAlB,OAAA;AAEA,IAAAmB,eAAA,GAAAnB,OAAA;AAQA,IAAAoB,YAAA,GAAApB,OAAA;AAKA,IAAAqB,iBAAA,GAAArB,OAAA;AAQA,IAAAsB,wBAAA,GAAAtB,OAAA;AA8BA,IAAAuB,SAAA,GAAAvB,OAAA","ignoreList":[]}
@@ -10,7 +10,19 @@ import type { StyleValue } from "../../utils/StyleValue";
10
10
 
11
11
  export interface NativeProps extends ViewProps {
12
12
  id: string;
13
- layerType: string;
13
+ layerType?: CodegenTypes.WithDefault<
14
+ | "background"
15
+ | "circle"
16
+ | "color-relief"
17
+ | "fill"
18
+ | "fill-extrusion"
19
+ | "heatmap"
20
+ | "hillshade"
21
+ | "line"
22
+ | "raster"
23
+ | "symbol",
24
+ "background"
25
+ >;
14
26
 
15
27
  source?: string;
16
28
  sourceLayer?: string;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ import { memo } from "react";
4
+ import RasterDEMSourceNativeComponent from "./RasterDEMSourceNativeComponent";
5
+ import { useFrozenId } from "../../../hooks/useFrozenId.js";
6
+ import { cloneReactChildrenWithProps } from "../../../utils/index.js";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ /**
9
+ * RasterDEMSource is a map content source that supplies rasterized digital
10
+ * elevation model (DEM) tiles to be shown on the map. Use it together with a
11
+ * hillshade layer to visualize terrain.
12
+ */
13
+ export const RasterDEMSource = /*#__PURE__*/memo(({
14
+ id,
15
+ ...props
16
+ }) => {
17
+ const frozenId = useFrozenId(id);
18
+ return /*#__PURE__*/_jsx(RasterDEMSourceNativeComponent, {
19
+ id: frozenId,
20
+ ...props,
21
+ children: cloneReactChildrenWithProps(props.children, {
22
+ source: frozenId
23
+ })
24
+ });
25
+ });
26
+ //# sourceMappingURL=RasterDEMSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["memo","RasterDEMSourceNativeComponent","useFrozenId","cloneReactChildrenWithProps","jsx","_jsx","RasterDEMSource","id","props","frozenId","children","source"],"sourceRoot":"../../../../../src","sources":["components/sources/raster-dem-source/RasterDEMSource.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAwB,OAAO;AAE5C,OAAOC,8BAA8B,MAAM,kCAAkC;AAC7E,SAASC,WAAW,QAAQ,+BAA4B;AAExD,SAASC,2BAA2B,QAAQ,yBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AA4D7D;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,gBAAGN,IAAI,CACjC,CAAC;EAAEO,EAAE;EAAE,GAAGC;AAA4B,CAAC,KAAK;EAC1C,MAAMC,QAAQ,GAAGP,WAAW,CAACK,EAAE,CAAC;EAEhC,oBACEF,IAAA,CAACJ,8BAA8B;IAACM,EAAE,EAAEE,QAAS;IAAA,GAAKD,KAAK;IAAAE,QAAA,EACpDP,2BAA2B,CAACK,KAAK,CAACE,QAAQ,EAAE;MAC3CC,MAAM,EAAEF;IACV,CAAC;EAAC,CAC4B,CAAC;AAErC,CACF,CAAC","ignoreList":[]}
@@ -0,0 +1,25 @@
1
+ import {
2
+ codegenNativeComponent,
3
+ type CodegenTypes,
4
+ type HostComponent,
5
+ type ViewProps,
6
+ } from "react-native";
7
+
8
+ type NativeDEMEncoding = "mapbox" | "terrarium";
9
+
10
+ export interface NativeProps extends ViewProps {
11
+ id: string;
12
+ url?: string;
13
+ tiles?: string[];
14
+
15
+ tileSize?: CodegenTypes.WithDefault<CodegenTypes.Int32, 512>;
16
+ minzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
17
+ maxzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
18
+ attribution?: string;
19
+
20
+ encoding?: CodegenTypes.WithDefault<NativeDEMEncoding, "mapbox">;
21
+ }
22
+
23
+ export default codegenNativeComponent<NativeProps>(
24
+ "MLRNRasterDEMSource",
25
+ ) as HostComponent<NativeProps>;
@@ -12,12 +12,12 @@ export interface NativeProps extends ViewProps {
12
12
  url?: string;
13
13
  tiles?: string[];
14
14
 
15
+ tileSize?: CodegenTypes.WithDefault<CodegenTypes.Int32, 512>;
15
16
  minzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
16
17
  maxzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
17
- scheme?: CodegenTypes.WithDefault<NativeScheme, "xyz">;
18
18
  attribution?: string;
19
19
 
20
- tileSize?: CodegenTypes.WithDefault<CodegenTypes.Int32, 512>;
20
+ scheme?: CodegenTypes.WithDefault<NativeScheme, "xyz">;
21
21
  }
22
22
 
23
23
  export default codegenNativeComponent<NativeProps>(
@@ -11,6 +11,7 @@ export { useCurrentPosition } from "./hooks/useCurrentPosition.js";
11
11
  export { ImageSource } from "./components/sources/image-source/ImageSource.js";
12
12
  export { GeoJSONSource } from "./components/sources/geojson-source/GeoJSONSource.js";
13
13
  export { RasterSource } from "./components/sources/raster-source/RasterSource.js";
14
+ export { RasterDEMSource } from "./components/sources/raster-dem-source/RasterDEMSource.js";
14
15
  export { VectorSource } from "./components/sources/vector-source/VectorSource.js";
15
16
  export { Layer } from "./components/layer/Layer.js";
16
17
  export { Images } from "./components/images/Images.js";
@@ -1 +1 @@
1
- {"version":3,"names":["Camera","Map","ViewAnnotation","LayerAnnotation","Callout","UserLocation","NativeUserLocation","useCurrentPosition","ImageSource","GeoJSONSource","RasterSource","VectorSource","Layer","Images","Marker","LocationManager","LogManager","NetworkManager","OfflineManager","OfflinePack","StaticMapImageManager","TransformRequestManager","Animated"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAcEA,MAAM,QACD,+BAA4B;AAEnC,SAKEC,GAAG,QACE,yBAAsB;AAE7B,SAKEC,cAAc,QACT,4DAAyD;AAEhE,SAEEC,eAAe,QACV,6CAA0C;AAEjD,SAEEC,OAAO,QACF,6CAA0C;AAEjD,SAASC,YAAY,QAAQ,4CAAyC;AACtE,SAASC,kBAAkB,QAAQ,kDAA+C;AAClF,SAASC,kBAAkB,QAAQ,+BAA4B;AAE/D,SAEEC,WAAW,QACN,kDAA+C;AAEtD,SAGEC,aAAa,QACR,sDAAmD;AAE1D,SAEEC,YAAY,QACP,oDAAiD;AAExD,SAGEC,YAAY,QACP,oDAAiD;AAExD,SACEC,KAAK,QAWA,6BAA0B;AAmCjC,SAIEC,MAAM,QACD,+BAA4B;AAEnC,SAKEC,MAAM,QACD,2CAAwC;AAE/C,SACEC,eAAe,QAEV,uCAAoC;AAE3C,SAASC,UAAU,QAAuB,6BAA0B;AAEpE,SAASC,cAAc,QAAQ,qCAAkC;AAEjE,SACEC,cAAc,QAMT,qCAAkC;AACzC,SACEC,WAAW,QAEN,kCAA+B;AAEtC,SACEC,qBAAqB,QAKhB,0CAAuC;AAE9C,SACEC,uBAAuB,QAKlB,wDAAqD;AAwB5D,SAASC,QAAQ,QAAQ,8BAA2B","ignoreList":[]}
1
+ {"version":3,"names":["Camera","Map","ViewAnnotation","LayerAnnotation","Callout","UserLocation","NativeUserLocation","useCurrentPosition","ImageSource","GeoJSONSource","RasterSource","RasterDEMSource","VectorSource","Layer","Images","Marker","LocationManager","LogManager","NetworkManager","OfflineManager","OfflinePack","StaticMapImageManager","TransformRequestManager","Animated"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAcEA,MAAM,QACD,+BAA4B;AAEnC,SAKEC,GAAG,QACE,yBAAsB;AAE7B,SAKEC,cAAc,QACT,4DAAyD;AAEhE,SAEEC,eAAe,QACV,6CAA0C;AAEjD,SAEEC,OAAO,QACF,6CAA0C;AAEjD,SAASC,YAAY,QAAQ,4CAAyC;AACtE,SAASC,kBAAkB,QAAQ,kDAA+C;AAClF,SAASC,kBAAkB,QAAQ,+BAA4B;AAE/D,SAEEC,WAAW,QACN,kDAA+C;AAEtD,SAGEC,aAAa,QACR,sDAAmD;AAE1D,SAEEC,YAAY,QACP,oDAAiD;AACxD,SAEEC,eAAe,QACV,2DAAwD;AAE/D,SAGEC,YAAY,QACP,oDAAiD;AAExD,SACEC,KAAK,QAWA,6BAA0B;AAoCjC,SAIEC,MAAM,QACD,+BAA4B;AAEnC,SAKEC,MAAM,QACD,2CAAwC;AAE/C,SACEC,eAAe,QAEV,uCAAoC;AAE3C,SAASC,UAAU,QAAuB,6BAA0B;AAEpE,SAASC,cAAc,QAAQ,qCAAkC;AAEjE,SACEC,cAAc,QAMT,qCAAkC;AACzC,SACEC,WAAW,QAEN,kCAA+B;AAEtC,SACEC,qBAAqB,QAKhB,0CAAuC;AAE9C,SACEC,uBAAuB,QAKlB,wDAAqD;AAwB5D,SAASC,QAAQ,QAAQ,8BAA2B","ignoreList":[]}
@@ -3,7 +3,7 @@ import type { UnsafeMixed } from "../../types/codegen/UnsafeMixed";
3
3
  import type { StyleValue } from "../../utils/StyleValue";
4
4
  export interface NativeProps extends ViewProps {
5
5
  id: string;
6
- layerType: string;
6
+ layerType?: CodegenTypes.WithDefault<"background" | "circle" | "color-relief" | "fill" | "fill-extrusion" | "heatmap" | "hillshade" | "line" | "raster" | "symbol", "background">;
7
7
  source?: string;
8
8
  sourceLayer?: string;
9
9
  afterId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"LayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/layer/LayerNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;IAEhC,OAAO,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC;IAE9B,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;CACtD;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
1
+ {"version":3,"file":"LayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/layer/LayerNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,YAAY,CAAC,WAAW,CAChC,YAAY,GACZ,QAAQ,GACR,cAAc,GACd,MAAM,GACN,gBAAgB,GAChB,SAAS,GACT,WAAW,GACX,MAAM,GACN,QAAQ,GACR,QAAQ,EACV,YAAY,CACb,CAAC;IAEF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;IAEhC,OAAO,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC;IAE9B,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;CACtD;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
@@ -0,0 +1,58 @@
1
+ import { type ReactNode } from "react";
2
+ import { type BaseProps } from "../../../types/BaseProps";
3
+ export interface RasterDEMSourceProps extends BaseProps {
4
+ /**
5
+ * A string that uniquely identifies the source.
6
+ */
7
+ id?: string;
8
+ /**
9
+ * A URL to a TileJSON configuration file describing the source's contents and
10
+ * other metadata.
11
+ */
12
+ url?: string;
13
+ /**
14
+ * An array of tile URL templates. If multiple endpoints are specified, clients
15
+ * may use any combination of endpoints.
16
+ *
17
+ * @example "https://example.com/dem-tiles/{z}/{x}/{y}.png"
18
+ */
19
+ tiles?: string[];
20
+ /**
21
+ * An unsigned integer that specifies the minimum zoom level at which to display
22
+ * tiles from the source. The value should be between 0 and 22, inclusive, and
23
+ * less than maxzoom, if specified. The default value for this option is 0.
24
+ */
25
+ minzoom?: number;
26
+ /**
27
+ * An unsigned integer that specifies the maximum zoom level at which to display
28
+ * tiles from the source. The value should be between 0 and 22, inclusive, and
29
+ * greater than minzoom, if specified. The default value for this option is 22.
30
+ */
31
+ maxzoom?: number;
32
+ /**
33
+ * Size of the map tiles.
34
+ *
35
+ * @defaultValue 512
36
+ */
37
+ tileSize?: number;
38
+ /**
39
+ * An HTML or literal text string defining the buttons to be displayed in an
40
+ * action sheet when the source is part of a map view's style and the map view's
41
+ * attribution button is pressed.
42
+ */
43
+ attribution?: string;
44
+ /**
45
+ * The encoding formula for the raster DEM tileset.
46
+ *
47
+ * @defaultValue "mapbox"
48
+ */
49
+ encoding?: "mapbox" | "terrarium";
50
+ children?: ReactNode;
51
+ }
52
+ /**
53
+ * RasterDEMSource is a map content source that supplies rasterized digital
54
+ * elevation model (DEM) tiles to be shown on the map. Use it together with a
55
+ * hillshade layer to visualize terrain.
56
+ */
57
+ export declare const RasterDEMSource: import("react").MemoExoticComponent<({ id, ...props }: RasterDEMSourceProps) => import("react/jsx-runtime").JSX.Element>;
58
+ //# sourceMappingURL=RasterDEMSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RasterDEMSource.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/raster-dem-source/RasterDEMSource.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI7C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAG1D,MAAM,WAAW,oBAAqB,SAAQ,SAAS;IACrD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;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,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IAElC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,yDACP,oBAAoB,6CAWxC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { type CodegenTypes, type HostComponent, type ViewProps } from "react-native";
2
+ type NativeDEMEncoding = "mapbox" | "terrarium";
3
+ export interface NativeProps extends ViewProps {
4
+ id: string;
5
+ url?: string;
6
+ tiles?: string[];
7
+ tileSize?: CodegenTypes.WithDefault<CodegenTypes.Int32, 512>;
8
+ minzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
9
+ maxzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
10
+ attribution?: string;
11
+ encoding?: CodegenTypes.WithDefault<NativeDEMEncoding, "mapbox">;
12
+ }
13
+ declare const _default: HostComponent<NativeProps>;
14
+ export default _default;
15
+ //# sourceMappingURL=RasterDEMSourceNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RasterDEMSourceNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,iBAAiB,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEhD,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB,QAAQ,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC7D,OAAO,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,OAAO,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;CAClE;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
@@ -4,11 +4,11 @@ export interface NativeProps extends ViewProps {
4
4
  id: string;
5
5
  url?: string;
6
6
  tiles?: string[];
7
+ tileSize?: CodegenTypes.WithDefault<CodegenTypes.Int32, 512>;
7
8
  minzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
8
9
  maxzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
9
- scheme?: CodegenTypes.WithDefault<NativeScheme, "xyz">;
10
10
  attribution?: string;
11
- tileSize?: CodegenTypes.WithDefault<CodegenTypes.Int32, 512>;
11
+ scheme?: CodegenTypes.WithDefault<NativeScheme, "xyz">;
12
12
  }
13
13
  declare const _default: HostComponent<NativeProps>;
14
14
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"RasterSourceNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/raster-source/RasterSourceNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,YAAY,GAAG,KAAK,GAAG,KAAK,CAAC;AAElC,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB,OAAO,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,OAAO,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,MAAM,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;CAC9D;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
1
+ {"version":3,"file":"RasterSourceNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/raster-source/RasterSourceNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,YAAY,GAAG,KAAK,GAAG,KAAK,CAAC;AAElC,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB,QAAQ,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC7D,OAAO,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,OAAO,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,MAAM,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;CACxD;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
@@ -9,9 +9,10 @@ export { useCurrentPosition } from "./hooks/useCurrentPosition";
9
9
  export { type ImageSourceProps, ImageSource, } from "./components/sources/image-source/ImageSource";
10
10
  export { type GeoJSONSourceRef, type GeoJSONSourceProps, GeoJSONSource, } from "./components/sources/geojson-source/GeoJSONSource";
11
11
  export { type RasterSourceProps, RasterSource, } from "./components/sources/raster-source/RasterSource";
12
+ export { type RasterDEMSourceProps, RasterDEMSource, } from "./components/sources/raster-dem-source/RasterDEMSource";
12
13
  export { type VectorSourceRef, type VectorSourceProps, VectorSource, } from "./components/sources/vector-source/VectorSource";
13
14
  export { Layer, type LayerProps, type SourceLayerProps, type FillLayerProps, type LineLayerProps, type SymbolLayerProps, type CircleLayerProps, type HeatmapLayerProps, type FillExtrusionLayerProps, type RasterLayerProps, type BackgroundLayerProps, } from "./components/layer/Layer";
14
- export type { LayerSpecification, FillLayerSpecification, LineLayerSpecification, SymbolLayerSpecification, CircleLayerSpecification, HeatmapLayerSpecification, FillExtrusionLayerSpecification, RasterLayerSpecification, HillshadeLayerSpecification, BackgroundLayerSpecification, SourceSpecification, VectorSourceSpecification, RasterSourceSpecification, RasterDEMSourceSpecification, GeoJSONSourceSpecification, VideoSourceSpecification, ImageSourceSpecification, FilterSpecification, StyleSpecification, SkySpecification, LightSpecification, TerrainSpecification, ProjectionSpecification, } from "@maplibre/maplibre-gl-style-spec";
15
+ export type { LayerSpecification, BackgroundLayerSpecification, CircleLayerSpecification, ColorReliefLayerSpecification, FillLayerSpecification, FillExtrusionLayerSpecification, HeatmapLayerSpecification, HillshadeLayerSpecification, LineLayerSpecification, RasterLayerSpecification, SymbolLayerSpecification, SourceSpecification, GeoJSONSourceSpecification, ImageSourceSpecification, RasterSourceSpecification, RasterDEMSourceSpecification, VectorSourceSpecification, VideoSourceSpecification, FilterSpecification, StyleSpecification, SkySpecification, LightSpecification, TerrainSpecification, ProjectionSpecification, } from "@maplibre/maplibre-gl-style-spec";
15
16
  export { type ImageSourceWithSdf, type ImageEntry, type ImagesProps, Images, } from "./components/images/Images";
16
17
  export { type NativeMarkerRef, type MarkerEvent, type MarkerProps, type MarkerRef, Marker, } from "./components/annotations/marker/Marker";
17
18
  export { LocationManager, type GeolocationPosition, } from "./modules/location/LocationManager";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,4BAA4B,EACjC,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,MAAM,GACP,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,GAAG,GACJ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,cAAc,GACf,MAAM,yDAAyD,CAAC;AAEjE,OAAO,EACL,KAAK,oBAAoB,EAC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AAoB,CAAC;AACrD,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErD,YAAY,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -3,7 +3,7 @@ import type { UnsafeMixed } from "../../types/codegen/UnsafeMixed";
3
3
  import type { StyleValue } from "../../utils/StyleValue";
4
4
  export interface NativeProps extends ViewProps {
5
5
  id: string;
6
- layerType: string;
6
+ layerType?: CodegenTypes.WithDefault<"background" | "circle" | "color-relief" | "fill" | "fill-extrusion" | "heatmap" | "hillshade" | "line" | "raster" | "symbol", "background">;
7
7
  source?: string;
8
8
  sourceLayer?: string;
9
9
  afterId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"LayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/layer/LayerNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;IAEhC,OAAO,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC;IAE9B,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;CACtD;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
1
+ {"version":3,"file":"LayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/layer/LayerNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,YAAY,CAAC,WAAW,CAChC,YAAY,GACZ,QAAQ,GACR,cAAc,GACd,MAAM,GACN,gBAAgB,GAChB,SAAS,GACT,WAAW,GACX,MAAM,GACN,QAAQ,GACR,QAAQ,EACV,YAAY,CACb,CAAC;IAEF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;IAEhC,OAAO,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC;IAE9B,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;CACtD;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
@@ -0,0 +1,58 @@
1
+ import { type ReactNode } from "react";
2
+ import { type BaseProps } from "../../../types/BaseProps";
3
+ export interface RasterDEMSourceProps extends BaseProps {
4
+ /**
5
+ * A string that uniquely identifies the source.
6
+ */
7
+ id?: string;
8
+ /**
9
+ * A URL to a TileJSON configuration file describing the source's contents and
10
+ * other metadata.
11
+ */
12
+ url?: string;
13
+ /**
14
+ * An array of tile URL templates. If multiple endpoints are specified, clients
15
+ * may use any combination of endpoints.
16
+ *
17
+ * @example "https://example.com/dem-tiles/{z}/{x}/{y}.png"
18
+ */
19
+ tiles?: string[];
20
+ /**
21
+ * An unsigned integer that specifies the minimum zoom level at which to display
22
+ * tiles from the source. The value should be between 0 and 22, inclusive, and
23
+ * less than maxzoom, if specified. The default value for this option is 0.
24
+ */
25
+ minzoom?: number;
26
+ /**
27
+ * An unsigned integer that specifies the maximum zoom level at which to display
28
+ * tiles from the source. The value should be between 0 and 22, inclusive, and
29
+ * greater than minzoom, if specified. The default value for this option is 22.
30
+ */
31
+ maxzoom?: number;
32
+ /**
33
+ * Size of the map tiles.
34
+ *
35
+ * @defaultValue 512
36
+ */
37
+ tileSize?: number;
38
+ /**
39
+ * An HTML or literal text string defining the buttons to be displayed in an
40
+ * action sheet when the source is part of a map view's style and the map view's
41
+ * attribution button is pressed.
42
+ */
43
+ attribution?: string;
44
+ /**
45
+ * The encoding formula for the raster DEM tileset.
46
+ *
47
+ * @defaultValue "mapbox"
48
+ */
49
+ encoding?: "mapbox" | "terrarium";
50
+ children?: ReactNode;
51
+ }
52
+ /**
53
+ * RasterDEMSource is a map content source that supplies rasterized digital
54
+ * elevation model (DEM) tiles to be shown on the map. Use it together with a
55
+ * hillshade layer to visualize terrain.
56
+ */
57
+ export declare const RasterDEMSource: import("react").MemoExoticComponent<({ id, ...props }: RasterDEMSourceProps) => import("react/jsx-runtime").JSX.Element>;
58
+ //# sourceMappingURL=RasterDEMSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RasterDEMSource.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/raster-dem-source/RasterDEMSource.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI7C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAG1D,MAAM,WAAW,oBAAqB,SAAQ,SAAS;IACrD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;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,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IAElC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,yDACP,oBAAoB,6CAWxC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { type CodegenTypes, type HostComponent, type ViewProps } from "react-native";
2
+ type NativeDEMEncoding = "mapbox" | "terrarium";
3
+ export interface NativeProps extends ViewProps {
4
+ id: string;
5
+ url?: string;
6
+ tiles?: string[];
7
+ tileSize?: CodegenTypes.WithDefault<CodegenTypes.Int32, 512>;
8
+ minzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
9
+ maxzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
10
+ attribution?: string;
11
+ encoding?: CodegenTypes.WithDefault<NativeDEMEncoding, "mapbox">;
12
+ }
13
+ declare const _default: HostComponent<NativeProps>;
14
+ export default _default;
15
+ //# sourceMappingURL=RasterDEMSourceNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RasterDEMSourceNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,iBAAiB,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEhD,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB,QAAQ,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC7D,OAAO,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,OAAO,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;CAClE;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
@@ -4,11 +4,11 @@ export interface NativeProps extends ViewProps {
4
4
  id: string;
5
5
  url?: string;
6
6
  tiles?: string[];
7
+ tileSize?: CodegenTypes.WithDefault<CodegenTypes.Int32, 512>;
7
8
  minzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
8
9
  maxzoom?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
9
- scheme?: CodegenTypes.WithDefault<NativeScheme, "xyz">;
10
10
  attribution?: string;
11
- tileSize?: CodegenTypes.WithDefault<CodegenTypes.Int32, 512>;
11
+ scheme?: CodegenTypes.WithDefault<NativeScheme, "xyz">;
12
12
  }
13
13
  declare const _default: HostComponent<NativeProps>;
14
14
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"RasterSourceNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/raster-source/RasterSourceNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,YAAY,GAAG,KAAK,GAAG,KAAK,CAAC;AAElC,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB,OAAO,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,OAAO,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,MAAM,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;CAC9D;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
1
+ {"version":3,"file":"RasterSourceNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/raster-source/RasterSourceNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,YAAY,GAAG,KAAK,GAAG,KAAK,CAAC;AAElC,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB,QAAQ,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC7D,OAAO,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,OAAO,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,MAAM,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;CACxD;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
@@ -9,9 +9,10 @@ export { useCurrentPosition } from "./hooks/useCurrentPosition";
9
9
  export { type ImageSourceProps, ImageSource, } from "./components/sources/image-source/ImageSource";
10
10
  export { type GeoJSONSourceRef, type GeoJSONSourceProps, GeoJSONSource, } from "./components/sources/geojson-source/GeoJSONSource";
11
11
  export { type RasterSourceProps, RasterSource, } from "./components/sources/raster-source/RasterSource";
12
+ export { type RasterDEMSourceProps, RasterDEMSource, } from "./components/sources/raster-dem-source/RasterDEMSource";
12
13
  export { type VectorSourceRef, type VectorSourceProps, VectorSource, } from "./components/sources/vector-source/VectorSource";
13
14
  export { Layer, type LayerProps, type SourceLayerProps, type FillLayerProps, type LineLayerProps, type SymbolLayerProps, type CircleLayerProps, type HeatmapLayerProps, type FillExtrusionLayerProps, type RasterLayerProps, type BackgroundLayerProps, } from "./components/layer/Layer";
14
- export type { LayerSpecification, FillLayerSpecification, LineLayerSpecification, SymbolLayerSpecification, CircleLayerSpecification, HeatmapLayerSpecification, FillExtrusionLayerSpecification, RasterLayerSpecification, HillshadeLayerSpecification, BackgroundLayerSpecification, SourceSpecification, VectorSourceSpecification, RasterSourceSpecification, RasterDEMSourceSpecification, GeoJSONSourceSpecification, VideoSourceSpecification, ImageSourceSpecification, FilterSpecification, StyleSpecification, SkySpecification, LightSpecification, TerrainSpecification, ProjectionSpecification, } from "@maplibre/maplibre-gl-style-spec";
15
+ export type { LayerSpecification, BackgroundLayerSpecification, CircleLayerSpecification, ColorReliefLayerSpecification, FillLayerSpecification, FillExtrusionLayerSpecification, HeatmapLayerSpecification, HillshadeLayerSpecification, LineLayerSpecification, RasterLayerSpecification, SymbolLayerSpecification, SourceSpecification, GeoJSONSourceSpecification, ImageSourceSpecification, RasterSourceSpecification, RasterDEMSourceSpecification, VectorSourceSpecification, VideoSourceSpecification, FilterSpecification, StyleSpecification, SkySpecification, LightSpecification, TerrainSpecification, ProjectionSpecification, } from "@maplibre/maplibre-gl-style-spec";
15
16
  export { type ImageSourceWithSdf, type ImageEntry, type ImagesProps, Images, } from "./components/images/Images";
16
17
  export { type NativeMarkerRef, type MarkerEvent, type MarkerProps, type MarkerRef, Marker, } from "./components/annotations/marker/Marker";
17
18
  export { LocationManager, type GeolocationPosition, } from "./modules/location/LocationManager";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,4BAA4B,EACjC,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,MAAM,GACP,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,GAAG,GACJ,MAAM,sBAAsB,CA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AU,GACX,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErD,YAAY,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC"}
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": "11.0.3",
4
+ "version": "11.1.1",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "provenance": true
@@ -131,6 +131,7 @@
131
131
  "MLRNNativeUserLocation": "MLRNNativeUserLocationComponentView",
132
132
  "MLRNPointAnnotation": "MLRNPointAnnotationComponentView",
133
133
  "MLRNRasterSource": "MLRNRasterSourceComponentView",
134
+ "MLRNRasterDEMSource": "MLRNRasterDEMSourceComponentView",
134
135
  "MLRNGeoJSONSource": "MLRNGeoJSONSourceComponentView",
135
136
  "MLRNVectorSource": "MLRNVectorSourceComponentView"
136
137
  }
@@ -164,8 +165,8 @@
164
165
  "devDependencies": {
165
166
  "@expo/config-plugins": "55.0.8",
166
167
  "@react-native-community/cli": "20.1.3",
167
- "@react-native/babel-preset": "0.85.2",
168
- "@react-native/jest-preset": "0.85.2",
168
+ "@react-native/babel-preset": "0.85.3",
169
+ "@react-native/jest-preset": "0.85.3",
169
170
  "@semantic-release/changelog": "6.0.3",
170
171
  "@semantic-release/exec": "7.1.0",
171
172
  "@semantic-release/git": "10.0.1",
@@ -179,7 +180,7 @@
179
180
  "jest": "29.7.0",
180
181
  "prettier": "3.8.3",
181
182
  "react": "19.2.3",
182
- "react-native": "0.85.2",
183
+ "react-native": "0.85.3",
183
184
  "react-native-builder-bob": "0.41.0",
184
185
  "react-test-renderer": "19.2.3",
185
186
  "semantic-release": "25.0.3",
@@ -10,7 +10,19 @@ import type { StyleValue } from "../../utils/StyleValue";
10
10
 
11
11
  export interface NativeProps extends ViewProps {
12
12
  id: string;
13
- layerType: string;
13
+ layerType?: CodegenTypes.WithDefault<
14
+ | "background"
15
+ | "circle"
16
+ | "color-relief"
17
+ | "fill"
18
+ | "fill-extrusion"
19
+ | "heatmap"
20
+ | "hillshade"
21
+ | "line"
22
+ | "raster"
23
+ | "symbol",
24
+ "background"
25
+ >;
14
26
 
15
27
  source?: string;
16
28
  sourceLayer?: string;