ol 6.12.1-dev.1644913891249 → 6.12.1-dev.1645124719673
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/Feature.d.ts +1 -1
- package/Feature.js +1 -1
- package/Object.d.ts +1 -1
- package/Object.js +1 -1
- package/PluggableMap.d.ts +5 -5
- package/PluggableMap.js +5 -5
- package/Tile.d.ts +6 -6
- package/Tile.js +3 -3
- package/featureloader.d.ts +4 -4
- package/featureloader.js +2 -2
- package/geom/GeometryCollection.d.ts +1 -1
- package/geom/GeometryCollection.js +1 -1
- package/geom/MultiPolygon.d.ts +1 -1
- package/geom/MultiPolygon.js +1 -1
- package/interaction/DoubleClickZoom.js +1 -1
- package/interaction/DragBox.d.ts +1 -1
- package/interaction/DragBox.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/Interaction.d.ts +1 -1
- package/interaction/Interaction.js +1 -1
- package/interaction/KeyboardPan.js +1 -1
- package/interaction/KeyboardZoom.js +1 -1
- package/interaction/Modify.d.ts +6 -6
- package/interaction/Modify.js +7 -7
- package/interaction/MouseWheelZoom.js +1 -1
- package/interaction/Select.d.ts +2 -2
- package/interaction/Select.js +3 -3
- package/interaction/Snap.d.ts +1 -1
- package/interaction/Snap.js +1 -1
- package/interaction/Translate.d.ts +1 -1
- package/interaction/Translate.js +1 -1
- package/interaction.d.ts +2 -2
- package/interaction.js +2 -2
- package/layer/Base.d.ts +2 -2
- package/layer/Base.js +2 -2
- package/layer/Group.d.ts +4 -4
- package/layer/Group.js +4 -4
- package/package.json +1 -1
- package/proj.d.ts +1 -1
- package/proj.js +4 -4
- package/render/canvas/Immediate.d.ts +1 -1
- package/render/canvas/Immediate.js +1 -1
- package/renderer/canvas/TileLayer.d.ts.map +1 -1
- package/renderer/canvas/TileLayer.js +23 -15
- package/renderer/canvas/TileLayer.js.map +1 -1
- package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorTileLayer.js +38 -38
- package/renderer/canvas/VectorTileLayer.js.map +1 -1
- package/renderer/vector.d.ts +3 -3
- package/renderer/vector.js +3 -3
- package/renderer/webgl/PointsLayer.d.ts +1 -1
- package/renderer/webgl/PointsLayer.js +1 -1
- package/source/ImageArcGISRest.d.ts +1 -1
- package/source/ImageArcGISRest.js +1 -1
- package/source/ImageCanvas.d.ts +4 -4
- package/source/ImageCanvas.js +2 -2
- package/source/OGCVectorTile.d.ts +2 -2
- package/source/OGCVectorTile.js +1 -1
- package/source/Raster.d.ts +1 -1
- package/source/Raster.js +1 -1
- package/source/Vector.d.ts +6 -6
- package/source/Vector.js +4 -4
- package/source/VectorTile.d.ts +2 -2
- package/source/VectorTile.js +1 -1
- package/src/Feature.js +1 -1
- package/src/Object.js +1 -1
- package/src/PluggableMap.js +5 -5
- package/src/Tile.js +3 -3
- package/src/featureloader.js +2 -2
- package/src/geom/GeometryCollection.js +1 -1
- package/src/geom/MultiPolygon.js +1 -1
- package/src/interaction/DoubleClickZoom.js +1 -1
- package/src/interaction/DragBox.js +1 -1
- package/src/interaction/Draw.js +1 -1
- package/src/interaction/Interaction.js +1 -1
- package/src/interaction/KeyboardPan.js +1 -1
- package/src/interaction/KeyboardZoom.js +1 -1
- package/src/interaction/Modify.js +7 -7
- package/src/interaction/MouseWheelZoom.js +1 -1
- package/src/interaction/Select.js +3 -3
- package/src/interaction/Snap.js +1 -1
- package/src/interaction/Translate.js +1 -1
- package/src/interaction.js +2 -2
- package/src/layer/Base.js +2 -2
- package/src/layer/Group.js +4 -4
- package/src/proj.js +4 -4
- package/src/render/canvas/Immediate.js +1 -1
- package/src/renderer/canvas/TileLayer.js +28 -14
- package/src/renderer/canvas/VectorTileLayer.js +48 -39
- package/src/renderer/vector.js +3 -3
- package/src/renderer/webgl/PointsLayer.js +1 -1
- package/src/source/ImageArcGISRest.js +1 -1
- package/src/source/ImageCanvas.js +2 -2
- package/src/source/OGCVectorTile.js +1 -1
- package/src/source/Raster.js +1 -1
- package/src/source/Vector.js +4 -4
- package/src/source/VectorTile.js +1 -1
- package/src/style/Icon.js +11 -9
- package/src/tilegrid/TileGrid.js +1 -1
- package/src/tilegrid/WMTS.js +1 -1
- package/style/Icon.d.ts +5 -0
- package/style/Icon.d.ts.map +1 -1
- package/style/Icon.js +11 -9
- package/style/Icon.js.map +1 -1
- package/tilegrid/TileGrid.d.ts +2 -2
- package/tilegrid/TileGrid.js +1 -1
- package/tilegrid/WMTS.d.ts +2 -2
- package/tilegrid/WMTS.js +1 -1
- package/util.js +1 -1
package/Feature.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export type ObjectWithGeometry<Geometry> = {
|
|
|
48
48
|
* Features can be styled individually with `setStyle`; otherwise they use the
|
|
49
49
|
* style of their vector layer.
|
|
50
50
|
*
|
|
51
|
-
* Note that attribute properties are set as {@link module:ol/Object} properties on
|
|
51
|
+
* Note that attribute properties are set as {@link module:ol/Object~BaseObject} properties on
|
|
52
52
|
* the feature object, so they are observable, and have get/set accessors.
|
|
53
53
|
*
|
|
54
54
|
* Typically, a feature has a single geometry property. You can set the
|
package/Feature.js
CHANGED
|
@@ -46,7 +46,7 @@ import { listen, unlistenByKey } from './events.js';
|
|
|
46
46
|
* Features can be styled individually with `setStyle`; otherwise they use the
|
|
47
47
|
* style of their vector layer.
|
|
48
48
|
*
|
|
49
|
-
* Note that attribute properties are set as {@link module:ol/Object} properties on
|
|
49
|
+
* Note that attribute properties are set as {@link module:ol/Object~BaseObject} properties on
|
|
50
50
|
* the feature object, so they are observable, and have get/set accessors.
|
|
51
51
|
*
|
|
52
52
|
* Typically, a feature has a single geometry property. You can set the
|
package/Object.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ import Event from "./events/Event.js";
|
|
|
41
41
|
* instantiated in apps.
|
|
42
42
|
* Most non-trivial classes inherit from this.
|
|
43
43
|
*
|
|
44
|
-
* This extends {@link module:ol/Observable} with observable
|
|
44
|
+
* This extends {@link module:ol/Observable~Observable} with observable
|
|
45
45
|
* properties, where each property is observable as well as the object as a
|
|
46
46
|
* whole.
|
|
47
47
|
*
|
package/Object.js
CHANGED
|
@@ -64,7 +64,7 @@ export { ObjectEvent };
|
|
|
64
64
|
* instantiated in apps.
|
|
65
65
|
* Most non-trivial classes inherit from this.
|
|
66
66
|
*
|
|
67
|
-
* This extends {@link module:ol/Observable} with observable
|
|
67
|
+
* This extends {@link module:ol/Observable~Observable} with observable
|
|
68
68
|
* properties, where each property is observable as well as the object as a
|
|
69
69
|
* whole.
|
|
70
70
|
*
|
package/PluggableMap.d.ts
CHANGED
|
@@ -100,7 +100,7 @@ export type AtPixelOptions = {
|
|
|
100
100
|
/**
|
|
101
101
|
* Layer filter
|
|
102
102
|
* function. The filter function will receive one argument, the
|
|
103
|
-
* {@link module :ol/layer/Layer layer-candidate} and it should return a boolean value.
|
|
103
|
+
* {@link module :ol/layer/Layer~Layer layer-candidate} and it should return a boolean value.
|
|
104
104
|
* Only layers which are visible and for which this function returns `true`
|
|
105
105
|
* will be tested for features. By default, all visible layers will be tested.
|
|
106
106
|
*/
|
|
@@ -432,9 +432,9 @@ declare class PluggableMap extends BaseObject {
|
|
|
432
432
|
* @param {import("./pixel.js").Pixel} pixel Pixel.
|
|
433
433
|
* @param {function(import("./Feature.js").FeatureLike, import("./layer/Layer.js").default<import("./source/Source").default>, import("./geom/SimpleGeometry.js").default): T} callback Feature callback. The callback will be
|
|
434
434
|
* called with two arguments. The first argument is one
|
|
435
|
-
* {@link module:ol/Feature feature} or
|
|
436
|
-
* {@link module:ol/render/Feature render feature} at the pixel, the second is
|
|
437
|
-
* the {@link module:ol/layer/Layer layer} of the feature and will be null for
|
|
435
|
+
* {@link module:ol/Feature~Feature feature} or
|
|
436
|
+
* {@link module:ol/render/Feature~RenderFeature render feature} at the pixel, the second is
|
|
437
|
+
* the {@link module:ol/layer/Layer~Layer layer} of the feature and will be null for
|
|
438
438
|
* unmanaged layers. To stop detection, callback functions can return a
|
|
439
439
|
* truthy value.
|
|
440
440
|
* @param {AtPixelOptions} [opt_options] Optional options.
|
|
@@ -476,7 +476,7 @@ declare class PluggableMap extends BaseObject {
|
|
|
476
476
|
* @param {import("./pixel.js").Pixel} pixel Pixel.
|
|
477
477
|
* @param {function(this: S, import("./layer/Layer.js").default, (Uint8ClampedArray|Uint8Array)): T} callback
|
|
478
478
|
* Layer callback. This callback will receive two arguments: first is the
|
|
479
|
-
* {@link module:ol/layer/Layer layer}, second argument is an array representing
|
|
479
|
+
* {@link module:ol/layer/Layer~Layer layer}, second argument is an array representing
|
|
480
480
|
* [R, G, B, A] pixel values (0 - 255) and will be `null` for layer types
|
|
481
481
|
* that do not currently support this argument. To stop detection, callback
|
|
482
482
|
* functions can return a truthy value.
|
package/PluggableMap.js
CHANGED
|
@@ -76,7 +76,7 @@ import { removeNode } from './dom.js';
|
|
|
76
76
|
* @typedef {Object} AtPixelOptions
|
|
77
77
|
* @property {undefined|function(import("./layer/Layer.js").default<import("./source/Source").default>): boolean} [layerFilter] Layer filter
|
|
78
78
|
* function. The filter function will receive one argument, the
|
|
79
|
-
* {@link module:ol/layer/Layer layer-candidate} and it should return a boolean value.
|
|
79
|
+
* {@link module:ol/layer/Layer~Layer layer-candidate} and it should return a boolean value.
|
|
80
80
|
* Only layers which are visible and for which this function returns `true`
|
|
81
81
|
* will be tested for features. By default, all visible layers will be tested.
|
|
82
82
|
* @property {number} [hitTolerance=0] Hit-detection tolerance in css pixels. Pixels
|
|
@@ -531,9 +531,9 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
531
531
|
* @param {import("./pixel.js").Pixel} pixel Pixel.
|
|
532
532
|
* @param {function(import("./Feature.js").FeatureLike, import("./layer/Layer.js").default<import("./source/Source").default>, import("./geom/SimpleGeometry.js").default): T} callback Feature callback. The callback will be
|
|
533
533
|
* called with two arguments. The first argument is one
|
|
534
|
-
* {@link module:ol/Feature feature} or
|
|
535
|
-
* {@link module:ol/render/Feature render feature} at the pixel, the second is
|
|
536
|
-
* the {@link module:ol/layer/Layer layer} of the feature and will be null for
|
|
534
|
+
* {@link module:ol/Feature~Feature feature} or
|
|
535
|
+
* {@link module:ol/render/Feature~RenderFeature render feature} at the pixel, the second is
|
|
536
|
+
* the {@link module:ol/layer/Layer~Layer layer} of the feature and will be null for
|
|
537
537
|
* unmanaged layers. To stop detection, callback functions can return a
|
|
538
538
|
* truthy value.
|
|
539
539
|
* @param {AtPixelOptions} [opt_options] Optional options.
|
|
@@ -605,7 +605,7 @@ var PluggableMap = /** @class */ (function (_super) {
|
|
|
605
605
|
* @param {import("./pixel.js").Pixel} pixel Pixel.
|
|
606
606
|
* @param {function(this: S, import("./layer/Layer.js").default, (Uint8ClampedArray|Uint8Array)): T} callback
|
|
607
607
|
* Layer callback. This callback will receive two arguments: first is the
|
|
608
|
-
* {@link module:ol/layer/Layer layer}, second argument is an array representing
|
|
608
|
+
* {@link module:ol/layer/Layer~Layer layer}, second argument is an array representing
|
|
609
609
|
* [R, G, B, A] pixel values (0 - 255) and will be `null` for layer types
|
|
610
610
|
* that do not currently support this argument. To stop detection, callback
|
|
611
611
|
* functions can return a truthy value.
|
package/Tile.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default Tile;
|
|
2
2
|
/**
|
|
3
|
-
* A function that takes an {@link module :ol/Tile} for the tile and a
|
|
3
|
+
* A function that takes an {@link module :ol/Tile~Tile} for the tile and a
|
|
4
4
|
* `{string}` for the url as arguments. The default is
|
|
5
5
|
* ```js
|
|
6
6
|
* source.setTileLoadFunction(function(tile, src) {
|
|
@@ -34,12 +34,12 @@ export default Tile;
|
|
|
34
34
|
*/
|
|
35
35
|
export type LoadFunction = (arg0: Tile, arg1: string) => void;
|
|
36
36
|
/**
|
|
37
|
-
* {@link module :ol/source/Tile~
|
|
37
|
+
* {@link module :ol/source/Tile~TileSource} sources use a function of this type to get
|
|
38
38
|
* the url that provides a tile for a given tile coordinate.
|
|
39
39
|
*
|
|
40
40
|
* This function takes an {@link module :ol/tilecoord~TileCoord} for the tile
|
|
41
41
|
* coordinate, a `{number}` representing the pixel ratio and a
|
|
42
|
-
* {@link module :ol/proj/Projection} for the projection as arguments
|
|
42
|
+
* {@link module :ol/proj/Projection~Projection} for the projection as arguments
|
|
43
43
|
* and returns a `{string}` representing the tile URL, or undefined if no tile
|
|
44
44
|
* should be requested for the passed tile coordinate.
|
|
45
45
|
*/
|
|
@@ -57,7 +57,7 @@ export type Options = {
|
|
|
57
57
|
interpolate?: boolean | undefined;
|
|
58
58
|
};
|
|
59
59
|
/**
|
|
60
|
-
* A function that takes an {@link module:ol/Tile} for the tile and a
|
|
60
|
+
* A function that takes an {@link module:ol/Tile~Tile} for the tile and a
|
|
61
61
|
* `{string}` for the url as arguments. The default is
|
|
62
62
|
* ```js
|
|
63
63
|
* source.setTileLoadFunction(function(tile, src) {
|
|
@@ -93,12 +93,12 @@ export type Options = {
|
|
|
93
93
|
* @api
|
|
94
94
|
*/
|
|
95
95
|
/**
|
|
96
|
-
* {@link module:ol/source/Tile~
|
|
96
|
+
* {@link module:ol/source/Tile~TileSource} sources use a function of this type to get
|
|
97
97
|
* the url that provides a tile for a given tile coordinate.
|
|
98
98
|
*
|
|
99
99
|
* This function takes an {@link module:ol/tilecoord~TileCoord} for the tile
|
|
100
100
|
* coordinate, a `{number}` representing the pixel ratio and a
|
|
101
|
-
* {@link module:ol/proj/Projection} for the projection as arguments
|
|
101
|
+
* {@link module:ol/proj/Projection~Projection} for the projection as arguments
|
|
102
102
|
* and returns a `{string}` representing the tile URL, or undefined if no tile
|
|
103
103
|
* should be requested for the passed tile coordinate.
|
|
104
104
|
*
|
package/Tile.js
CHANGED
|
@@ -22,7 +22,7 @@ import TileState from './TileState.js';
|
|
|
22
22
|
import { abstract } from './util.js';
|
|
23
23
|
import { easeIn } from './easing.js';
|
|
24
24
|
/**
|
|
25
|
-
* A function that takes an {@link module:ol/Tile} for the tile and a
|
|
25
|
+
* A function that takes an {@link module:ol/Tile~Tile} for the tile and a
|
|
26
26
|
* `{string}` for the url as arguments. The default is
|
|
27
27
|
* ```js
|
|
28
28
|
* source.setTileLoadFunction(function(tile, src) {
|
|
@@ -58,12 +58,12 @@ import { easeIn } from './easing.js';
|
|
|
58
58
|
* @api
|
|
59
59
|
*/
|
|
60
60
|
/**
|
|
61
|
-
* {@link module:ol/source/Tile~
|
|
61
|
+
* {@link module:ol/source/Tile~TileSource} sources use a function of this type to get
|
|
62
62
|
* the url that provides a tile for a given tile coordinate.
|
|
63
63
|
*
|
|
64
64
|
* This function takes an {@link module:ol/tilecoord~TileCoord} for the tile
|
|
65
65
|
* coordinate, a `{number}` representing the pixel ratio and a
|
|
66
|
-
* {@link module:ol/proj/Projection} for the projection as arguments
|
|
66
|
+
* {@link module:ol/proj/Projection~Projection} for the projection as arguments
|
|
67
67
|
* and returns a `{string}` representing the tile URL, or undefined if no tile
|
|
68
68
|
* should be requested for the passed tile coordinate.
|
|
69
69
|
*
|
package/featureloader.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* {@link module:ol/source/Vector} sources use a function of this type to
|
|
2
|
+
* {@link module:ol/source/Vector~VectorSource} sources use a function of this type to
|
|
3
3
|
* load features.
|
|
4
4
|
*
|
|
5
5
|
* This function takes up to 5 arguments. These are an {@link module:ol/extent~Extent} representing
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* @api
|
|
22
22
|
*/
|
|
23
23
|
/**
|
|
24
|
-
* {@link module:ol/source/Vector} sources use a function of this type to
|
|
24
|
+
* {@link module:ol/source/Vector~VectorSource} sources use a function of this type to
|
|
25
25
|
* get the url to load features from.
|
|
26
26
|
*
|
|
27
27
|
* This function takes an {@link module:ol/extent~Extent} representing the area
|
|
@@ -62,7 +62,7 @@ export function xhr(url: string | FeatureUrlFunction, format: import("./format/F
|
|
|
62
62
|
*/
|
|
63
63
|
export function setWithCredentials(xhrWithCredentials: boolean): void;
|
|
64
64
|
/**
|
|
65
|
-
* {@link module :ol/source/Vector} sources use a function of this type to
|
|
65
|
+
* {@link module :ol/source/Vector~VectorSource} sources use a function of this type to
|
|
66
66
|
* load features.
|
|
67
67
|
*
|
|
68
68
|
* This function takes up to 5 arguments. These are an {@link module :ol/extent~Extent} representing
|
|
@@ -78,7 +78,7 @@ export function setWithCredentials(xhrWithCredentials: boolean): void;
|
|
|
78
78
|
*/
|
|
79
79
|
export type FeatureLoader = (this: (import("./source/Vector").default | import("./VectorTile.js").default), arg1: import("./extent.js").Extent, arg2: number, arg3: import("./proj/Projection.js").default, arg4: ((arg0: Array<import("./Feature.js").default>) => void) | undefined, arg5: (() => void) | undefined) => void;
|
|
80
80
|
/**
|
|
81
|
-
* {@link module :ol/source/Vector} sources use a function of this type to
|
|
81
|
+
* {@link module :ol/source/Vector~VectorSource} sources use a function of this type to
|
|
82
82
|
* get the url to load features from.
|
|
83
83
|
*
|
|
84
84
|
* This function takes an {@link module :ol/extent~Extent} representing the area
|
package/featureloader.js
CHANGED
|
@@ -10,7 +10,7 @@ import { VOID } from './functions.js';
|
|
|
10
10
|
*/
|
|
11
11
|
var withCredentials = false;
|
|
12
12
|
/**
|
|
13
|
-
* {@link module:ol/source/Vector} sources use a function of this type to
|
|
13
|
+
* {@link module:ol/source/Vector~VectorSource} sources use a function of this type to
|
|
14
14
|
* load features.
|
|
15
15
|
*
|
|
16
16
|
* This function takes up to 5 arguments. These are an {@link module:ol/extent~Extent} representing
|
|
@@ -32,7 +32,7 @@ var withCredentials = false;
|
|
|
32
32
|
* @api
|
|
33
33
|
*/
|
|
34
34
|
/**
|
|
35
|
-
* {@link module:ol/source/Vector} sources use a function of this type to
|
|
35
|
+
* {@link module:ol/source/Vector~VectorSource} sources use a function of this type to
|
|
36
36
|
* get the url to load features from.
|
|
37
37
|
*
|
|
38
38
|
* This function takes an {@link module:ol/extent~Extent} representing the area
|
|
@@ -23,7 +23,7 @@ import { closestSquaredDistanceXY, createOrUpdateEmpty, extend, getCenter, } fro
|
|
|
23
23
|
import { listen, unlistenByKey } from '../events.js';
|
|
24
24
|
/**
|
|
25
25
|
* @classdesc
|
|
26
|
-
* An array of {@link module:ol/geom/Geometry} objects.
|
|
26
|
+
* An array of {@link module:ol/geom/Geometry~Geometry} objects.
|
|
27
27
|
*
|
|
28
28
|
* @api
|
|
29
29
|
*/
|
package/geom/MultiPolygon.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ declare class MultiPolygon extends SimpleGeometry {
|
|
|
89
89
|
*/
|
|
90
90
|
getFlatInteriorPoints(): Array<number>;
|
|
91
91
|
/**
|
|
92
|
-
* Return the interior points as {@link module:ol/geom/MultiPoint multipoint}.
|
|
92
|
+
* Return the interior points as {@link module:ol/geom/MultiPoint~MultiPoint multipoint}.
|
|
93
93
|
* @return {MultiPoint} Interior points as XYM coordinates, where M is
|
|
94
94
|
* the length of the horizontal intersection that the point belongs to.
|
|
95
95
|
* @api
|
package/geom/MultiPolygon.js
CHANGED
|
@@ -231,7 +231,7 @@ var MultiPolygon = /** @class */ (function (_super) {
|
|
|
231
231
|
return this.flatInteriorPoints_;
|
|
232
232
|
};
|
|
233
233
|
/**
|
|
234
|
-
* Return the interior points as {@link module:ol/geom/MultiPoint multipoint}.
|
|
234
|
+
* Return the interior points as {@link module:ol/geom/MultiPoint~MultiPoint multipoint}.
|
|
235
235
|
* @return {MultiPoint} Interior points as XYM coordinates, where M is
|
|
236
236
|
* the length of the horizontal intersection that the point belongs to.
|
|
237
237
|
* @api
|
|
@@ -49,7 +49,7 @@ var DoubleClickZoom = /** @class */ (function (_super) {
|
|
|
49
49
|
return _this;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
* Handles the {@link module:ol/MapBrowserEvent map browser event} (if it was a
|
|
52
|
+
* Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} (if it was a
|
|
53
53
|
* doubleclick) and eventually zooms the map.
|
|
54
54
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
|
|
55
55
|
* @return {boolean} `false` to stop event propagation.
|
package/interaction/DragBox.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ import Event from "../events/Event.js";
|
|
|
80
80
|
* it to when the shift or other key is held down. This is used, for example,
|
|
81
81
|
* for zooming to a specific area of the map
|
|
82
82
|
* (see {@link module:ol/interaction/DragZoom~DragZoom} and
|
|
83
|
-
* {@link module:ol/interaction/DragRotateAndZoom}).
|
|
83
|
+
* {@link module:ol/interaction/DragRotateAndZoom~DragRotateAndZoom}).
|
|
84
84
|
*
|
|
85
85
|
* @fires DragBoxEvent
|
|
86
86
|
* @api
|
package/interaction/DragBox.js
CHANGED
|
@@ -118,7 +118,7 @@ export { DragBoxEvent };
|
|
|
118
118
|
* it to when the shift or other key is held down. This is used, for example,
|
|
119
119
|
* for zooming to a specific area of the map
|
|
120
120
|
* (see {@link module:ol/interaction/DragZoom~DragZoom} and
|
|
121
|
-
* {@link module:ol/interaction/DragRotateAndZoom}).
|
|
121
|
+
* {@link module:ol/interaction/DragRotateAndZoom~DragRotateAndZoom}).
|
|
122
122
|
*
|
|
123
123
|
* @fires DragBoxEvent
|
|
124
124
|
* @api
|
package/interaction/Draw.js
CHANGED
|
@@ -496,7 +496,7 @@ var Draw = /** @class */ (function (_super) {
|
|
|
496
496
|
return this.overlay_;
|
|
497
497
|
};
|
|
498
498
|
/**
|
|
499
|
-
* Handles the {@link module:ol/MapBrowserEvent map browser event} and may actually draw or finish the drawing.
|
|
499
|
+
* Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} and may actually draw or finish the drawing.
|
|
500
500
|
* @param {import("../MapBrowserEvent.js").default} event Map browser event.
|
|
501
501
|
* @return {boolean} `false` to stop event propagation.
|
|
502
502
|
* @api
|
|
@@ -78,7 +78,7 @@ declare class Interaction extends BaseObject {
|
|
|
78
78
|
*/
|
|
79
79
|
un: InteractionOnSignature<void>;
|
|
80
80
|
/**
|
|
81
|
-
* Handles the {@link module:ol/MapBrowserEvent map browser event}.
|
|
81
|
+
* Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event}.
|
|
82
82
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
|
|
83
83
|
* @return {boolean} `false` to stop event propagation.
|
|
84
84
|
* @api
|
|
@@ -98,7 +98,7 @@ var Interaction = /** @class */ (function (_super) {
|
|
|
98
98
|
return this.map_;
|
|
99
99
|
};
|
|
100
100
|
/**
|
|
101
|
-
* Handles the {@link module:ol/MapBrowserEvent map browser event}.
|
|
101
|
+
* Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event}.
|
|
102
102
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
|
|
103
103
|
* @return {boolean} `false` to stop event propagation.
|
|
104
104
|
* @api
|
|
@@ -83,7 +83,7 @@ var KeyboardPan = /** @class */ (function (_super) {
|
|
|
83
83
|
return _this;
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
|
-
* Handles the {@link module:ol/MapBrowserEvent map browser event} if it was a
|
|
86
|
+
* Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} if it was a
|
|
87
87
|
* `KeyEvent`, and decides the direction to pan to (if an arrow key was
|
|
88
88
|
* pressed).
|
|
89
89
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
|
|
@@ -67,7 +67,7 @@ var KeyboardZoom = /** @class */ (function (_super) {
|
|
|
67
67
|
return _this;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
* Handles the {@link module:ol/MapBrowserEvent map browser event} if it was a
|
|
70
|
+
* Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} if it was a
|
|
71
71
|
* `KeyEvent`, and decides whether to zoom in or out (depending on whether the
|
|
72
72
|
* key pressed was '+' or '-').
|
|
73
73
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
|
package/interaction/Modify.d.ts
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* must be provided with the `features` option.
|
|
40
40
|
* @property {boolean|import("../layer/BaseVector").default} [hitDetection] When configured, point
|
|
41
41
|
* features will be considered for modification based on their visual appearance, instead of being within
|
|
42
|
-
* the `pixelTolerance` from the pointer location. When a {@link module:ol/layer/BaseVector} is
|
|
42
|
+
* the `pixelTolerance` from the pointer location. When a {@link module:ol/layer/BaseVector~BaseVectorLayer} is
|
|
43
43
|
* provided, only the rendered representation of the features on that layer will be considered.
|
|
44
44
|
* @property {Collection<Feature>} [features]
|
|
45
45
|
* The features the interaction works on. If a feature collection is not
|
|
@@ -59,10 +59,10 @@ export class ModifyEvent extends Event {
|
|
|
59
59
|
* @param {ModifyEventType} type Type.
|
|
60
60
|
* @param {Collection<import("../Feature").FeatureLike>} features
|
|
61
61
|
* The features modified.
|
|
62
|
-
* @param {import("../MapBrowserEvent.js").default}
|
|
63
|
-
* Associated {@link module:ol/MapBrowserEvent}.
|
|
62
|
+
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent
|
|
63
|
+
* Associated {@link module:ol/MapBrowserEvent~MapBrowserEvent}.
|
|
64
64
|
*/
|
|
65
|
-
constructor(type: ModifyEventType, features: Collection<import("../Feature").FeatureLike>,
|
|
65
|
+
constructor(type: ModifyEventType, features: Collection<import("../Feature").FeatureLike>, mapBrowserEvent: import("../MapBrowserEvent.js").default<any>);
|
|
66
66
|
/**
|
|
67
67
|
* The features being modified.
|
|
68
68
|
* @type {Collection<import("../Feature").FeatureLike>}
|
|
@@ -70,7 +70,7 @@ export class ModifyEvent extends Event {
|
|
|
70
70
|
*/
|
|
71
71
|
features: Collection<import("../Feature").FeatureLike>;
|
|
72
72
|
/**
|
|
73
|
-
* Associated {@link module:ol/MapBrowserEvent}.
|
|
73
|
+
* Associated {@link module:ol/MapBrowserEvent~MapBrowserEvent}.
|
|
74
74
|
* @type {import("../MapBrowserEvent.js").default}
|
|
75
75
|
* @api
|
|
76
76
|
*/
|
|
@@ -152,7 +152,7 @@ export type Options = {
|
|
|
152
152
|
/**
|
|
153
153
|
* When configured, point
|
|
154
154
|
* features will be considered for modification based on their visual appearance, instead of being within
|
|
155
|
-
* the `pixelTolerance` from the pointer location. When a {@link module :ol/layer/BaseVector} is
|
|
155
|
+
* the `pixelTolerance` from the pointer location. When a {@link module :ol/layer/BaseVector~BaseVectorLayer} is
|
|
156
156
|
* provided, only the rendered representation of the features on that layer will be considered.
|
|
157
157
|
*/
|
|
158
158
|
hitDetection?: boolean | import("../layer/BaseVector").default<any, any> | undefined;
|
package/interaction/Modify.js
CHANGED
|
@@ -109,7 +109,7 @@ var ModifyEventType = {
|
|
|
109
109
|
* must be provided with the `features` option.
|
|
110
110
|
* @property {boolean|import("../layer/BaseVector").default} [hitDetection] When configured, point
|
|
111
111
|
* features will be considered for modification based on their visual appearance, instead of being within
|
|
112
|
-
* the `pixelTolerance` from the pointer location. When a {@link module:ol/layer/BaseVector} is
|
|
112
|
+
* the `pixelTolerance` from the pointer location. When a {@link module:ol/layer/BaseVector~BaseVectorLayer} is
|
|
113
113
|
* provided, only the rendered representation of the features on that layer will be considered.
|
|
114
114
|
* @property {Collection<Feature>} [features]
|
|
115
115
|
* The features the interaction works on. If a feature collection is not
|
|
@@ -130,10 +130,10 @@ var ModifyEvent = /** @class */ (function (_super) {
|
|
|
130
130
|
* @param {ModifyEventType} type Type.
|
|
131
131
|
* @param {Collection<import("../Feature").FeatureLike>} features
|
|
132
132
|
* The features modified.
|
|
133
|
-
* @param {import("../MapBrowserEvent.js").default}
|
|
134
|
-
* Associated {@link module:ol/MapBrowserEvent}.
|
|
133
|
+
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent
|
|
134
|
+
* Associated {@link module:ol/MapBrowserEvent~MapBrowserEvent}.
|
|
135
135
|
*/
|
|
136
|
-
function ModifyEvent(type, features,
|
|
136
|
+
function ModifyEvent(type, features, mapBrowserEvent) {
|
|
137
137
|
var _this = _super.call(this, type) || this;
|
|
138
138
|
/**
|
|
139
139
|
* The features being modified.
|
|
@@ -142,11 +142,11 @@ var ModifyEvent = /** @class */ (function (_super) {
|
|
|
142
142
|
*/
|
|
143
143
|
_this.features = features;
|
|
144
144
|
/**
|
|
145
|
-
* Associated {@link module:ol/MapBrowserEvent}.
|
|
145
|
+
* Associated {@link module:ol/MapBrowserEvent~MapBrowserEvent}.
|
|
146
146
|
* @type {import("../MapBrowserEvent.js").default}
|
|
147
147
|
* @api
|
|
148
148
|
*/
|
|
149
|
-
_this.mapBrowserEvent =
|
|
149
|
+
_this.mapBrowserEvent = mapBrowserEvent;
|
|
150
150
|
return _this;
|
|
151
151
|
}
|
|
152
152
|
return ModifyEvent;
|
|
@@ -734,7 +734,7 @@ var Modify = /** @class */ (function (_super) {
|
|
|
734
734
|
return vertexFeature;
|
|
735
735
|
};
|
|
736
736
|
/**
|
|
737
|
-
* Handles the {@link module:ol/MapBrowserEvent map browser event} and may modify the geometry.
|
|
737
|
+
* Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} and may modify the geometry.
|
|
738
738
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
|
|
739
739
|
* @return {boolean} `false` to stop event propagation.
|
|
740
740
|
*/
|
|
@@ -155,7 +155,7 @@ var MouseWheelZoom = /** @class */ (function (_super) {
|
|
|
155
155
|
view.endInteraction(undefined, this.lastDelta_ ? (this.lastDelta_ > 0 ? 1 : -1) : 0, this.lastAnchor_);
|
|
156
156
|
};
|
|
157
157
|
/**
|
|
158
|
-
* Handles the {@link module:ol/MapBrowserEvent map browser event} (if it was a mousewheel-event) and eventually
|
|
158
|
+
* Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} (if it was a mousewheel-event) and eventually
|
|
159
159
|
* zooms the map.
|
|
160
160
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
|
|
161
161
|
* @return {boolean} `false` to stop event propagation.
|
package/interaction/Select.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export class SelectEvent extends Event {
|
|
|
71
71
|
* @param {Array<import("../Feature.js").default>} selected Selected features.
|
|
72
72
|
* @param {Array<import("../Feature.js").default>} deselected Deselected features.
|
|
73
73
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Associated
|
|
74
|
-
* {@link module:ol/MapBrowserEvent}.
|
|
74
|
+
* {@link module:ol/MapBrowserEvent~MapBrowserEvent}.
|
|
75
75
|
*/
|
|
76
76
|
constructor(type: SelectEventType, selected: Array<import("../Feature.js").default>, deselected: Array<import("../Feature.js").default>, mapBrowserEvent: import("../MapBrowserEvent.js").default<any>);
|
|
77
77
|
/**
|
|
@@ -87,7 +87,7 @@ export class SelectEvent extends Event {
|
|
|
87
87
|
*/
|
|
88
88
|
deselected: Array<import("../Feature.js").default>;
|
|
89
89
|
/**
|
|
90
|
-
* Associated {@link module:ol/MapBrowserEvent}.
|
|
90
|
+
* Associated {@link module:ol/MapBrowserEvent~MapBrowserEvent}.
|
|
91
91
|
* @type {import("../MapBrowserEvent.js").default}
|
|
92
92
|
* @api
|
|
93
93
|
*/
|
package/interaction/Select.js
CHANGED
|
@@ -113,7 +113,7 @@ var SelectEvent = /** @class */ (function (_super) {
|
|
|
113
113
|
* @param {Array<import("../Feature.js").default>} selected Selected features.
|
|
114
114
|
* @param {Array<import("../Feature.js").default>} deselected Deselected features.
|
|
115
115
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Associated
|
|
116
|
-
* {@link module:ol/MapBrowserEvent}.
|
|
116
|
+
* {@link module:ol/MapBrowserEvent~MapBrowserEvent}.
|
|
117
117
|
*/
|
|
118
118
|
function SelectEvent(type, selected, deselected, mapBrowserEvent) {
|
|
119
119
|
var _this = _super.call(this, type) || this;
|
|
@@ -130,7 +130,7 @@ var SelectEvent = /** @class */ (function (_super) {
|
|
|
130
130
|
*/
|
|
131
131
|
_this.deselected = deselected;
|
|
132
132
|
/**
|
|
133
|
-
* Associated {@link module:ol/MapBrowserEvent}.
|
|
133
|
+
* Associated {@link module:ol/MapBrowserEvent~MapBrowserEvent}.
|
|
134
134
|
* @type {import("../MapBrowserEvent.js").default}
|
|
135
135
|
* @api
|
|
136
136
|
*/
|
|
@@ -421,7 +421,7 @@ var Select = /** @class */ (function (_super) {
|
|
|
421
421
|
delete this.featureLayerAssociation_[getUid(feature)];
|
|
422
422
|
};
|
|
423
423
|
/**
|
|
424
|
-
* Handles the {@link module:ol/MapBrowserEvent map browser event} and may change the
|
|
424
|
+
* Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} and may change the
|
|
425
425
|
* selected state of features.
|
|
426
426
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
|
|
427
427
|
* @return {boolean} `false` to stop event propagation.
|
package/interaction/Snap.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export type Options = {
|
|
|
49
49
|
/**
|
|
50
50
|
* @classdesc
|
|
51
51
|
* Handles snapping of vector features while modifying or drawing them. The
|
|
52
|
-
* features can come from a {@link module:ol/source/Vector} or {@link module:ol/Collection~Collection}
|
|
52
|
+
* features can come from a {@link module:ol/source/Vector~VectorSource} or {@link module:ol/Collection~Collection}
|
|
53
53
|
* Any interaction object that allows the user to interact
|
|
54
54
|
* with the features using the mouse can benefit from the snapping, as long
|
|
55
55
|
* as it is added before.
|
package/interaction/Snap.js
CHANGED
|
@@ -70,7 +70,7 @@ var tempSegment = [];
|
|
|
70
70
|
/**
|
|
71
71
|
* @classdesc
|
|
72
72
|
* Handles snapping of vector features while modifying or drawing them. The
|
|
73
|
-
* features can come from a {@link module:ol/source/Vector} or {@link module:ol/Collection~Collection}
|
|
73
|
+
* features can come from a {@link module:ol/source/Vector~VectorSource} or {@link module:ol/Collection~Collection}
|
|
74
74
|
* Any interaction object that allows the user to interact
|
|
75
75
|
* with the features using the mouse can benefit from the snapping, as long
|
|
76
76
|
* as it is added before.
|
|
@@ -60,7 +60,7 @@ export class TranslateEvent extends Event {
|
|
|
60
60
|
*/
|
|
61
61
|
startCoordinate: import("../coordinate.js").Coordinate;
|
|
62
62
|
/**
|
|
63
|
-
* Associated {@link module:ol/MapBrowserEvent}.
|
|
63
|
+
* Associated {@link module:ol/MapBrowserEvent~MapBrowserEvent}.
|
|
64
64
|
* @type {import("../MapBrowserEvent.js").default}
|
|
65
65
|
* @api
|
|
66
66
|
*/
|
package/interaction/Translate.js
CHANGED
|
@@ -110,7 +110,7 @@ var TranslateEvent = /** @class */ (function (_super) {
|
|
|
110
110
|
*/
|
|
111
111
|
_this.startCoordinate = startCoordinate;
|
|
112
112
|
/**
|
|
113
|
-
* Associated {@link module:ol/MapBrowserEvent}.
|
|
113
|
+
* Associated {@link module:ol/MapBrowserEvent~MapBrowserEvent}.
|
|
114
114
|
* @type {import("../MapBrowserEvent.js").default}
|
|
115
115
|
* @api
|
|
116
116
|
*/
|
package/interaction.d.ts
CHANGED
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
* excluded by setting the appropriate option to false in the constructor
|
|
24
24
|
* options, but the order of the interactions is fixed. If you want to specify
|
|
25
25
|
* a different order for interactions, you will need to create your own
|
|
26
|
-
* {@link module:ol/interaction/Interaction} instances and insert
|
|
27
|
-
* them into a {@link module:ol/Collection} in the order you want
|
|
26
|
+
* {@link module:ol/interaction/Interaction~Interaction} instances and insert
|
|
27
|
+
* them into a {@link module:ol/Collection~Collection} in the order you want
|
|
28
28
|
* before creating your {@link module:ol/Map~Map} instance. Changing the order can
|
|
29
29
|
* be of interest if the event propagation needs to be stopped at a point.
|
|
30
30
|
* The default set of interactions, in sequence, is:
|
package/interaction.js
CHANGED
|
@@ -57,8 +57,8 @@ export { default as Translate } from './interaction/Translate.js';
|
|
|
57
57
|
* excluded by setting the appropriate option to false in the constructor
|
|
58
58
|
* options, but the order of the interactions is fixed. If you want to specify
|
|
59
59
|
* a different order for interactions, you will need to create your own
|
|
60
|
-
* {@link module:ol/interaction/Interaction} instances and insert
|
|
61
|
-
* them into a {@link module:ol/Collection} in the order you want
|
|
60
|
+
* {@link module:ol/interaction/Interaction~Interaction} instances and insert
|
|
61
|
+
* them into a {@link module:ol/Collection~Collection} in the order you want
|
|
62
62
|
* before creating your {@link module:ol/Map~Map} instance. Changing the order can
|
|
63
63
|
* be of interest if the event propagation needs to be stopped at a point.
|
|
64
64
|
* The default set of interactions, in sequence, is:
|
package/layer/Base.d.ts
CHANGED
|
@@ -108,8 +108,8 @@ export type Options = {
|
|
|
108
108
|
* @classdesc
|
|
109
109
|
* Abstract base class; normally only used for creating subclasses and not
|
|
110
110
|
* instantiated in apps.
|
|
111
|
-
* Note that with {@link module:ol/layer/Base} and all its subclasses, any property set in
|
|
112
|
-
* the options is set as a {@link module:ol/Object} property on the layer object, so
|
|
111
|
+
* Note that with {@link module:ol/layer/Base~BaseLayer} and all its subclasses, any property set in
|
|
112
|
+
* the options is set as a {@link module:ol/Object~BaseObject} property on the layer object, so
|
|
113
113
|
* is observable, and has get/set accessors.
|
|
114
114
|
*
|
|
115
115
|
* @api
|
package/layer/Base.js
CHANGED
|
@@ -65,8 +65,8 @@ import { clamp } from '../math.js';
|
|
|
65
65
|
* @classdesc
|
|
66
66
|
* Abstract base class; normally only used for creating subclasses and not
|
|
67
67
|
* instantiated in apps.
|
|
68
|
-
* Note that with {@link module:ol/layer/Base} and all its subclasses, any property set in
|
|
69
|
-
* the options is set as a {@link module:ol/Object} property on the layer object, so
|
|
68
|
+
* Note that with {@link module:ol/layer/Base~BaseLayer} and all its subclasses, any property set in
|
|
69
|
+
* the options is set as a {@link module:ol/Object~BaseObject} property on the layer object, so
|
|
70
70
|
* is observable, and has get/set accessors.
|
|
71
71
|
*
|
|
72
72
|
* @api
|
package/layer/Group.d.ts
CHANGED
|
@@ -147,19 +147,19 @@ declare class LayerGroup extends BaseLayer {
|
|
|
147
147
|
*/
|
|
148
148
|
private handleLayersRemove_;
|
|
149
149
|
/**
|
|
150
|
-
* Returns the {@link module:ol/Collection collection} of {@link module:ol/layer/Layer~Layer layers}
|
|
150
|
+
* Returns the {@link module:ol/Collection~Collection collection} of {@link module:ol/layer/Layer~Layer layers}
|
|
151
151
|
* in this group.
|
|
152
152
|
* @return {!import("../Collection.js").default<import("./Base.js").default>} Collection of
|
|
153
|
-
* {@link module:ol/layer/Base layers} that are part of this group.
|
|
153
|
+
* {@link module:ol/layer/Base~BaseLayer layers} that are part of this group.
|
|
154
154
|
* @observable
|
|
155
155
|
* @api
|
|
156
156
|
*/
|
|
157
157
|
getLayers(): import("../Collection.js").default<import("./Base.js").default>;
|
|
158
158
|
/**
|
|
159
|
-
* Set the {@link module:ol/Collection collection} of {@link module:ol/layer/Layer~Layer layers}
|
|
159
|
+
* Set the {@link module:ol/Collection~Collection collection} of {@link module:ol/layer/Layer~Layer layers}
|
|
160
160
|
* in this group.
|
|
161
161
|
* @param {!import("../Collection.js").default<import("./Base.js").default>} layers Collection of
|
|
162
|
-
* {@link module:ol/layer/Base layers} that are part of this group.
|
|
162
|
+
* {@link module:ol/layer/Base~BaseLayer layers} that are part of this group.
|
|
163
163
|
* @observable
|
|
164
164
|
* @api
|
|
165
165
|
*/
|