ol 6.9.1-dev.1636904863247 → 6.9.1-dev.1636909254707

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.
@@ -30,8 +30,8 @@ export type Options = {
30
30
  */
31
31
  extent?: number[];
32
32
  /**
33
- * Style for the drawn extent box. Defaults to
34
- * {@link module:ol/style/Style~createEditing()['Polygon']}
33
+ * Style for the drawn extent box. Defaults to the `Polygon` editing style
34
+ * documented in {@link module:ol/style/Style~Style}
35
35
  */
36
36
  boxStyle?: import("../style/Style.js").default | import("../style/Style.js").default[] | ((arg0: import("../render/Feature.js").default | Feature<import("../geom/Geometry.js").default>, arg1: number) => void | import("../style/Style.js").default | import("../style/Style.js").default[]);
37
37
  /**
@@ -40,8 +40,8 @@ export type Options = {
40
40
  */
41
41
  pixelTolerance?: number;
42
42
  /**
43
- * Style for the cursor used to draw the extent. Defaults to
44
- * {@link module:ol/style/Style~createEditing()['Point']}
43
+ * Style for the cursor used to draw the extent. Defaults to the `Point` editing style
44
+ * documented in {@link module:ol/style/Style~Style}
45
45
  */
46
46
  pointerStyle?: import("../style/Style.js").default | import("../style/Style.js").default[] | ((arg0: import("../render/Feature.js").default | Feature<import("../geom/Geometry.js").default>, arg1: number) => void | import("../style/Style.js").default | import("../style/Style.js").default[]);
47
47
  /**
@@ -39,13 +39,13 @@ import { toUserExtent } from '../proj.js';
39
39
  * @property {import("../extent.js").Extent} [extent] Initial extent. Defaults to no
40
40
  * initial extent.
41
41
  * @property {import("../style/Style.js").StyleLike} [boxStyle]
42
- * Style for the drawn extent box. Defaults to
43
- * {@link module:ol/style/Style~createEditing()['Polygon']}
42
+ * Style for the drawn extent box. Defaults to the `Polygon` editing style
43
+ * documented in {@link module:ol/style/Style~Style}
44
44
  * @property {number} [pixelTolerance=10] Pixel tolerance for considering the
45
45
  * pointer close enough to a segment or vertex for editing.
46
46
  * @property {import("../style/Style.js").StyleLike} [pointerStyle]
47
- * Style for the cursor used to draw the extent. Defaults to
48
- * {@link module:ol/style/Style~createEditing()['Point']}
47
+ * Style for the cursor used to draw the extent. Defaults to the `Point` editing style
48
+ * documented in {@link module:ol/style/Style~Style}
49
49
  * @property {boolean} [wrapX=false] Wrap the drawn extent across multiple maps
50
50
  * in the X direction? Only affects visuals, not functionality.
51
51
  */
@@ -28,7 +28,7 @@
28
28
  * @property {import("../style/Style.js").StyleLike} [style]
29
29
  * Style used for the modification point or vertex. For linestrings and polygons, this will
30
30
  * be the affected vertex, for circles a point along the circle, and for points the actual
31
- * point. If not configured, the default edit style is used (see {@link module:ol/style}).
31
+ * point. If not configured, the default edit style is used (see {@link module:ol/style/Style~Style}).
32
32
  * When using a style function, the point feature passed to the function will have a `features`
33
33
  * property - an array whose entries are the features that are being modified, and a `geometries`
34
34
  * property - an array whose entries are the geometries that are being modified. Both arrays are
@@ -136,7 +136,7 @@ export type Options = {
136
136
  /**
137
137
  * Style used for the modification point or vertex. For linestrings and polygons, this will
138
138
  * be the affected vertex, for circles a point along the circle, and for points the actual
139
- * point. If not configured, the default edit style is used (see {@link module:ol/style}).
139
+ * point. If not configured, the default edit style is used (see {@link module:ol/style/Style~Style}).
140
140
  * When using a style function, the point feature passed to the function will have a `features`
141
141
  * property - an array whose entries are the features that are being modified, and a `geometries`
142
142
  * property - an array whose entries are the geometries that are being modified. Both arrays are
@@ -98,7 +98,7 @@ var ModifyEventType = {
98
98
  * @property {import("../style/Style.js").StyleLike} [style]
99
99
  * Style used for the modification point or vertex. For linestrings and polygons, this will
100
100
  * be the affected vertex, for circles a point along the circle, and for points the actual
101
- * point. If not configured, the default edit style is used (see {@link module:ol/style}).
101
+ * point. If not configured, the default edit style is used (see {@link module:ol/style/Style~Style}).
102
102
  * When using a style function, the point feature passed to the function will have a `features`
103
103
  * property - an array whose entries are the features that are being modified, and a `geometries`
104
104
  * property - an array whose entries are the geometries that are being modified. Both arrays are
@@ -29,7 +29,7 @@
29
29
  * selectable.
30
30
  * @property {import("../style/Style.js").StyleLike|null} [style]
31
31
  * Style for the selected features. By default the default edit style is used
32
- * (see {@link module:ol/style}). Set to `null` if this interaction should not apply
32
+ * (see {@link module:ol/style/Style~Style}). Set to `null` if this interaction should not apply
33
33
  * any style changes for selected features.
34
34
  * If set to a falsey value, the selected feature's style will not change.
35
35
  * @property {import("../events/condition.js").Condition} [removeCondition] A function
@@ -133,7 +133,7 @@ export type Options = {
133
133
  layers?: import("../layer/Layer.js").default<any>[] | ((arg0: import("../layer/Layer.js").default<import("../source/Source.js").default>) => boolean);
134
134
  /**
135
135
  * Style for the selected features. By default the default edit style is used
136
- * (see {@link module:ol/style}). Set to `null` if this interaction should not apply
136
+ * (see {@link module:ol/style/Style~Style}). Set to `null` if this interaction should not apply
137
137
  * any style changes for selected features.
138
138
  * If set to a falsey value, the selected feature's style will not change.
139
139
  */
@@ -69,7 +69,7 @@ var SelectEventType = {
69
69
  * selectable.
70
70
  * @property {import("../style/Style.js").StyleLike|null} [style]
71
71
  * Style for the selected features. By default the default edit style is used
72
- * (see {@link module:ol/style}). Set to `null` if this interaction should not apply
72
+ * (see {@link module:ol/style/Style~Style}). Set to `null` if this interaction should not apply
73
73
  * any style changes for selected features.
74
74
  * If set to a falsey value, the selected feature's style will not change.
75
75
  * @property {import("../events/condition.js").Condition} [removeCondition] A function
@@ -77,7 +77,7 @@ export type Options<VectorSourceType extends import("../source/Vector.js").defau
77
77
  declutter?: boolean;
78
78
  /**
79
79
  * Layer style. When set to `null`, only
80
- * features that have their own style will be rendered. See {@link module:ol/style} for default style
80
+ * features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
81
81
  * which will be used if this is not set.
82
82
  */
83
83
  style?: import("../style/Style.js").default | import("../style/Style.js").default[] | ((arg0: import("../render/Feature.js").default | import("../Feature.js").default<import("../geom/Geometry.js").default>, arg1: number) => void | import("../style/Style.js").default | import("../style/Style.js").default[]) | null;
@@ -201,7 +201,7 @@ declare class BaseVectorLayer<VectorSourceType extends import("../source/Vector.
201
201
  * an array of styles. If set to `null`, the layer has no style (a `null` style),
202
202
  * so only features that have their own styles will be rendered in the layer. Call
203
203
  * `setStyle()` without arguments to reset to the default style. See
204
- * {@link module:ol/style} for information on the default style.
204
+ * {@link module:ol/style/Style~Style} for information on the default style.
205
205
  * @param {import("../style/Style.js").StyleLike|null} [opt_style] Layer style.
206
206
  * @api
207
207
  */
@@ -57,7 +57,7 @@ import { createDefaultStyle, toFunction as toStyleFunction, } from '../style/Sty
57
57
  * Higher z-index means higher priority. Within the same z-index, a feature rendered before another has
58
58
  * higher priority.
59
59
  * @property {import("../style/Style.js").StyleLike|null} [style] Layer style. When set to `null`, only
60
- * features that have their own style will be rendered. See {@link module:ol/style} for default style
60
+ * features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
61
61
  * which will be used if this is not set.
62
62
  * @property {boolean} [updateWhileAnimating=false] When set to `true`, feature batches will
63
63
  * be recreated during animations. This means that no vectors will be shown clipped, but the
@@ -232,7 +232,7 @@ var BaseVectorLayer = /** @class */ (function (_super) {
232
232
  * an array of styles. If set to `null`, the layer has no style (a `null` style),
233
233
  * so only features that have their own styles will be rendered in the layer. Call
234
234
  * `setStyle()` without arguments to reset to the default style. See
235
- * {@link module:ol/style} for information on the default style.
235
+ * {@link module:ol/style/Style~Style} for information on the default style.
236
236
  * @param {import("../style/Style.js").StyleLike|null} [opt_style] Layer style.
237
237
  * @api
238
238
  */
@@ -75,7 +75,7 @@ export type Options<VectorSourceType extends import("../source/Vector.js").defau
75
75
  declutter?: boolean;
76
76
  /**
77
77
  * Layer style. When set to `null`, only
78
- * features that have their own style will be rendered. See {@link module:ol/style} for default style
78
+ * features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
79
79
  * which will be used if this is not set.
80
80
  */
81
81
  style?: import("../style/Style.js").default | import("../style/Style.js").default[] | ((arg0: import("../render/Feature.js").default | import("../Feature.js").default<import("../geom/Geometry.js").default>, arg1: number) => void | import("../style/Style.js").default | import("../style/Style.js").default[]) | null;
@@ -126,7 +126,7 @@ export type Options<VectorSourceType extends import("../source/Vector.js").defau
126
126
  * by the `zIndex` of the style and the render order of features. Higher z-index means higher priority.
127
127
  * Within the same z-index, a feature rendered before another has higher priority.
128
128
  * @property {import("../style/Style.js").StyleLike|null} [style] Layer style. When set to `null`, only
129
- * features that have their own style will be rendered. See {@link module:ol/style} for default style
129
+ * features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
130
130
  * which will be used if this is not set.
131
131
  * @property {number} [imageRatio=1] Ratio by which the rendered extent should be larger than the
132
132
  * viewport extent. A larger ratio avoids cut images during panning, but will cause a decrease in performance.
@@ -54,7 +54,7 @@ import { assign } from '../obj.js';
54
54
  * by the `zIndex` of the style and the render order of features. Higher z-index means higher priority.
55
55
  * Within the same z-index, a feature rendered before another has higher priority.
56
56
  * @property {import("../style/Style.js").StyleLike|null} [style] Layer style. When set to `null`, only
57
- * features that have their own style will be rendered. See {@link module:ol/style} for default style
57
+ * features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
58
58
  * which will be used if this is not set.
59
59
  * @property {number} [imageRatio=1] Ratio by which the rendered extent should be larger than the
60
60
  * viewport extent. A larger ratio avoids cut images during panning, but will cause a decrease in performance.
@@ -93,7 +93,7 @@ export type Options = {
93
93
  declutter?: boolean;
94
94
  /**
95
95
  * Layer style. When set to `null`, only
96
- * features that have their own style will be rendered. See {@link module:ol/style} for default style
96
+ * features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
97
97
  * which will be used if this is not set.
98
98
  */
99
99
  style?: import("../style/Style.js").default | import("../style/Style.js").default[] | ((arg0: import("../render/Feature.js").default | import("../Feature.js").default<import("../geom/Geometry.js").default>, arg1: number) => void | import("../style/Style.js").default | import("../style/Style.js").default[]) | null;
@@ -179,7 +179,7 @@ export type Options = {
179
179
  * Higher z-index means higher priority. Within the same z-index, a feature rendered before another has
180
180
  * higher priority.
181
181
  * @property {import("../style/Style.js").StyleLike|null} [style] Layer style. When set to `null`, only
182
- * features that have their own style will be rendered. See {@link module:ol/style} for default style
182
+ * features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
183
183
  * which will be used if this is not set.
184
184
  * @property {boolean} [updateWhileAnimating=false] When set to `true`, feature batches will be
185
185
  * recreated during animations. This means that no vectors will be shown clipped, but the setting
@@ -76,7 +76,7 @@ import { assign } from '../obj.js';
76
76
  * Higher z-index means higher priority. Within the same z-index, a feature rendered before another has
77
77
  * higher priority.
78
78
  * @property {import("../style/Style.js").StyleLike|null} [style] Layer style. When set to `null`, only
79
- * features that have their own style will be rendered. See {@link module:ol/style} for default style
79
+ * features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
80
80
  * which will be used if this is not set.
81
81
  * @property {boolean} [updateWhileAnimating=false] When set to `true`, feature batches will be
82
82
  * recreated during animations. This means that no vectors will be shown clipped, but the setting
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "6.9.1-dev.1636904863247",
3
+ "version": "6.9.1-dev.1636909254707",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
@@ -30,13 +30,13 @@ import {toUserExtent} from '../proj.js';
30
30
  * @property {import("../extent.js").Extent} [extent] Initial extent. Defaults to no
31
31
  * initial extent.
32
32
  * @property {import("../style/Style.js").StyleLike} [boxStyle]
33
- * Style for the drawn extent box. Defaults to
34
- * {@link module:ol/style/Style~createEditing()['Polygon']}
33
+ * Style for the drawn extent box. Defaults to the `Polygon` editing style
34
+ * documented in {@link module:ol/style/Style~Style}
35
35
  * @property {number} [pixelTolerance=10] Pixel tolerance for considering the
36
36
  * pointer close enough to a segment or vertex for editing.
37
37
  * @property {import("../style/Style.js").StyleLike} [pointerStyle]
38
- * Style for the cursor used to draw the extent. Defaults to
39
- * {@link module:ol/style/Style~createEditing()['Point']}
38
+ * Style for the cursor used to draw the extent. Defaults to the `Point` editing style
39
+ * documented in {@link module:ol/style/Style~Style}
40
40
  * @property {boolean} [wrapX=false] Wrap the drawn extent across multiple maps
41
41
  * in the X direction? Only affects visuals, not functionality.
42
42
  */
@@ -110,7 +110,7 @@ const ModifyEventType = {
110
110
  * @property {import("../style/Style.js").StyleLike} [style]
111
111
  * Style used for the modification point or vertex. For linestrings and polygons, this will
112
112
  * be the affected vertex, for circles a point along the circle, and for points the actual
113
- * point. If not configured, the default edit style is used (see {@link module:ol/style}).
113
+ * point. If not configured, the default edit style is used (see {@link module:ol/style/Style~Style}).
114
114
  * When using a style function, the point feature passed to the function will have a `features`
115
115
  * property - an array whose entries are the features that are being modified, and a `geometries`
116
116
  * property - an array whose entries are the geometries that are being modified. Both arrays are
@@ -57,7 +57,7 @@ const SelectEventType = {
57
57
  * selectable.
58
58
  * @property {import("../style/Style.js").StyleLike|null} [style]
59
59
  * Style for the selected features. By default the default edit style is used
60
- * (see {@link module:ol/style}). Set to `null` if this interaction should not apply
60
+ * (see {@link module:ol/style/Style~Style}). Set to `null` if this interaction should not apply
61
61
  * any style changes for selected features.
62
62
  * If set to a falsey value, the selected feature's style will not change.
63
63
  * @property {import("../events/condition.js").Condition} [removeCondition] A function
@@ -46,7 +46,7 @@ import {
46
46
  * Higher z-index means higher priority. Within the same z-index, a feature rendered before another has
47
47
  * higher priority.
48
48
  * @property {import("../style/Style.js").StyleLike|null} [style] Layer style. When set to `null`, only
49
- * features that have their own style will be rendered. See {@link module:ol/style} for default style
49
+ * features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
50
50
  * which will be used if this is not set.
51
51
  * @property {boolean} [updateWhileAnimating=false] When set to `true`, feature batches will
52
52
  * be recreated during animations. This means that no vectors will be shown clipped, but the
@@ -242,7 +242,7 @@ class BaseVectorLayer extends Layer {
242
242
  * an array of styles. If set to `null`, the layer has no style (a `null` style),
243
243
  * so only features that have their own styles will be rendered in the layer. Call
244
244
  * `setStyle()` without arguments to reset to the default style. See
245
- * {@link module:ol/style} for information on the default style.
245
+ * {@link module:ol/style/Style~Style} for information on the default style.
246
246
  * @param {import("../style/Style.js").StyleLike|null} [opt_style] Layer style.
247
247
  * @api
248
248
  */
@@ -40,7 +40,7 @@ import {assign} from '../obj.js';
40
40
  * by the `zIndex` of the style and the render order of features. Higher z-index means higher priority.
41
41
  * Within the same z-index, a feature rendered before another has higher priority.
42
42
  * @property {import("../style/Style.js").StyleLike|null} [style] Layer style. When set to `null`, only
43
- * features that have their own style will be rendered. See {@link module:ol/style} for default style
43
+ * features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
44
44
  * which will be used if this is not set.
45
45
  * @property {number} [imageRatio=1] Ratio by which the rendered extent should be larger than the
46
46
  * viewport extent. A larger ratio avoids cut images during panning, but will cause a decrease in performance.
@@ -63,7 +63,7 @@ import {assign} from '../obj.js';
63
63
  * Higher z-index means higher priority. Within the same z-index, a feature rendered before another has
64
64
  * higher priority.
65
65
  * @property {import("../style/Style.js").StyleLike|null} [style] Layer style. When set to `null`, only
66
- * features that have their own style will be rendered. See {@link module:ol/style} for default style
66
+ * features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
67
67
  * which will be used if this is not set.
68
68
  * @property {boolean} [updateWhileAnimating=false] When set to `true`, feature batches will be
69
69
  * recreated during animations. This means that no vectors will be shown clipped, but the setting
@@ -11,7 +11,7 @@ import {assert} from '../asserts.js';
11
11
  /**
12
12
  * A function that takes an {@link module:ol/Feature} and a `{number}`
13
13
  * representing the view's resolution. The function should return a
14
- * {@link module:ol/style/Style} or an array of them. This way e.g. a
14
+ * {@link module:ol/style/Style~Style} or an array of them. This way e.g. a
15
15
  * vector layer can be styled. If the function returns `undefined`, the
16
16
  * feature will not be rendered.
17
17
  *
@@ -66,83 +66,86 @@ import {assert} from '../asserts.js';
66
66
  *
67
67
  * If no style is defined, the following default style is used:
68
68
  * ```js
69
- * import {Fill, Stroke, Circle, Style} from 'ol/style';
69
+ * import {Circle, Fill, Stroke, Style} from 'ol/style';
70
70
  *
71
- * var fill = new Fill({
72
- * color: 'rgba(255,255,255,0.4)'
71
+ * const fill = new Fill({
72
+ * color: 'rgba(255,255,255,0.4)',
73
73
  * });
74
- * var stroke = new Stroke({
74
+ * const stroke = new Stroke({
75
75
  * color: '#3399CC',
76
- * width: 1.25
76
+ * width: 1.25,
77
77
  * });
78
- * var styles = [
78
+ * const styles = [
79
79
  * new Style({
80
80
  * image: new Circle({
81
81
  * fill: fill,
82
82
  * stroke: stroke,
83
- * radius: 5
83
+ * radius: 5,
84
84
  * }),
85
85
  * fill: fill,
86
- * stroke: stroke
87
- * })
86
+ * stroke: stroke,
87
+ * }),
88
88
  * ];
89
89
  * ```
90
90
  *
91
91
  * A separate editing style has the following defaults:
92
92
  * ```js
93
- * import {Fill, Stroke, Circle, Style} from 'ol/style';
94
93
  * import GeometryType from 'ol/geom/GeometryType';
94
+ * import {Circle, Fill, Stroke, Style} from 'ol/style';
95
95
  *
96
- * var white = [255, 255, 255, 1];
97
- * var blue = [0, 153, 255, 1];
98
- * var width = 3;
96
+ * const styles = {};
97
+ * const white = [255, 255, 255, 1];
98
+ * const blue = [0, 153, 255, 1];
99
+ * const width = 3;
99
100
  * styles[GeometryType.POLYGON] = [
100
101
  * new Style({
101
102
  * fill: new Fill({
102
- * color: [255, 255, 255, 0.5]
103
- * })
104
- * })
103
+ * color: [255, 255, 255, 0.5],
104
+ * }),
105
+ * }),
105
106
  * ];
106
- * styles[GeometryType.MULTI_POLYGON] =
107
- * styles[GeometryType.POLYGON];
107
+ * styles[GeometryType.MULTI_POLYGON] = styles[GeometryType.POLYGON];
108
+ *
108
109
  * styles[GeometryType.LINE_STRING] = [
109
110
  * new Style({
110
111
  * stroke: new Stroke({
111
112
  * color: white,
112
- * width: width + 2
113
- * })
113
+ * width: width + 2,
114
+ * }),
114
115
  * }),
115
116
  * new Style({
116
117
  * stroke: new Stroke({
117
118
  * color: blue,
118
- * width: width
119
- * })
120
- * })
119
+ * width: width,
120
+ * }),
121
+ * }),
121
122
  * ];
122
- * styles[GeometryType.MULTI_LINE_STRING] =
123
- * styles[GeometryType.LINE_STRING];
123
+ * styles[GeometryType.MULTI_LINE_STRING] = styles[GeometryType.LINE_STRING];
124
+ *
125
+ * styles[GeometryType.CIRCLE] = styles[GeometryType.POLYGON].concat(
126
+ * styles[GeometryType.LINE_STRING]
127
+ * );
128
+ *
124
129
  * styles[GeometryType.POINT] = [
125
130
  * new Style({
126
131
  * image: new Circle({
127
132
  * radius: width * 2,
128
133
  * fill: new Fill({
129
- * color: blue
134
+ * color: blue,
130
135
  * }),
131
136
  * stroke: new Stroke({
132
137
  * color: white,
133
- * width: width / 2
134
- * })
138
+ * width: width / 2,
139
+ * }),
135
140
  * }),
136
- * zIndex: Infinity
137
- * })
141
+ * zIndex: Infinity,
142
+ * }),
138
143
  * ];
139
- * styles[GeometryType.MULTI_POINT] =
140
- * styles[GeometryType.POINT];
141
- * styles[GeometryType.GEOMETRY_COLLECTION] =
142
- * styles[GeometryType.POLYGON].concat(
143
- * styles[GeometryType.LINE_STRING],
144
- * styles[GeometryType.POINT]
145
- * );
144
+ * styles[GeometryType.MULTI_POINT] = styles[GeometryType.POINT];
145
+ *
146
+ * styles[GeometryType.GEOMETRY_COLLECTION] = styles[
147
+ * GeometryType.POLYGON
148
+ * ].concat(styles[GeometryType.LINE_STRING], styles[GeometryType.POINT]);
146
149
  * ```
147
150
  *
148
151
  * @api
package/style/Style.d.ts CHANGED
@@ -22,7 +22,7 @@ export default Style;
22
22
  /**
23
23
  * A function that takes an {@link module:ol/Feature} and a `{number}`
24
24
  * representing the view's resolution. The function should return a
25
- * {@link module:ol/style/Style} or an array of them. This way e.g. a
25
+ * {@link module:ol/style/Style~Style} or an array of them. This way e.g. a
26
26
  * vector layer can be styled. If the function returns `undefined`, the
27
27
  * feature will not be rendered.
28
28
  */
@@ -83,7 +83,7 @@ export type Options = {
83
83
  /**
84
84
  * A function that takes an {@link module:ol/Feature} and a `{number}`
85
85
  * representing the view's resolution. The function should return a
86
- * {@link module:ol/style/Style} or an array of them. This way e.g. a
86
+ * {@link module:ol/style/Style~Style} or an array of them. This way e.g. a
87
87
  * vector layer can be styled. If the function returns `undefined`, the
88
88
  * feature will not be rendered.
89
89
  *
@@ -133,83 +133,86 @@ export type Options = {
133
133
  *
134
134
  * If no style is defined, the following default style is used:
135
135
  * ```js
136
- * import {Fill, Stroke, Circle, Style} from 'ol/style';
136
+ * import {Circle, Fill, Stroke, Style} from 'ol/style';
137
137
  *
138
- * var fill = new Fill({
139
- * color: 'rgba(255,255,255,0.4)'
138
+ * const fill = new Fill({
139
+ * color: 'rgba(255,255,255,0.4)',
140
140
  * });
141
- * var stroke = new Stroke({
141
+ * const stroke = new Stroke({
142
142
  * color: '#3399CC',
143
- * width: 1.25
143
+ * width: 1.25,
144
144
  * });
145
- * var styles = [
145
+ * const styles = [
146
146
  * new Style({
147
147
  * image: new Circle({
148
148
  * fill: fill,
149
149
  * stroke: stroke,
150
- * radius: 5
150
+ * radius: 5,
151
151
  * }),
152
152
  * fill: fill,
153
- * stroke: stroke
154
- * })
153
+ * stroke: stroke,
154
+ * }),
155
155
  * ];
156
156
  * ```
157
157
  *
158
158
  * A separate editing style has the following defaults:
159
159
  * ```js
160
- * import {Fill, Stroke, Circle, Style} from 'ol/style';
161
160
  * import GeometryType from 'ol/geom/GeometryType';
161
+ * import {Circle, Fill, Stroke, Style} from 'ol/style';
162
162
  *
163
- * var white = [255, 255, 255, 1];
164
- * var blue = [0, 153, 255, 1];
165
- * var width = 3;
163
+ * const styles = {};
164
+ * const white = [255, 255, 255, 1];
165
+ * const blue = [0, 153, 255, 1];
166
+ * const width = 3;
166
167
  * styles[GeometryType.POLYGON] = [
167
168
  * new Style({
168
169
  * fill: new Fill({
169
- * color: [255, 255, 255, 0.5]
170
- * })
171
- * })
170
+ * color: [255, 255, 255, 0.5],
171
+ * }),
172
+ * }),
172
173
  * ];
173
- * styles[GeometryType.MULTI_POLYGON] =
174
- * styles[GeometryType.POLYGON];
174
+ * styles[GeometryType.MULTI_POLYGON] = styles[GeometryType.POLYGON];
175
+ *
175
176
  * styles[GeometryType.LINE_STRING] = [
176
177
  * new Style({
177
178
  * stroke: new Stroke({
178
179
  * color: white,
179
- * width: width + 2
180
- * })
180
+ * width: width + 2,
181
+ * }),
181
182
  * }),
182
183
  * new Style({
183
184
  * stroke: new Stroke({
184
185
  * color: blue,
185
- * width: width
186
- * })
187
- * })
186
+ * width: width,
187
+ * }),
188
+ * }),
188
189
  * ];
189
- * styles[GeometryType.MULTI_LINE_STRING] =
190
- * styles[GeometryType.LINE_STRING];
190
+ * styles[GeometryType.MULTI_LINE_STRING] = styles[GeometryType.LINE_STRING];
191
+ *
192
+ * styles[GeometryType.CIRCLE] = styles[GeometryType.POLYGON].concat(
193
+ * styles[GeometryType.LINE_STRING]
194
+ * );
195
+ *
191
196
  * styles[GeometryType.POINT] = [
192
197
  * new Style({
193
198
  * image: new Circle({
194
199
  * radius: width * 2,
195
200
  * fill: new Fill({
196
- * color: blue
201
+ * color: blue,
197
202
  * }),
198
203
  * stroke: new Stroke({
199
204
  * color: white,
200
- * width: width / 2
201
- * })
205
+ * width: width / 2,
206
+ * }),
202
207
  * }),
203
- * zIndex: Infinity
204
- * })
208
+ * zIndex: Infinity,
209
+ * }),
205
210
  * ];
206
- * styles[GeometryType.MULTI_POINT] =
207
- * styles[GeometryType.POINT];
208
- * styles[GeometryType.GEOMETRY_COLLECTION] =
209
- * styles[GeometryType.POLYGON].concat(
210
- * styles[GeometryType.LINE_STRING],
211
- * styles[GeometryType.POINT]
212
- * );
211
+ * styles[GeometryType.MULTI_POINT] = styles[GeometryType.POINT];
212
+ *
213
+ * styles[GeometryType.GEOMETRY_COLLECTION] = styles[
214
+ * GeometryType.POLYGON
215
+ * ].concat(styles[GeometryType.LINE_STRING], styles[GeometryType.POINT]);
213
216
  * ```
214
217
  *
215
218
  * @api
@@ -1 +1 @@
1
- {"version":3,"file":"Style.d.ts","sourceRoot":"","sources":["../src/style/Style.js"],"names":[],"mappings":"AAqaA;;;;;;;GAOG;AACH,sXAsBC;AAOD;;;;GAIG;AACH,0LA2BC;AAED;;;GAGG;AACH,0CAyDC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/hBD;;;;;;;;GAQG;AAEH;;;GAGG;AAEH;;;;;;GAMG;AAEH;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FG;AACH;IACE;;OAEG;IACH,+CA+DC;IA5DC;;;OAGG;IACH,kBAAqB;IAErB;;;OAGG;IACH,0BAAgD;IAMhD;;;OAGG;IACH,cAA6D;IAE7D;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,kBAAyE;IAEzE;;;OAGG;IACH,8BAGU;IAEV;;;OAGG;IACH,gBAAmE;IAEnE;;;OAGG;IACH,cAA6D;IAE7D;;;OAGG;IACH,gBAA6B;IAG/B;;;;OAIG;IACH,eAgBC;IAED;;;;;OAKG;IACH,iHAEC;IAED;;;;;OAKG;IACH,+HAEC;IAED;;;;;OAKG;IACH,2IAEC;IAED;;;;;OAKG;IACH,6HAEC;IAED;;;;;;OAMG;IACH,wRAEC;IAED;;;;;OAKG;IACH,6OAEC;IAED;;;;OAIG;IACH,gBAEC;IAED;;;;OAIG;IACH,0BAEC;IAED;;;;OAIG;IACH,yCAEC;IAED;;;;OAIG;IACH,oDAEC;IAED;;;;OAIG;IACH,oBAEC;IAED;;;;OAIG;IACH,gCAEC;IAED;;;;OAIG;IACH,uCAEC;IAED;;;;OAIG;IACH,iDAEC;IAED;;;;OAIG;IACH,gCAEC;IAED;;;;;;;OAOG;IACH,sSAiBC;IAED;;;;;OAKG;IACH,4CAEC;CACF"}
1
+ {"version":3,"file":"Style.d.ts","sourceRoot":"","sources":["../src/style/Style.js"],"names":[],"mappings":"AAwaA;;;;;;;GAOG;AACH,sXAsBC;AAOD;;;;GAIG;AACH,0LA2BC;AAED;;;GAGG;AACH,0CAyDC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAliBD;;;;;;;;GAQG;AAEH;;;GAGG;AAEH;;;;;;GAMG;AAEH;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6FG;AACH;IACE;;OAEG;IACH,+CA+DC;IA5DC;;;OAGG;IACH,kBAAqB;IAErB;;;OAGG;IACH,0BAAgD;IAMhD;;;OAGG;IACH,cAA6D;IAE7D;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,kBAAyE;IAEzE;;;OAGG;IACH,8BAGU;IAEV;;;OAGG;IACH,gBAAmE;IAEnE;;;OAGG;IACH,cAA6D;IAE7D;;;OAGG;IACH,gBAA6B;IAG/B;;;;OAIG;IACH,eAgBC;IAED;;;;;OAKG;IACH,iHAEC;IAED;;;;;OAKG;IACH,+HAEC;IAED;;;;;OAKG;IACH,2IAEC;IAED;;;;;OAKG;IACH,6HAEC;IAED;;;;;;OAMG;IACH,wRAEC;IAED;;;;;OAKG;IACH,6OAEC;IAED;;;;OAIG;IACH,gBAEC;IAED;;;;OAIG;IACH,0BAEC;IAED;;;;OAIG;IACH,yCAEC;IAED;;;;OAIG;IACH,oDAEC;IAED;;;;OAIG;IACH,oBAEC;IAED;;;;OAIG;IACH,gCAEC;IAED;;;;OAIG;IACH,uCAEC;IAED;;;;OAIG;IACH,iDAEC;IAED;;;;OAIG;IACH,gCAEC;IAED;;;;;;;OAOG;IACH,sSAiBC;IAED;;;;;OAKG;IACH,4CAEC;CACF"}
package/style/Style.js CHANGED
@@ -9,7 +9,7 @@ import { assert } from '../asserts.js';
9
9
  /**
10
10
  * A function that takes an {@link module:ol/Feature} and a `{number}`
11
11
  * representing the view's resolution. The function should return a
12
- * {@link module:ol/style/Style} or an array of them. This way e.g. a
12
+ * {@link module:ol/style/Style~Style} or an array of them. This way e.g. a
13
13
  * vector layer can be styled. If the function returns `undefined`, the
14
14
  * feature will not be rendered.
15
15
  *
@@ -59,83 +59,86 @@ import { assert } from '../asserts.js';
59
59
  *
60
60
  * If no style is defined, the following default style is used:
61
61
  * ```js
62
- * import {Fill, Stroke, Circle, Style} from 'ol/style';
62
+ * import {Circle, Fill, Stroke, Style} from 'ol/style';
63
63
  *
64
- * var fill = new Fill({
65
- * color: 'rgba(255,255,255,0.4)'
64
+ * const fill = new Fill({
65
+ * color: 'rgba(255,255,255,0.4)',
66
66
  * });
67
- * var stroke = new Stroke({
67
+ * const stroke = new Stroke({
68
68
  * color: '#3399CC',
69
- * width: 1.25
69
+ * width: 1.25,
70
70
  * });
71
- * var styles = [
71
+ * const styles = [
72
72
  * new Style({
73
73
  * image: new Circle({
74
74
  * fill: fill,
75
75
  * stroke: stroke,
76
- * radius: 5
76
+ * radius: 5,
77
77
  * }),
78
78
  * fill: fill,
79
- * stroke: stroke
80
- * })
79
+ * stroke: stroke,
80
+ * }),
81
81
  * ];
82
82
  * ```
83
83
  *
84
84
  * A separate editing style has the following defaults:
85
85
  * ```js
86
- * import {Fill, Stroke, Circle, Style} from 'ol/style';
87
86
  * import GeometryType from 'ol/geom/GeometryType';
87
+ * import {Circle, Fill, Stroke, Style} from 'ol/style';
88
88
  *
89
- * var white = [255, 255, 255, 1];
90
- * var blue = [0, 153, 255, 1];
91
- * var width = 3;
89
+ * const styles = {};
90
+ * const white = [255, 255, 255, 1];
91
+ * const blue = [0, 153, 255, 1];
92
+ * const width = 3;
92
93
  * styles[GeometryType.POLYGON] = [
93
94
  * new Style({
94
95
  * fill: new Fill({
95
- * color: [255, 255, 255, 0.5]
96
- * })
97
- * })
96
+ * color: [255, 255, 255, 0.5],
97
+ * }),
98
+ * }),
98
99
  * ];
99
- * styles[GeometryType.MULTI_POLYGON] =
100
- * styles[GeometryType.POLYGON];
100
+ * styles[GeometryType.MULTI_POLYGON] = styles[GeometryType.POLYGON];
101
+ *
101
102
  * styles[GeometryType.LINE_STRING] = [
102
103
  * new Style({
103
104
  * stroke: new Stroke({
104
105
  * color: white,
105
- * width: width + 2
106
- * })
106
+ * width: width + 2,
107
+ * }),
107
108
  * }),
108
109
  * new Style({
109
110
  * stroke: new Stroke({
110
111
  * color: blue,
111
- * width: width
112
- * })
113
- * })
112
+ * width: width,
113
+ * }),
114
+ * }),
114
115
  * ];
115
- * styles[GeometryType.MULTI_LINE_STRING] =
116
- * styles[GeometryType.LINE_STRING];
116
+ * styles[GeometryType.MULTI_LINE_STRING] = styles[GeometryType.LINE_STRING];
117
+ *
118
+ * styles[GeometryType.CIRCLE] = styles[GeometryType.POLYGON].concat(
119
+ * styles[GeometryType.LINE_STRING]
120
+ * );
121
+ *
117
122
  * styles[GeometryType.POINT] = [
118
123
  * new Style({
119
124
  * image: new Circle({
120
125
  * radius: width * 2,
121
126
  * fill: new Fill({
122
- * color: blue
127
+ * color: blue,
123
128
  * }),
124
129
  * stroke: new Stroke({
125
130
  * color: white,
126
- * width: width / 2
127
- * })
131
+ * width: width / 2,
132
+ * }),
128
133
  * }),
129
- * zIndex: Infinity
130
- * })
134
+ * zIndex: Infinity,
135
+ * }),
131
136
  * ];
132
- * styles[GeometryType.MULTI_POINT] =
133
- * styles[GeometryType.POINT];
134
- * styles[GeometryType.GEOMETRY_COLLECTION] =
135
- * styles[GeometryType.POLYGON].concat(
136
- * styles[GeometryType.LINE_STRING],
137
- * styles[GeometryType.POINT]
138
- * );
137
+ * styles[GeometryType.MULTI_POINT] = styles[GeometryType.POINT];
138
+ *
139
+ * styles[GeometryType.GEOMETRY_COLLECTION] = styles[
140
+ * GeometryType.POLYGON
141
+ * ].concat(styles[GeometryType.LINE_STRING], styles[GeometryType.POINT]);
139
142
  * ```
140
143
  *
141
144
  * @api
@@ -1 +1 @@
1
- {"version":3,"file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AAC;AAED;;;;GAIG;AACH,SAAS,uBAAuB,CAAC,OAAO;IACtC,OAAO,OAAO,CAAC,WAAW,EAAE,CAAC;AAC/B,CAAC;AAED,eAAe,KAAK,CAAC"}
package/util.js CHANGED
@@ -31,5 +31,5 @@ export function getUid(obj) {
31
31
  * OpenLayers version.
32
32
  * @type {string}
33
33
  */
34
- export var VERSION = '6.9.1-dev.1636904863247';
34
+ export var VERSION = '6.9.1-dev.1636909254707';
35
35
  //# sourceMappingURL=util.js.map