ol 10.7.1 → 10.7.2

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 (268) hide show
  1. package/Collection.d.ts +1 -3
  2. package/Collection.d.ts.map +1 -1
  3. package/Feature.d.ts +6 -15
  4. package/Feature.d.ts.map +1 -1
  5. package/Feature.js +3 -6
  6. package/Geolocation.d.ts +1 -3
  7. package/Geolocation.d.ts.map +1 -1
  8. package/ImageTile.d.ts +2 -12
  9. package/ImageTile.d.ts.map +1 -1
  10. package/ImageTile.js +5 -32
  11. package/Map.d.ts +7 -27
  12. package/Map.d.ts.map +1 -1
  13. package/Map.js +3 -29
  14. package/Object.d.ts +18 -15
  15. package/Object.d.ts.map +1 -1
  16. package/Object.js +6 -9
  17. package/Overlay.d.ts +1 -3
  18. package/Overlay.d.ts.map +1 -1
  19. package/VectorRenderTile.d.ts +0 -4
  20. package/VectorRenderTile.d.ts.map +1 -1
  21. package/VectorRenderTile.js +0 -2
  22. package/View.d.ts +1 -40
  23. package/View.d.ts.map +1 -1
  24. package/View.js +0 -94
  25. package/colorlike.js +8 -4
  26. package/control/Control.d.ts +1 -3
  27. package/control/Control.d.ts.map +1 -1
  28. package/control/OverviewMap.d.ts +1 -5
  29. package/control/OverviewMap.d.ts.map +1 -1
  30. package/coordinate.d.ts +0 -8
  31. package/coordinate.d.ts.map +1 -1
  32. package/coordinate.js +1 -31
  33. package/dist/ol.d.ts +0 -24
  34. package/dist/ol.d.ts.map +1 -1
  35. package/dist/ol.js +1 -1
  36. package/dist/ol.js.map +1 -1
  37. package/dom.d.ts +0 -15
  38. package/dom.d.ts.map +1 -1
  39. package/dom.js +0 -6
  40. package/featureloader.d.ts +2 -6
  41. package/featureloader.d.ts.map +1 -1
  42. package/format/EsriJSON.d.ts +1 -3
  43. package/format/EsriJSON.d.ts.map +1 -1
  44. package/format/Feature.d.ts +1 -3
  45. package/format/Feature.d.ts.map +1 -1
  46. package/format/GeoJSON.d.ts +2 -6
  47. package/format/GeoJSON.d.ts.map +1 -1
  48. package/format/JSONFeature.d.ts +1 -3
  49. package/format/JSONFeature.d.ts.map +1 -1
  50. package/format/KML.d.ts +0 -9
  51. package/format/KML.d.ts.map +1 -1
  52. package/format/KML.js +0 -7
  53. package/format/TextFeature.d.ts +1 -3
  54. package/format/TextFeature.d.ts.map +1 -1
  55. package/format/TopoJSON.d.ts +1 -3
  56. package/format/TopoJSON.d.ts.map +1 -1
  57. package/format/WKB.d.ts +1 -3
  58. package/format/WKB.d.ts.map +1 -1
  59. package/format/XMLFeature.d.ts +1 -3
  60. package/format/XMLFeature.d.ts.map +1 -1
  61. package/geom/Geometry.d.ts +1 -3
  62. package/geom/Geometry.d.ts.map +1 -1
  63. package/interaction/DragAndDrop.d.ts +2 -6
  64. package/interaction/DragAndDrop.d.ts.map +1 -1
  65. package/interaction/Draw.d.ts +3 -9
  66. package/interaction/Draw.d.ts.map +1 -1
  67. package/interaction/Interaction.d.ts +1 -3
  68. package/interaction/Interaction.d.ts.map +1 -1
  69. package/interaction/Link.js +2 -2
  70. package/interaction/Modify.d.ts +28 -76
  71. package/interaction/Modify.d.ts.map +1 -1
  72. package/interaction/Modify.js +54 -248
  73. package/interaction/Select.d.ts +18 -10
  74. package/interaction/Select.d.ts.map +1 -1
  75. package/interaction/Select.js +89 -54
  76. package/interaction/Snap.d.ts +12 -18
  77. package/interaction/Snap.d.ts.map +1 -1
  78. package/interaction/Translate.d.ts +2 -6
  79. package/interaction/Translate.d.ts.map +1 -1
  80. package/layer/Base.d.ts +8 -19
  81. package/layer/Base.d.ts.map +1 -1
  82. package/layer/Base.js +3 -6
  83. package/layer/BaseImage.d.ts +1 -3
  84. package/layer/BaseImage.d.ts.map +1 -1
  85. package/layer/BaseTile.d.ts +1 -3
  86. package/layer/BaseTile.d.ts.map +1 -1
  87. package/layer/BaseVector.d.ts +1 -3
  88. package/layer/BaseVector.d.ts.map +1 -1
  89. package/layer/Flow.d.ts +2 -2
  90. package/layer/Graticule.d.ts +1 -5
  91. package/layer/Graticule.d.ts.map +1 -1
  92. package/layer/Group.d.ts +2 -8
  93. package/layer/Group.d.ts.map +1 -1
  94. package/layer/Heatmap.d.ts +2 -23
  95. package/layer/Heatmap.d.ts.map +1 -1
  96. package/layer/Heatmap.js +0 -29
  97. package/layer/Layer.d.ts +8 -17
  98. package/layer/Layer.d.ts.map +1 -1
  99. package/layer/Layer.js +2 -5
  100. package/layer/Tile.d.ts +1 -1
  101. package/layer/Vector.d.ts +2 -2
  102. package/layer/Vector.d.ts.map +1 -1
  103. package/layer/VectorImage.d.ts +2 -2
  104. package/layer/VectorImage.d.ts.map +1 -1
  105. package/layer/VectorTile.d.ts +2 -2
  106. package/layer/VectorTile.d.ts.map +1 -1
  107. package/layer/WebGLPoints.d.ts +1 -3
  108. package/layer/WebGLPoints.d.ts.map +1 -1
  109. package/layer/WebGLTile.d.ts +3 -3
  110. package/layer/WebGLTile.d.ts.map +1 -1
  111. package/layer/WebGLVector.d.ts +2 -4
  112. package/layer/WebGLVector.d.ts.map +1 -1
  113. package/layer/WebGLVectorTile.d.ts +2 -2
  114. package/layer/WebGLVectorTile.d.ts.map +1 -1
  115. package/package.json +3 -4
  116. package/proj/proj4.d.ts +6 -43
  117. package/proj/proj4.d.ts.map +1 -1
  118. package/proj/proj4.js +28 -89
  119. package/proj.js +2 -2
  120. package/render/canvas/Builder.d.ts.map +1 -1
  121. package/render/canvas/Builder.js +1 -8
  122. package/render/canvas/Executor.d.ts.map +1 -1
  123. package/render/canvas/Executor.js +3 -49
  124. package/render/canvas/ExecutorGroup.d.ts.map +1 -1
  125. package/render/canvas/ExecutorGroup.js +5 -41
  126. package/render/canvas/Immediate.d.ts +0 -2
  127. package/render/canvas/Immediate.d.ts.map +1 -1
  128. package/render/canvas/Immediate.js +4 -28
  129. package/render/canvas/LineStringBuilder.d.ts +0 -1
  130. package/render/canvas/LineStringBuilder.d.ts.map +1 -1
  131. package/render/canvas/LineStringBuilder.js +5 -15
  132. package/render/canvas/PolygonBuilder.d.ts +0 -2
  133. package/render/canvas/PolygonBuilder.d.ts.map +1 -1
  134. package/render/canvas/PolygonBuilder.js +6 -72
  135. package/render/canvas/style.d.ts.map +1 -1
  136. package/render/canvas/style.js +37 -118
  137. package/render/canvas.d.ts +2 -22
  138. package/render/canvas.d.ts.map +1 -1
  139. package/render/canvas.js +0 -9
  140. package/render/webgl/bufferUtil.d.ts.map +1 -1
  141. package/render/webgl/bufferUtil.js +31 -1
  142. package/renderer/Composite.js +4 -4
  143. package/renderer/canvas/ImageLayer.d.ts +1 -6
  144. package/renderer/canvas/ImageLayer.d.ts.map +1 -1
  145. package/renderer/canvas/ImageLayer.js +0 -14
  146. package/renderer/canvas/TileLayer.d.ts +1 -1
  147. package/renderer/canvas/VectorLayer.d.ts +1 -8
  148. package/renderer/canvas/VectorLayer.d.ts.map +1 -1
  149. package/renderer/canvas/VectorLayer.js +14 -55
  150. package/renderer/canvas/VectorTileLayer.d.ts +1 -1
  151. package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
  152. package/renderer/canvas/VectorTileLayer.js +0 -2
  153. package/renderer/webgl/TileLayerBase.js +1 -1
  154. package/reproj/Tile.d.ts +2 -7
  155. package/reproj/Tile.d.ts.map +1 -1
  156. package/reproj/Tile.js +6 -12
  157. package/source/Cluster.d.ts +2 -8
  158. package/source/Cluster.d.ts.map +1 -1
  159. package/source/DataTile.d.ts +0 -15
  160. package/source/DataTile.d.ts.map +1 -1
  161. package/source/DataTile.js +0 -9
  162. package/source/GeoTIFF.d.ts +2 -7
  163. package/source/GeoTIFF.d.ts.map +1 -1
  164. package/source/GeoTIFF.js +10 -15
  165. package/source/ImageArcGISRest.d.ts +0 -10
  166. package/source/ImageArcGISRest.d.ts.map +1 -1
  167. package/source/ImageArcGISRest.js +0 -8
  168. package/source/ImageMapGuide.d.ts +0 -10
  169. package/source/ImageMapGuide.d.ts.map +1 -1
  170. package/source/ImageMapGuide.js +0 -8
  171. package/source/ImageStatic.d.ts +0 -5
  172. package/source/ImageStatic.d.ts.map +1 -1
  173. package/source/ImageStatic.js +0 -2
  174. package/source/ImageTile.d.ts +1 -5
  175. package/source/ImageTile.d.ts.map +1 -1
  176. package/source/ImageTile.js +0 -5
  177. package/source/ImageWMS.d.ts +0 -10
  178. package/source/ImageWMS.d.ts.map +1 -1
  179. package/source/ImageWMS.js +0 -10
  180. package/source/OGCMapTile.d.ts +0 -5
  181. package/source/OGCMapTile.d.ts.map +1 -1
  182. package/source/OGCMapTile.js +0 -2
  183. package/source/OSM.d.ts +0 -5
  184. package/source/OSM.d.ts.map +1 -1
  185. package/source/OSM.js +19 -5
  186. package/source/SentinelHub.d.ts +0 -1
  187. package/source/SentinelHub.d.ts.map +1 -1
  188. package/source/SentinelHub.js +0 -5
  189. package/source/Source.d.ts +1 -3
  190. package/source/Source.d.ts.map +1 -1
  191. package/source/TileArcGISRest.d.ts +1 -6
  192. package/source/TileArcGISRest.d.ts.map +1 -1
  193. package/source/TileArcGISRest.js +0 -2
  194. package/source/TileDebug.d.ts +1 -1
  195. package/source/TileImage.d.ts +0 -10
  196. package/source/TileImage.d.ts.map +1 -1
  197. package/source/TileImage.js +3 -16
  198. package/source/TileWMS.d.ts +1 -1
  199. package/source/UrlTile.d.ts +1 -1
  200. package/source/Vector.d.ts +8 -18
  201. package/source/Vector.d.ts.map +1 -1
  202. package/source/Vector.js +3 -3
  203. package/source/WMTS.d.ts +0 -5
  204. package/source/WMTS.d.ts.map +1 -1
  205. package/source/WMTS.js +0 -2
  206. package/source/XYZ.d.ts +0 -5
  207. package/source/XYZ.d.ts.map +1 -1
  208. package/source/XYZ.js +0 -2
  209. package/source/Zoomify.d.ts +2 -7
  210. package/source/Zoomify.d.ts.map +1 -1
  211. package/source/Zoomify.js +3 -5
  212. package/source/arcgisRest.d.ts +0 -5
  213. package/source/arcgisRest.d.ts.map +1 -1
  214. package/source/arcgisRest.js +0 -5
  215. package/source/mapguide.d.ts +0 -4
  216. package/source/mapguide.d.ts.map +1 -1
  217. package/source/mapguide.js +0 -5
  218. package/source/mapserver.d.ts +1 -5
  219. package/source/mapserver.d.ts.map +1 -1
  220. package/source/mapserver.js +0 -4
  221. package/source/ogcTileUtil.d.ts +12 -20
  222. package/source/ogcTileUtil.d.ts.map +1 -1
  223. package/source/ogcTileUtil.js +15 -27
  224. package/source/static.d.ts +0 -5
  225. package/source/static.d.ts.map +1 -1
  226. package/source/static.js +0 -4
  227. package/source/wms.d.ts +0 -5
  228. package/source/wms.d.ts.map +1 -1
  229. package/source/wms.js +0 -5
  230. package/style/Circle.d.ts +14 -0
  231. package/style/Circle.d.ts.map +1 -1
  232. package/style/Circle.js +11 -0
  233. package/style/Fill.js +1 -1
  234. package/style/Icon.d.ts +0 -19
  235. package/style/Icon.d.ts.map +1 -1
  236. package/style/Icon.js +2 -55
  237. package/style/IconImage.d.ts +5 -14
  238. package/style/IconImage.d.ts.map +1 -1
  239. package/style/IconImage.js +18 -28
  240. package/style/IconImageCache.d.ts +8 -4
  241. package/style/IconImageCache.d.ts.map +1 -1
  242. package/style/IconImageCache.js +13 -11
  243. package/style/RegularShape.d.ts +0 -12
  244. package/style/RegularShape.d.ts.map +1 -1
  245. package/style/RegularShape.js +4 -36
  246. package/style/Stroke.d.ts +0 -25
  247. package/style/Stroke.d.ts.map +1 -1
  248. package/style/Stroke.js +0 -28
  249. package/style/Style.d.ts +1 -1
  250. package/style/flat.d.ts +2 -2
  251. package/style/flat.js +1 -1
  252. package/tilegrid/TileGrid.d.ts +0 -5
  253. package/tilegrid/TileGrid.d.ts.map +1 -1
  254. package/tilegrid/TileGrid.js +0 -8
  255. package/util.js +1 -1
  256. package/worker/webgl.js +1 -1
  257. package/geom/flat/lineoffset.d.ts +0 -45
  258. package/geom/flat/lineoffset.d.ts.map +0 -1
  259. package/geom/flat/lineoffset.js +0 -173
  260. package/source/GeoZarr.d.ts +0 -163
  261. package/source/GeoZarr.d.ts.map +0 -1
  262. package/source/GeoZarr.js +0 -472
  263. package/source/OGCMap.d.ts +0 -180
  264. package/source/OGCMap.d.ts.map +0 -1
  265. package/source/OGCMap.js +0 -227
  266. package/source/ogcMapUtil.d.ts +0 -88
  267. package/source/ogcMapUtil.d.ts.map +0 -1
  268. package/source/ogcMapUtil.js +0 -121
