ol 7.1.1-pr.14101.2 → 7.2.0
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/AssertionError.d.ts.map +1 -1
- package/AssertionError.js +1 -0
- package/DataTile.d.ts +34 -11
- package/DataTile.d.ts.map +1 -1
- package/DataTile.js +84 -7
- package/Feature.d.ts +3 -3
- package/Feature.js +3 -3
- package/Geolocation.d.ts +34 -27
- package/Geolocation.d.ts.map +1 -1
- package/Geolocation.js +30 -12
- package/Map.d.ts +19 -6
- package/Map.d.ts.map +1 -1
- package/Map.js +70 -43
- package/MapBrowserEventHandler.d.ts.map +1 -1
- package/MapBrowserEventHandler.js +9 -13
- package/Overlay.d.ts +1 -1
- package/Overlay.js +1 -1
- package/README.md +9 -1
- package/Tile.d.ts +2 -2
- package/Tile.js +1 -1
- package/TileCache.d.ts.map +1 -1
- package/TileCache.js +6 -8
- package/array.d.ts +2 -2
- package/array.d.ts.map +1 -1
- package/array.js +4 -4
- package/console.d.ts +13 -0
- package/console.d.ts.map +1 -0
- package/console.js +54 -0
- package/control/MousePosition.d.ts +12 -0
- package/control/MousePosition.d.ts.map +1 -1
- package/control/MousePosition.js +14 -0
- package/coordinate.d.ts +11 -11
- package/coordinate.js +11 -11
- package/dist/ol.js +1 -3
- package/dist/ol.js.map +1 -1
- package/featureloader.d.ts.map +1 -1
- package/featureloader.js +0 -1
- package/format/KML.js +3 -1
- package/geom/flat/interiorpoint.js +2 -2
- package/interaction/DragPan.d.ts.map +1 -1
- package/interaction/DragPan.js +3 -2
- package/interaction/Draw.d.ts.map +1 -1
- package/interaction/Draw.js +11 -14
- package/interaction/KeyboardPan.d.ts.map +1 -1
- package/interaction/KeyboardPan.js +0 -1
- package/interaction/KeyboardZoom.d.ts.map +1 -1
- package/interaction/KeyboardZoom.js +0 -1
- package/interaction/Link.d.ts +14 -0
- package/interaction/Link.d.ts.map +1 -1
- package/interaction/Link.js +37 -6
- package/interaction/Modify.d.ts +10 -10
- package/interaction/Modify.d.ts.map +1 -1
- package/interaction/Modify.js +15 -15
- package/interaction/PinchRotate.d.ts.map +1 -1
- package/interaction/PinchRotate.js +3 -5
- package/interaction/PinchZoom.d.ts.map +1 -1
- package/interaction/PinchZoom.js +3 -5
- package/interaction/Pointer.d.ts +5 -2
- package/interaction/Pointer.d.ts.map +1 -1
- package/interaction/Pointer.js +2 -2
- package/interaction/Select.d.ts.map +1 -1
- package/interaction/Select.js +4 -5
- package/interaction/Snap.d.ts +1 -1
- package/interaction/Snap.d.ts.map +1 -1
- package/interaction/Snap.js +17 -23
- package/interaction/Translate.d.ts +12 -11
- package/interaction/Translate.d.ts.map +1 -1
- package/interaction/Translate.js +16 -13
- package/layer/BaseVector.js +1 -1
- package/layer/Graticule.d.ts.map +1 -1
- package/layer/Graticule.js +4 -4
- package/layer/Heatmap.js +10 -10
- package/layer/Layer.d.ts +2 -2
- package/layer/Layer.d.ts.map +1 -1
- package/layer/Layer.js +2 -2
- package/layer/VectorTile.js +1 -1
- package/package.json +2 -2
- package/proj.d.ts +2 -4
- package/proj.d.ts.map +1 -1
- package/proj.js +4 -6
- package/render/canvas/ExecutorGroup.d.ts.map +1 -1
- package/render/canvas/ExecutorGroup.js +6 -4
- package/render/canvas/Immediate.d.ts +5 -0
- package/render/canvas/Immediate.d.ts.map +1 -1
- package/render/canvas/Immediate.js +15 -0
- package/render/canvas/hitdetect.d.ts +4 -3
- package/render/canvas/hitdetect.d.ts.map +1 -1
- package/render/canvas/hitdetect.js +23 -11
- package/render/webgl/BatchRenderer.d.ts.map +1 -1
- package/render/webgl/BatchRenderer.js +2 -3
- package/render/webgl/LineStringBatchRenderer.d.ts.map +1 -1
- package/render/webgl/LineStringBatchRenderer.js +2 -4
- package/render/webgl/PointBatchRenderer.d.ts.map +1 -1
- package/render/webgl/PointBatchRenderer.js +2 -4
- package/render/webgl/PolygonBatchRenderer.d.ts.map +1 -1
- package/render/webgl/PolygonBatchRenderer.js +2 -4
- package/render.d.ts +3 -3
- package/render.d.ts.map +1 -1
- package/render.js +6 -4
- package/renderer/Layer.d.ts +2 -2
- package/renderer/Layer.d.ts.map +1 -1
- package/renderer/Layer.js +3 -4
- package/renderer/canvas/Layer.d.ts.map +1 -1
- package/renderer/canvas/Layer.js +3 -4
- package/renderer/canvas/TileLayer.js +2 -2
- package/renderer/canvas/VectorImageLayer.d.ts +6 -0
- package/renderer/canvas/VectorImageLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorImageLayer.js +22 -25
- package/renderer/canvas/VectorLayer.d.ts +9 -2
- package/renderer/canvas/VectorLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorLayer.js +87 -93
- package/renderer/canvas/VectorTileLayer.js +84 -84
- package/renderer/webgl/PointsLayer.d.ts.map +1 -1
- package/renderer/webgl/PointsLayer.js +10 -13
- package/renderer/webgl/TileLayer.d.ts.map +1 -1
- package/renderer/webgl/TileLayer.js +2 -4
- package/reproj/DataTile.d.ts +75 -17
- package/reproj/DataTile.d.ts.map +1 -1
- package/reproj/DataTile.js +121 -120
- package/reproj/Tile.d.ts +3 -3
- package/reproj/Tile.d.ts.map +1 -1
- package/reproj/Tile.js +37 -41
- package/reproj/Triangulation.d.ts.map +1 -1
- package/reproj/Triangulation.js +42 -44
- package/source/BingMaps.d.ts.map +1 -1
- package/source/BingMaps.js +33 -38
- package/source/DataTile.d.ts +5 -3
- package/source/DataTile.d.ts.map +1 -1
- package/source/DataTile.js +24 -20
- package/source/GeoTIFF.d.ts +10 -7
- package/source/GeoTIFF.d.ts.map +1 -1
- package/source/GeoTIFF.js +49 -20
- package/source/Image.d.ts +8 -0
- package/source/Image.d.ts.map +1 -1
- package/source/Image.js +13 -11
- package/source/OGCMapTile.d.ts +1 -0
- package/source/OGCMapTile.d.ts.map +1 -1
- package/source/OGCMapTile.js +3 -1
- package/source/OGCVectorTile.d.ts +1 -0
- package/source/OGCVectorTile.d.ts.map +1 -1
- package/source/OGCVectorTile.js +3 -1
- package/source/Raster.d.ts +16 -0
- package/source/Raster.d.ts.map +1 -1
- package/source/Raster.js +47 -7
- package/source/Source.d.ts +2 -2
- package/source/Source.d.ts.map +1 -1
- package/source/Source.js +3 -4
- package/source/Stamen.js +2 -2
- package/source/Tile.d.ts.map +1 -1
- package/source/Tile.js +7 -3
- package/source/TileImage.d.ts +2 -2
- package/source/TileImage.d.ts.map +1 -1
- package/source/TileImage.js +3 -4
- package/source/UTFGrid.d.ts.map +1 -1
- package/source/UTFGrid.js +3 -6
- package/source/Vector.d.ts +6 -6
- package/source/Vector.js +13 -13
- package/source/VectorTile.d.ts.map +1 -1
- package/source/VectorTile.js +5 -9
- package/source/Zoomify.d.ts.map +1 -1
- package/source/Zoomify.js +4 -7
- package/style/Icon.d.ts +51 -0
- package/style/Icon.d.ts.map +1 -1
- package/style/Icon.js +119 -0
- package/style/IconImage.d.ts.map +1 -1
- package/style/IconImage.js +3 -1
- package/style/Image.d.ts.map +1 -1
- package/style/Image.js +1 -0
- package/style/Style.d.ts +2 -2
- package/style/Style.js +2 -2
- package/style/expressions.js +5 -10
- package/tilegrid/TileGrid.d.ts.map +1 -1
- package/tilegrid/TileGrid.js +7 -12
- package/util.d.ts.map +1 -1
- package/util.js +1 -1
- package/webgl/Helper.d.ts +4 -0
- package/webgl/Helper.d.ts.map +1 -1
- package/webgl/Helper.js +78 -79
- package/webgl/PostProcessingPass.d.ts +2 -2
- package/webgl/PostProcessingPass.d.ts.map +1 -1
- package/webgl/PostProcessingPass.js +7 -9
- package/webgl/ShaderBuilder.d.ts +1 -1
- package/webgl/ShaderBuilder.js +1 -1
- package/webgl/TileTexture.d.ts +19 -2
- package/webgl/TileTexture.d.ts.map +1 -1
- package/webgl/TileTexture.js +93 -46
- package/worker/webgl.js +1 -1
- package/layer/STAC.d.ts +0 -257
- package/layer/STAC.d.ts.map +0 -1
- package/layer/STAC.js +0 -312
package/coordinate.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*
|
|
17
17
|
* Example:
|
|
18
18
|
*
|
|
19
|
-
* import {add} from 'ol/coordinate';
|
|
19
|
+
* import {add} from 'ol/coordinate.js';
|
|
20
20
|
*
|
|
21
21
|
* const coord = [7.85, 47.983333];
|
|
22
22
|
* add(coord, [-2, 4]);
|
|
@@ -57,7 +57,7 @@ export function closestOnSegment(coordinate: Coordinate, segment: Array<Coordina
|
|
|
57
57
|
*
|
|
58
58
|
* Example without specifying the fractional digits:
|
|
59
59
|
*
|
|
60
|
-
* import {createStringXY} from 'ol/coordinate';
|
|
60
|
+
* import {createStringXY} from 'ol/coordinate.js';
|
|
61
61
|
*
|
|
62
62
|
* const coord = [7.85, 47.983333];
|
|
63
63
|
* const stringifyFunc = createStringXY();
|
|
@@ -66,7 +66,7 @@ export function closestOnSegment(coordinate: Coordinate, segment: Array<Coordina
|
|
|
66
66
|
*
|
|
67
67
|
* Example with explicitly specifying 2 fractional digits:
|
|
68
68
|
*
|
|
69
|
-
* import {createStringXY} from 'ol/coordinate';
|
|
69
|
+
* import {createStringXY} from 'ol/coordinate.js';
|
|
70
70
|
*
|
|
71
71
|
* const coord = [7.85, 47.983333];
|
|
72
72
|
* const stringifyFunc = createStringXY(2);
|
|
@@ -94,7 +94,7 @@ export function degreesToStringHDMS(hemispheres: string, degrees: number, fracti
|
|
|
94
94
|
*
|
|
95
95
|
* Example without specifying the fractional digits:
|
|
96
96
|
*
|
|
97
|
-
* import {format} from 'ol/coordinate';
|
|
97
|
+
* import {format} from 'ol/coordinate.js';
|
|
98
98
|
*
|
|
99
99
|
* const coord = [7.85, 47.983333];
|
|
100
100
|
* const template = 'Coordinate is ({x}|{y}).';
|
|
@@ -103,7 +103,7 @@ export function degreesToStringHDMS(hemispheres: string, degrees: number, fracti
|
|
|
103
103
|
*
|
|
104
104
|
* Example explicitly specifying the fractional digits:
|
|
105
105
|
*
|
|
106
|
-
* import {format} from 'ol/coordinate';
|
|
106
|
+
* import {format} from 'ol/coordinate.js';
|
|
107
107
|
*
|
|
108
108
|
* const coord = [7.85, 47.983333];
|
|
109
109
|
* const template = 'Coordinate is ({x}|{y}).';
|
|
@@ -131,7 +131,7 @@ export function equals(coordinate1: Coordinate, coordinate2: Coordinate): boolea
|
|
|
131
131
|
*
|
|
132
132
|
* Example:
|
|
133
133
|
*
|
|
134
|
-
* import {rotate} from 'ol/coordinate';
|
|
134
|
+
* import {rotate} from 'ol/coordinate.js';
|
|
135
135
|
*
|
|
136
136
|
* const coord = [7.85, 47.983333];
|
|
137
137
|
* const rotateRadians = Math.PI / 2; // 90 degrees
|
|
@@ -150,7 +150,7 @@ export function rotate(coordinate: Coordinate, angle: number): Coordinate;
|
|
|
150
150
|
*
|
|
151
151
|
* Example:
|
|
152
152
|
*
|
|
153
|
-
* import {scale as scaleCoordinate} from 'ol/coordinate';
|
|
153
|
+
* import {scale as scaleCoordinate} from 'ol/coordinate.js';
|
|
154
154
|
*
|
|
155
155
|
* const coord = [7.85, 47.983333];
|
|
156
156
|
* const scale = 1.2;
|
|
@@ -189,7 +189,7 @@ export function squaredDistanceToSegment(coordinate: Coordinate, segment: Array<
|
|
|
189
189
|
*
|
|
190
190
|
* Example without specifying fractional digits:
|
|
191
191
|
*
|
|
192
|
-
* import {toStringHDMS} from 'ol/coordinate';
|
|
192
|
+
* import {toStringHDMS} from 'ol/coordinate.js';
|
|
193
193
|
*
|
|
194
194
|
* const coord = [7.85, 47.983333];
|
|
195
195
|
* const out = toStringHDMS(coord);
|
|
@@ -197,7 +197,7 @@ export function squaredDistanceToSegment(coordinate: Coordinate, segment: Array<
|
|
|
197
197
|
*
|
|
198
198
|
* Example explicitly specifying 1 fractional digit:
|
|
199
199
|
*
|
|
200
|
-
* import {toStringHDMS} from 'ol/coordinate';
|
|
200
|
+
* import {toStringHDMS} from 'ol/coordinate.js';
|
|
201
201
|
*
|
|
202
202
|
* const coord = [7.85, 47.983333];
|
|
203
203
|
* const out = toStringHDMS(coord, 1);
|
|
@@ -215,7 +215,7 @@ export function toStringHDMS(coordinate: Coordinate, fractionDigits?: number | u
|
|
|
215
215
|
*
|
|
216
216
|
* Example without specifying fractional digits:
|
|
217
217
|
*
|
|
218
|
-
* import {toStringXY} from 'ol/coordinate';
|
|
218
|
+
* import {toStringXY} from 'ol/coordinate.js';
|
|
219
219
|
*
|
|
220
220
|
* const coord = [7.85, 47.983333];
|
|
221
221
|
* const out = toStringXY(coord);
|
|
@@ -223,7 +223,7 @@ export function toStringHDMS(coordinate: Coordinate, fractionDigits?: number | u
|
|
|
223
223
|
*
|
|
224
224
|
* Example explicitly specifying 1 fractional digit:
|
|
225
225
|
*
|
|
226
|
-
* import {toStringXY} from 'ol/coordinate';
|
|
226
|
+
* import {toStringXY} from 'ol/coordinate.js';
|
|
227
227
|
*
|
|
228
228
|
* const coord = [7.85, 47.983333];
|
|
229
229
|
* const out = toStringXY(coord, 1);
|
package/coordinate.js
CHANGED
|
@@ -25,7 +25,7 @@ import {padNumber} from './string.js';
|
|
|
25
25
|
*
|
|
26
26
|
* Example:
|
|
27
27
|
*
|
|
28
|
-
* import {add} from 'ol/coordinate';
|
|
28
|
+
* import {add} from 'ol/coordinate.js';
|
|
29
29
|
*
|
|
30
30
|
* const coord = [7.85, 47.983333];
|
|
31
31
|
* add(coord, [-2, 4]);
|
|
@@ -119,7 +119,7 @@ export function closestOnSegment(coordinate, segment) {
|
|
|
119
119
|
*
|
|
120
120
|
* Example without specifying the fractional digits:
|
|
121
121
|
*
|
|
122
|
-
* import {createStringXY} from 'ol/coordinate';
|
|
122
|
+
* import {createStringXY} from 'ol/coordinate.js';
|
|
123
123
|
*
|
|
124
124
|
* const coord = [7.85, 47.983333];
|
|
125
125
|
* const stringifyFunc = createStringXY();
|
|
@@ -128,7 +128,7 @@ export function closestOnSegment(coordinate, segment) {
|
|
|
128
128
|
*
|
|
129
129
|
* Example with explicitly specifying 2 fractional digits:
|
|
130
130
|
*
|
|
131
|
-
* import {createStringXY} from 'ol/coordinate';
|
|
131
|
+
* import {createStringXY} from 'ol/coordinate.js';
|
|
132
132
|
*
|
|
133
133
|
* const coord = [7.85, 47.983333];
|
|
134
134
|
* const stringifyFunc = createStringXY(2);
|
|
@@ -199,7 +199,7 @@ export function degreesToStringHDMS(hemispheres, degrees, fractionDigits) {
|
|
|
199
199
|
*
|
|
200
200
|
* Example without specifying the fractional digits:
|
|
201
201
|
*
|
|
202
|
-
* import {format} from 'ol/coordinate';
|
|
202
|
+
* import {format} from 'ol/coordinate.js';
|
|
203
203
|
*
|
|
204
204
|
* const coord = [7.85, 47.983333];
|
|
205
205
|
* const template = 'Coordinate is ({x}|{y}).';
|
|
@@ -208,7 +208,7 @@ export function degreesToStringHDMS(hemispheres, degrees, fractionDigits) {
|
|
|
208
208
|
*
|
|
209
209
|
* Example explicitly specifying the fractional digits:
|
|
210
210
|
*
|
|
211
|
-
* import {format} from 'ol/coordinate';
|
|
211
|
+
* import {format} from 'ol/coordinate.js';
|
|
212
212
|
*
|
|
213
213
|
* const coord = [7.85, 47.983333];
|
|
214
214
|
* const template = 'Coordinate is ({x}|{y}).';
|
|
@@ -254,7 +254,7 @@ export function equals(coordinate1, coordinate2) {
|
|
|
254
254
|
*
|
|
255
255
|
* Example:
|
|
256
256
|
*
|
|
257
|
-
* import {rotate} from 'ol/coordinate';
|
|
257
|
+
* import {rotate} from 'ol/coordinate.js';
|
|
258
258
|
*
|
|
259
259
|
* const coord = [7.85, 47.983333];
|
|
260
260
|
* const rotateRadians = Math.PI / 2; // 90 degrees
|
|
@@ -282,7 +282,7 @@ export function rotate(coordinate, angle) {
|
|
|
282
282
|
*
|
|
283
283
|
* Example:
|
|
284
284
|
*
|
|
285
|
-
* import {scale as scaleCoordinate} from 'ol/coordinate';
|
|
285
|
+
* import {scale as scaleCoordinate} from 'ol/coordinate.js';
|
|
286
286
|
*
|
|
287
287
|
* const coord = [7.85, 47.983333];
|
|
288
288
|
* const scale = 1.2;
|
|
@@ -337,7 +337,7 @@ export function squaredDistanceToSegment(coordinate, segment) {
|
|
|
337
337
|
*
|
|
338
338
|
* Example without specifying fractional digits:
|
|
339
339
|
*
|
|
340
|
-
* import {toStringHDMS} from 'ol/coordinate';
|
|
340
|
+
* import {toStringHDMS} from 'ol/coordinate.js';
|
|
341
341
|
*
|
|
342
342
|
* const coord = [7.85, 47.983333];
|
|
343
343
|
* const out = toStringHDMS(coord);
|
|
@@ -345,7 +345,7 @@ export function squaredDistanceToSegment(coordinate, segment) {
|
|
|
345
345
|
*
|
|
346
346
|
* Example explicitly specifying 1 fractional digit:
|
|
347
347
|
*
|
|
348
|
-
* import {toStringHDMS} from 'ol/coordinate';
|
|
348
|
+
* import {toStringHDMS} from 'ol/coordinate.js';
|
|
349
349
|
*
|
|
350
350
|
* const coord = [7.85, 47.983333];
|
|
351
351
|
* const out = toStringHDMS(coord, 1);
|
|
@@ -373,7 +373,7 @@ export function toStringHDMS(coordinate, fractionDigits) {
|
|
|
373
373
|
*
|
|
374
374
|
* Example without specifying fractional digits:
|
|
375
375
|
*
|
|
376
|
-
* import {toStringXY} from 'ol/coordinate';
|
|
376
|
+
* import {toStringXY} from 'ol/coordinate.js';
|
|
377
377
|
*
|
|
378
378
|
* const coord = [7.85, 47.983333];
|
|
379
379
|
* const out = toStringXY(coord);
|
|
@@ -381,7 +381,7 @@ export function toStringHDMS(coordinate, fractionDigits) {
|
|
|
381
381
|
*
|
|
382
382
|
* Example explicitly specifying 1 fractional digit:
|
|
383
383
|
*
|
|
384
|
-
* import {toStringXY} from 'ol/coordinate';
|
|
384
|
+
* import {toStringXY} from 'ol/coordinate.js';
|
|
385
385
|
*
|
|
386
386
|
* const coord = [7.85, 47.983333];
|
|
387
387
|
* const out = toStringXY(coord, 1);
|