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.
- package/Collection.d.ts +1 -3
- package/Collection.d.ts.map +1 -1
- package/Feature.d.ts +6 -15
- package/Feature.d.ts.map +1 -1
- package/Feature.js +3 -6
- package/Geolocation.d.ts +1 -3
- package/Geolocation.d.ts.map +1 -1
- package/ImageTile.d.ts +2 -12
- package/ImageTile.d.ts.map +1 -1
- package/ImageTile.js +5 -32
- package/Map.d.ts +7 -27
- package/Map.d.ts.map +1 -1
- package/Map.js +3 -29
- package/Object.d.ts +18 -15
- package/Object.d.ts.map +1 -1
- package/Object.js +6 -9
- package/Overlay.d.ts +1 -3
- package/Overlay.d.ts.map +1 -1
- package/VectorRenderTile.d.ts +0 -4
- package/VectorRenderTile.d.ts.map +1 -1
- package/VectorRenderTile.js +0 -2
- package/View.d.ts +1 -40
- package/View.d.ts.map +1 -1
- package/View.js +0 -94
- package/colorlike.js +8 -4
- package/control/Control.d.ts +1 -3
- package/control/Control.d.ts.map +1 -1
- package/control/OverviewMap.d.ts +1 -5
- package/control/OverviewMap.d.ts.map +1 -1
- package/coordinate.d.ts +0 -8
- package/coordinate.d.ts.map +1 -1
- package/coordinate.js +1 -31
- package/dist/ol.d.ts +0 -24
- package/dist/ol.d.ts.map +1 -1
- package/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/dom.d.ts +0 -15
- package/dom.d.ts.map +1 -1
- package/dom.js +0 -6
- package/featureloader.d.ts +2 -6
- package/featureloader.d.ts.map +1 -1
- package/format/EsriJSON.d.ts +1 -3
- package/format/EsriJSON.d.ts.map +1 -1
- package/format/Feature.d.ts +1 -3
- package/format/Feature.d.ts.map +1 -1
- package/format/GeoJSON.d.ts +2 -6
- package/format/GeoJSON.d.ts.map +1 -1
- package/format/JSONFeature.d.ts +1 -3
- package/format/JSONFeature.d.ts.map +1 -1
- package/format/KML.d.ts +0 -9
- package/format/KML.d.ts.map +1 -1
- package/format/KML.js +0 -7
- package/format/TextFeature.d.ts +1 -3
- package/format/TextFeature.d.ts.map +1 -1
- package/format/TopoJSON.d.ts +1 -3
- package/format/TopoJSON.d.ts.map +1 -1
- package/format/WKB.d.ts +1 -3
- package/format/WKB.d.ts.map +1 -1
- package/format/XMLFeature.d.ts +1 -3
- package/format/XMLFeature.d.ts.map +1 -1
- package/geom/Geometry.d.ts +1 -3
- package/geom/Geometry.d.ts.map +1 -1
- package/interaction/DragAndDrop.d.ts +2 -6
- package/interaction/DragAndDrop.d.ts.map +1 -1
- package/interaction/Draw.d.ts +3 -9
- package/interaction/Draw.d.ts.map +1 -1
- package/interaction/Interaction.d.ts +1 -3
- package/interaction/Interaction.d.ts.map +1 -1
- package/interaction/Link.js +2 -2
- package/interaction/Modify.d.ts +28 -76
- package/interaction/Modify.d.ts.map +1 -1
- package/interaction/Modify.js +54 -248
- package/interaction/Select.d.ts +18 -10
- package/interaction/Select.d.ts.map +1 -1
- package/interaction/Select.js +89 -54
- package/interaction/Snap.d.ts +12 -18
- package/interaction/Snap.d.ts.map +1 -1
- package/interaction/Translate.d.ts +2 -6
- package/interaction/Translate.d.ts.map +1 -1
- package/layer/Base.d.ts +8 -19
- package/layer/Base.d.ts.map +1 -1
- package/layer/Base.js +3 -6
- package/layer/BaseImage.d.ts +1 -3
- package/layer/BaseImage.d.ts.map +1 -1
- package/layer/BaseTile.d.ts +1 -3
- package/layer/BaseTile.d.ts.map +1 -1
- package/layer/BaseVector.d.ts +1 -3
- package/layer/BaseVector.d.ts.map +1 -1
- package/layer/Flow.d.ts +2 -2
- package/layer/Graticule.d.ts +1 -5
- package/layer/Graticule.d.ts.map +1 -1
- package/layer/Group.d.ts +2 -8
- package/layer/Group.d.ts.map +1 -1
- package/layer/Heatmap.d.ts +2 -23
- package/layer/Heatmap.d.ts.map +1 -1
- package/layer/Heatmap.js +0 -29
- package/layer/Layer.d.ts +8 -17
- package/layer/Layer.d.ts.map +1 -1
- package/layer/Layer.js +2 -5
- package/layer/Tile.d.ts +1 -1
- package/layer/Vector.d.ts +2 -2
- package/layer/Vector.d.ts.map +1 -1
- package/layer/VectorImage.d.ts +2 -2
- package/layer/VectorImage.d.ts.map +1 -1
- package/layer/VectorTile.d.ts +2 -2
- package/layer/VectorTile.d.ts.map +1 -1
- package/layer/WebGLPoints.d.ts +1 -3
- package/layer/WebGLPoints.d.ts.map +1 -1
- package/layer/WebGLTile.d.ts +3 -3
- package/layer/WebGLTile.d.ts.map +1 -1
- package/layer/WebGLVector.d.ts +2 -4
- package/layer/WebGLVector.d.ts.map +1 -1
- package/layer/WebGLVectorTile.d.ts +2 -2
- package/layer/WebGLVectorTile.d.ts.map +1 -1
- package/package.json +3 -4
- package/proj/proj4.d.ts +6 -43
- package/proj/proj4.d.ts.map +1 -1
- package/proj/proj4.js +28 -89
- package/proj.js +2 -2
- package/render/canvas/Builder.d.ts.map +1 -1
- package/render/canvas/Builder.js +1 -8
- package/render/canvas/Executor.d.ts.map +1 -1
- package/render/canvas/Executor.js +3 -49
- package/render/canvas/ExecutorGroup.d.ts.map +1 -1
- package/render/canvas/ExecutorGroup.js +5 -41
- package/render/canvas/Immediate.d.ts +0 -2
- package/render/canvas/Immediate.d.ts.map +1 -1
- package/render/canvas/Immediate.js +4 -28
- package/render/canvas/LineStringBuilder.d.ts +0 -1
- package/render/canvas/LineStringBuilder.d.ts.map +1 -1
- package/render/canvas/LineStringBuilder.js +5 -15
- package/render/canvas/PolygonBuilder.d.ts +0 -2
- package/render/canvas/PolygonBuilder.d.ts.map +1 -1
- package/render/canvas/PolygonBuilder.js +6 -72
- package/render/canvas/style.d.ts.map +1 -1
- package/render/canvas/style.js +37 -118
- package/render/canvas.d.ts +2 -22
- package/render/canvas.d.ts.map +1 -1
- package/render/canvas.js +0 -9
- package/render/webgl/bufferUtil.d.ts.map +1 -1
- package/render/webgl/bufferUtil.js +31 -1
- package/renderer/Composite.js +4 -4
- package/renderer/canvas/ImageLayer.d.ts +1 -6
- package/renderer/canvas/ImageLayer.d.ts.map +1 -1
- package/renderer/canvas/ImageLayer.js +0 -14
- package/renderer/canvas/TileLayer.d.ts +1 -1
- package/renderer/canvas/VectorLayer.d.ts +1 -8
- package/renderer/canvas/VectorLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorLayer.js +14 -55
- package/renderer/canvas/VectorTileLayer.d.ts +1 -1
- package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorTileLayer.js +0 -2
- package/renderer/webgl/TileLayerBase.js +1 -1
- package/reproj/Tile.d.ts +2 -7
- package/reproj/Tile.d.ts.map +1 -1
- package/reproj/Tile.js +6 -12
- package/source/Cluster.d.ts +2 -8
- package/source/Cluster.d.ts.map +1 -1
- package/source/DataTile.d.ts +0 -15
- package/source/DataTile.d.ts.map +1 -1
- package/source/DataTile.js +0 -9
- package/source/GeoTIFF.d.ts +2 -7
- package/source/GeoTIFF.d.ts.map +1 -1
- package/source/GeoTIFF.js +10 -15
- package/source/ImageArcGISRest.d.ts +0 -10
- package/source/ImageArcGISRest.d.ts.map +1 -1
- package/source/ImageArcGISRest.js +0 -8
- package/source/ImageMapGuide.d.ts +0 -10
- package/source/ImageMapGuide.d.ts.map +1 -1
- package/source/ImageMapGuide.js +0 -8
- package/source/ImageStatic.d.ts +0 -5
- package/source/ImageStatic.d.ts.map +1 -1
- package/source/ImageStatic.js +0 -2
- package/source/ImageTile.d.ts +1 -5
- package/source/ImageTile.d.ts.map +1 -1
- package/source/ImageTile.js +0 -5
- package/source/ImageWMS.d.ts +0 -10
- package/source/ImageWMS.d.ts.map +1 -1
- package/source/ImageWMS.js +0 -10
- package/source/OGCMapTile.d.ts +0 -5
- package/source/OGCMapTile.d.ts.map +1 -1
- package/source/OGCMapTile.js +0 -2
- package/source/OSM.d.ts +0 -5
- package/source/OSM.d.ts.map +1 -1
- package/source/OSM.js +19 -5
- package/source/SentinelHub.d.ts +0 -1
- package/source/SentinelHub.d.ts.map +1 -1
- package/source/SentinelHub.js +0 -5
- package/source/Source.d.ts +1 -3
- package/source/Source.d.ts.map +1 -1
- package/source/TileArcGISRest.d.ts +1 -6
- package/source/TileArcGISRest.d.ts.map +1 -1
- package/source/TileArcGISRest.js +0 -2
- package/source/TileDebug.d.ts +1 -1
- package/source/TileImage.d.ts +0 -10
- package/source/TileImage.d.ts.map +1 -1
- package/source/TileImage.js +3 -16
- package/source/TileWMS.d.ts +1 -1
- package/source/UrlTile.d.ts +1 -1
- package/source/Vector.d.ts +8 -18
- package/source/Vector.d.ts.map +1 -1
- package/source/Vector.js +3 -3
- package/source/WMTS.d.ts +0 -5
- package/source/WMTS.d.ts.map +1 -1
- package/source/WMTS.js +0 -2
- package/source/XYZ.d.ts +0 -5
- package/source/XYZ.d.ts.map +1 -1
- package/source/XYZ.js +0 -2
- package/source/Zoomify.d.ts +2 -7
- package/source/Zoomify.d.ts.map +1 -1
- package/source/Zoomify.js +3 -5
- package/source/arcgisRest.d.ts +0 -5
- package/source/arcgisRest.d.ts.map +1 -1
- package/source/arcgisRest.js +0 -5
- package/source/mapguide.d.ts +0 -4
- package/source/mapguide.d.ts.map +1 -1
- package/source/mapguide.js +0 -5
- package/source/mapserver.d.ts +1 -5
- package/source/mapserver.d.ts.map +1 -1
- package/source/mapserver.js +0 -4
- package/source/ogcTileUtil.d.ts +12 -20
- package/source/ogcTileUtil.d.ts.map +1 -1
- package/source/ogcTileUtil.js +15 -27
- package/source/static.d.ts +0 -5
- package/source/static.d.ts.map +1 -1
- package/source/static.js +0 -4
- package/source/wms.d.ts +0 -5
- package/source/wms.d.ts.map +1 -1
- package/source/wms.js +0 -5
- package/style/Circle.d.ts +14 -0
- package/style/Circle.d.ts.map +1 -1
- package/style/Circle.js +11 -0
- package/style/Fill.js +1 -1
- package/style/Icon.d.ts +0 -19
- package/style/Icon.d.ts.map +1 -1
- package/style/Icon.js +2 -55
- package/style/IconImage.d.ts +5 -14
- package/style/IconImage.d.ts.map +1 -1
- package/style/IconImage.js +18 -28
- package/style/IconImageCache.d.ts +8 -4
- package/style/IconImageCache.d.ts.map +1 -1
- package/style/IconImageCache.js +13 -11
- package/style/RegularShape.d.ts +0 -12
- package/style/RegularShape.d.ts.map +1 -1
- package/style/RegularShape.js +4 -36
- package/style/Stroke.d.ts +0 -25
- package/style/Stroke.d.ts.map +1 -1
- package/style/Stroke.js +0 -28
- package/style/Style.d.ts +1 -1
- package/style/flat.d.ts +2 -2
- package/style/flat.js +1 -1
- package/tilegrid/TileGrid.d.ts +0 -5
- package/tilegrid/TileGrid.d.ts.map +1 -1
- package/tilegrid/TileGrid.js +0 -8
- package/util.js +1 -1
- package/worker/webgl.js +1 -1
- package/geom/flat/lineoffset.d.ts +0 -45
- package/geom/flat/lineoffset.d.ts.map +0 -1
- package/geom/flat/lineoffset.js +0 -173
- package/source/GeoZarr.d.ts +0 -163
- package/source/GeoZarr.d.ts.map +0 -1
- package/source/GeoZarr.js +0 -472
- package/source/OGCMap.d.ts +0 -180
- package/source/OGCMap.d.ts.map +0 -1
- package/source/OGCMap.js +0 -227
- package/source/ogcMapUtil.d.ts +0 -88
- package/source/ogcMapUtil.d.ts.map +0 -1
- package/source/ogcMapUtil.js +0 -121
package/geom/flat/lineoffset.js
DELETED
|
@@ -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
|
-
}
|
package/source/GeoZarr.d.ts
DELETED
|
@@ -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
|
package/source/GeoZarr.d.ts.map
DELETED
|
@@ -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"}
|