@@ -1,173 +0,0 @@
1
- import {angleBetween} from '../../coordinate.js';
2
-
3
- /**
4
- * Offsets a line string to the left / right along its segments direction.
5
- * Offset is applied to each segment of the line in the direciton of the segment normal (positive offset goes "right" relative to the line direction).
6
- * For very sharp angles between segments, the function falls back to offsetting along the segment normal direction to avoid excessively long miters.
7
- *
8
- * Coordinates and the offset should be in the same units — either pixels or the same spatial reference system as the input line coordinates.
9
- *
10
- * @param {Array<number>} flatCoordinates Flat coordinates.
11
- * @param {number} stride Stride.
12
- * @param {number} offset Offset distance along the segment normal direction.
13
- * Positive values offset to the right relative to the direction of the line.
14
- * Negative values offset to the left.
15
- * @param {boolean} isClosedRing If coordinates build a closed circle (in this the first and the last coordinate offsets will consider previous / next ring coordinate)
16
- * @param {Array<number>} [dest] Destination coordinate array. If not provided a new one will be created
17
- * @param {number} [destinationStride] Stride of destination coordinates. If unspecified, assumed to be same as the source coordinates stride.
18
- * @return {Array<number>} Result flat coordinates of the offset line.
19
- */
20
- export function offsetLineString(
21
- flatCoordinates,
22
- stride,
23
- offset,
24
- isClosedRing,
25
- dest,
26
- destinationStride,
27
- ) {
28
- dest = dest ?? [];
29
- destinationStride = destinationStride ?? stride;
30
-
31
- const firstPointX = flatCoordinates[0];
32
- const firstPointY = flatCoordinates[1];
33
- const secondToLastPointX = flatCoordinates[flatCoordinates.length - 4];
34
- const secondToLastPointY = flatCoordinates[flatCoordinates.length - 3];
35
- let x, y, prevX, prevY, nextX, nextY, offsetX, offsetY;
36
-
37
- let i = 0;
38
- for (let j = 0; j < flatCoordinates.length; j += stride) {
39
- // 1. Detect previous and next coordinates of a current vertex
40
- prevX = x;
41
- prevY = y;
42
- nextX = undefined;
43
- nextY = undefined;
44
- if (j + stride < flatCoordinates.length) {
45
- nextX = flatCoordinates[j + stride];
46
- nextY = flatCoordinates[j + stride + 1];
47
- }
48
- // First coordinate of a closed ring -> previous coordinate is the second to last one
49
- if (isClosedRing && j === 0) {
50
- prevX = secondToLastPointX;
51
- prevY = secondToLastPointY;
52
- }
53
- // Last coordinate of a closed ring -> next coordinate is the first vertex of a line string
54
- if (isClosedRing && j === flatCoordinates.length - 2) {
55
- // last coordinate
56
- nextX = firstPointX;
57
- nextY = firstPointY;
58
- }
59
-
60
- // 2. Current vertex to offset
61
- x = flatCoordinates[j];
62
- y = flatCoordinates[j + 1];
63
-
64
- // 3. Offset the vertex
65
- [offsetX, offsetY] = offsetLineVertex(
66
- x,
67
- y,
68
- prevX,
69
- prevY,
70
- nextX,
71
- nextY,
72
- offset,
73
- );
74
- dest[i++] = offsetX;
75
- dest[i++] = offsetY;
76
-
77
- // 4. Copy over other dimension values if any
78
- for (let k = 2; k < destinationStride; k++) {
79
- dest[i++] = flatCoordinates[j + k];
80
- }
81
- }
82
-
83
- if (dest.length != i) {
84
- dest.length = i;
85
- }
86
- return dest;
87
- }
88
-
89
- /**
90
- * Computes the offset of a single vertex of a line string.
91
- *
92
- * The function calculates a new vertex coordinate offset along the normal/miter direction of the line at this vertex.
93
- * Offset is applied along the segment normal (positive offset goes "right" relative to the line direction).
94
- * It handles first and last vertices (caps) as well as joins between two segments (mitering).
95
- * For very sharp angles, the function falls back to offsetting along the segment normal direction to avoid excessively long miters.
96
- *
97
- * Coordinates and the offset should be in the same units — either pixels or the same spatial reference system as the input line coordinates.
98
- *
99
- * @param {number} x Vertex x-coordinate.
100
- * @param {number} y Vertex y-coordinate.
101
- * @param {number|undefined} prevX Previous vertex x-coordinate.
102
- * Pass undefined if computing the offset for the first vertex (no previous vertex).
103
- * @param {number|undefined} prevY Previous vertex y-coordinate.
104
- * Pass undefined if computing the offset for the first vertex (no previous vertex).
105
- * @param {number|undefined} nextX Next vertex x-coordinate.
106
- * Pass undefined if computing the offset for the last vertex (no next vertex).
107
- * @param {number|undefined} nextY Next vertex y-coordinate.
108
- * Pass undefined if computing the offset for the last vertex (no next vertex).
109
- * @param {number} offset Offset distance along the segment normal direction.
110
- * Positive values offset to the right relative to the direction from previous to next vertex.
111
- * Negative values offset to the left.
112
- * @return {import("../../coordinate.js").Coordinate} Offset vertex coordinate as `[x, y]`.
113
- */
114
- export function offsetLineVertex(x, y, prevX, prevY, nextX, nextY, offset) {
115
- // Compute segment direction
116
- let nx, ny;
117
- if (prevX !== undefined && prevY !== undefined) {
118
- nx = x - prevX;
119
- ny = y - prevY;
120
- } else if (nextX !== undefined && nextY !== undefined) {
121
- nx = nextX - x;
122
- ny = nextY - y;
123
- } else {
124
- // no next, no previous point given -> just assume some default (horizontal) direction
125
- nx = 1;
126
- ny = 0;
127
- }
128
-
129
- // Normalize -> tangent
130
- const len = Math.hypot(nx, ny);
131
- const tx = nx / len;
132
- const ty = ny / len;
133
-
134
- // Rotate tangent 90° -> normal
135
- nx = -ty;
136
- ny = tx;
137
-
138
- // First / last vertex -> offset the point in the direction of the normal vector
139
- if (prevX === undefined || prevY === undefined) {
140
- return [x + nx * offset, y + ny * offset];
141
- }
142
- if (nextX === undefined || nextY === undefined) {
143
- return [x + nx * offset, y + ny * offset];
144
- }
145
-
146
- // Compute join angle - angle between 2 segments of the vertex.
147
- const joinAngle = angleBetween([x, y], [prevX, prevY], [nextX, nextY]);
148
-
149
- // Avoid huge or infinite miter joins for very sharp angles, offset in the segment direction in this case.
150
- if (Math.cos(joinAngle) > 0.998) {
151
- return [x + tx * offset, y + ty * offset];
152
- }
153
-
154
- // Compute join offset direction.
155
- // We rotate the normal vector by half of the join angle.
156
- // This gives the direction of the miter at the vertex.
157
- const cos = Math.cos(joinAngle / 2);
158
- const sin = Math.sin(joinAngle / 2);
159
-
160
- // Rotate the normal vector (nx, ny) by half of the join angle.
161
- // bx/by = bisector direction before normalization
162
- const bx = sin * nx + cos * ny;
163
- const by = -cos * nx + sin * ny;
164
-
165
- // Scale the bisector so that moving along it preserves the correct offset distance.
166
- // Dividing by sin(half of angle) converts the bisector into the true miter vector.
167
- // (This expands the miter for sharp angles and shortens it for wide ones.)
168
- const dx = bx * (1 / sin);
169
- const dy = by * (1 / sin);
170
-
171
- // Offset final vertex along miter direction
172
- return [x + dx * offset, y + dy * offset];
173
- }
@@ -1,163 +0,0 @@
1
- /**
2
- * @typedef {'nearest'|'linear'} ResampleMethod
3
- */
4
- /**
5
- * @typedef {Object} Options
6
- * @property {string} url The Zarr URL.
7
- * @property {string} group The group with arrays to render.
8
- * @property {Array<string>} bands The band names to render.
9
- * @property {import("../proj.js").ProjectionLike} [projection] Source projection. If not provided, the GeoTIFF metadata
10
- * will be read for projection information.
11
- * @property {number} [transition=250] Duration of the opacity transition for rendering.
12
- * To disable the opacity transition, pass `transition: 0`.
13
- * @property {boolean} [wrapX=false] Render tiles beyond the tile grid extent.
14
- * @property {ResampleMethod} [resample='nearest'] Resamplilng method if bands are not available for all multi-scale levels.
15
- */
16
- export default class GeoZarr extends DataTileSource<import("../DataTile.js").default> {
17
- /**
18
- * @param {Options} options The options.
19
- */
20
- constructor(options: Options);
21
- /**
22
- * @type {string}
23
- */
24
- url_: string;
25
- /**
26
- * @type {string}
27
- */
28
- group_: string;
29
- /**
30
- * @type {Error|null}
31
- */
32
- error_: Error | null;
33
- /**
34
- * @type {import('zarrita').Group<any>}
35
- */
36
- root_: import("zarrita").Group<any>;
37
- /**
38
- * @type {any|null}
39
- */
40
- consolidatedMetadata_: any | null;
41
- /**
42
- * @type {Array<string>}
43
- */
44
- bands_: Array<string>;
45
- /**
46
- * @type {Object<string, Array<string>> | null}
47
- */
48
- bandsByLevel_: {
49
- [x: string]: Array<string>;
50
- } | null;
51
- /**
52
- * @type {number|undefined}
53
- */
54
- fillValue_: number | undefined;
55
- /**
56
- * @type {ResampleMethod}
57
- */
58
- resampleMethod_: ResampleMethod;
59
- /**
60
- * @type {import("../tilegrid/WMTS.js").default}
61
- */
62
- tileGrid: import("../tilegrid/WMTS.js").default;
63
- configure_(): Promise<void>;
64
- /**
65
- * @param {number} z The z tile index.
66
- * @param {number} x The x tile index.
67
- * @param {number} y The y tile index.
68
- * @param {import('./DataTile.js').LoaderOptions} options The loader options.
69
- * @return {Promise} The composed tile data.
70
- * @private
71
- */
72
- private loadTile_;
73
- }
74
- export type DatasetAttributes = {
75
- /**
76
- * The multiscales attribute.
77
- */
78
- multiscales: Multiscales;
79
- /**
80
- * The zarr conventions attribute.
81
- */
82
- zarr_conventions: Array<{
83
- uuid: string;
84
- }>;
85
- };
86
- export type Multiscales = {
87
- /**
88
- * The layout.
89
- */
90
- layout: any;
91
- };
92
- export type LegacyDatasetAttributes = {
93
- /**
94
- * The multiscales attribute.
95
- */
96
- multiscales: LegacyMultiscales;
97
- };
98
- export type LegacyMultiscales = {
99
- /**
100
- * The tile matrix limits.
101
- */
102
- tile_matrix_limits: any;
103
- /**
104
- * The tile matrix set.
105
- */
106
- tile_matrix_set: any;
107
- };
108
- export type TileGridInfo = {
109
- /**
110
- * The tile grid.
111
- */
112
- tileGrid: WMTSTileGrid;
113
- /**
114
- * The projection.
115
- */
116
- projection: import("../proj/Projection.js").default;
117
- /**
118
- * Available bands by level.
119
- */
120
- bandsByLevel?: {
121
- [x: string]: string[];
122
- } | undefined;
123
- /**
124
- * The fill value.
125
- */
126
- fillValue?: number | undefined;
127
- };
128
- export type ResampleMethod = "nearest" | "linear";
129
- export type Options = {
130
- /**
131
- * The Zarr URL.
132
- */
133
- url: string;
134
- /**
135
- * The group with arrays to render.
136
- */
137
- group: string;
138
- /**
139
- * The band names to render.
140
- */
141
- bands: Array<string>;
142
- /**
143
- * Source projection. If not provided, the GeoTIFF metadata
144
- * will be read for projection information.
145
- */
146
- projection?: import("../proj.js").ProjectionLike;
147
- /**
148
- * Duration of the opacity transition for rendering.
149
- * To disable the opacity transition, pass `transition: 0`.
150
- */
151
- transition?: number | undefined;
152
- /**
153
- * Render tiles beyond the tile grid extent.
154
- */
155
- wrapX?: boolean | undefined;
156
- /**
157
- * Resamplilng method if bands are not available for all multi-scale levels.
158
- */
159
- resample?: ResampleMethod | undefined;
160
- };
161
- import DataTileSource from './DataTile.js';
162
- import WMTSTileGrid from '../tilegrid/WMTS.js';
163
- //# sourceMappingURL=GeoZarr.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GeoZarr.d.ts","sourceRoot":"","sources":["GeoZarr.js"],"names":[],"mappings":"AAkBA;;GAEG;AAEH;;;;;;;;;;;GAWG;AAEH;IACE;;OAEG;IACH,qBAFW,OAAO,EA4EjB;IAjEC;;OAEG;IACH,MAFU,MAAM,CAEO;IAEvB;;OAEG;IACH,QAFU,MAAM,CAEW;IAE3B;;OAEG;IACH,QAFU,KAAK,GAAC,IAAI,CAEF;IAElB;;OAEG;IACH,OAFU,OAAO,SAAS,EAAE,KAAK,CAAC,GAAG,CAAC,CAErB;IAEjB;;OAEG;IACH,uBAFU,GAAG,GAAC,IAAI,CAEe;IAEjC;;OAEG;IACH,QAFU,KAAK,CAAC,MAAM,CAAC,CAEI;IAE3B;;OAEG;IACH,eAFU;YAAO,MAAM,GAAE,KAAK,CAAC,MAAM,CAAC;KAAC,GAAG,IAAI,CAErB;IAEzB;;OAEG;IACH,YAFU,MAAM,GAAC,SAAS,CAEX;IAEf;;OAEG;IACH,iBAFU,cAAc,CAE2B;IASnD;;OAEG;IACH,UAFU,OAAO,qBAAqB,EAAE,OAAO,CAElC;IAYf,4BAmEC;IAED;;;;;;;OAOG;IACH,kBAkEC;CACF;;;;;iBAIa,WAAW;;;;sBACX,KAAK,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC;;;;;;;;;;;;iBAUrB,iBAAiB;;;;;;wBAKjB,GAAG;;;;qBACH,GAAG;;;;;;cAKH,YAAY;;;;gBACZ,OAAO,uBAAuB,EAAE,OAAO;;;;;;;;;;;;6BA3QxC,SAAS,GAAC,QAAQ;;;;;SAKjB,MAAM;;;;WACN,MAAM;;;;WACN,KAAK,CAAC,MAAM,CAAC;;;;;iBACb,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;2BAlBtB,eAAe;yBADjB,qBAAqB"}