@vaadin/bundles 25.0.0-alpha3 → 25.0.0-alpha5
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/node_modules_ol_ImageCanvas_js.js +76 -83
- package/node_modules_ol_ImageCanvas_js.js.map +1 -1
- package/node_modules_ol_TileRange_js.js +128 -110
- package/node_modules_ol_TileRange_js.js.map +1 -1
- package/node_modules_ol_Tile_js.js +279 -0
- package/node_modules_ol_Tile_js.js.map +1 -0
- package/node_modules_ol_VectorRenderTile_js.js +428 -143
- package/node_modules_ol_VectorRenderTile_js.js.map +1 -1
- package/node_modules_ol_VectorTile_js.js +405 -119
- package/node_modules_ol_VectorTile_js.js.map +1 -1
- package/node_modules_ol_control_MousePosition_js.js +327 -0
- package/node_modules_ol_control_MousePosition_js.js.map +1 -0
- package/node_modules_ol_control_ZoomToExtent_js.js +118 -0
- package/node_modules_ol_control_ZoomToExtent_js.js.map +1 -0
- package/node_modules_ol_events_SnapEvent_js.js +79 -0
- package/node_modules_ol_events_SnapEvent_js.js.map +1 -0
- package/node_modules_ol_featureloader_js.js +205 -0
- package/node_modules_ol_featureloader_js.js.map +1 -0
- package/node_modules_ol_geom_Circle_js.js +300 -0
- package/node_modules_ol_geom_Circle_js.js.map +1 -0
- package/node_modules_ol_geom_GeometryCollection_js.js +369 -0
- package/node_modules_ol_geom_GeometryCollection_js.js.map +1 -0
- package/node_modules_ol_geom_MultiPoint_js.js +228 -0
- package/node_modules_ol_geom_MultiPoint_js.js.map +1 -0
- package/node_modules_ol_geom_flat_center_js.js +47 -0
- package/node_modules_ol_geom_flat_center_js.js.map +1 -0
- package/node_modules_ol_geom_flat_geodesic_js.js +123 -88
- package/node_modules_ol_geom_flat_geodesic_js.js.map +1 -1
- package/node_modules_ol_geom_flat_interpolate_js.js +230 -0
- package/node_modules_ol_geom_flat_interpolate_js.js.map +1 -0
- package/node_modules_ol_geom_flat_length_js-_375a0.js +58 -0
- package/node_modules_ol_geom_flat_length_js-_375a0.js.map +1 -0
- package/node_modules_ol_geom_flat_length_js-_375a1.js +58 -0
- package/node_modules_ol_geom_flat_length_js-_375a1.js.map +1 -0
- package/node_modules_ol_geom_flat_length_js-_375a2.js +58 -0
- package/node_modules_ol_geom_flat_length_js-_375a2.js.map +1 -0
- package/node_modules_ol_geom_flat_length_js-_375a3.js +58 -0
- package/node_modules_ol_geom_flat_length_js-_375a3.js.map +1 -0
- package/node_modules_ol_geom_flat_length_js-_375a4.js +58 -0
- package/node_modules_ol_geom_flat_length_js-_375a4.js.map +1 -0
- package/node_modules_ol_geom_flat_linechunk_js.js +76 -0
- package/node_modules_ol_geom_flat_linechunk_js.js.map +1 -0
- package/node_modules_ol_geom_flat_straightchunk_js.js +68 -0
- package/node_modules_ol_geom_flat_straightchunk_js.js.map +1 -0
- package/node_modules_ol_geom_flat_textpath_js.js +178 -0
- package/node_modules_ol_geom_flat_textpath_js.js.map +1 -0
- package/node_modules_ol_interaction_DblClickDragZoom_js.js +285 -0
- package/node_modules_ol_interaction_DblClickDragZoom_js.js.map +1 -0
- package/node_modules_ol_interaction_DragAndDrop_js.js +351 -0
- package/node_modules_ol_interaction_DragAndDrop_js.js.map +1 -0
- package/node_modules_ol_interaction_DragRotateAndZoom_js.js +159 -0
- package/node_modules_ol_interaction_DragRotateAndZoom_js.js.map +1 -0
- package/node_modules_ol_layer_Vector_js-_49290.js +110 -0
- package/node_modules_ol_layer_Vector_js-_49290.js.map +1 -0
- package/node_modules_ol_layer_Vector_js-_49291.js +110 -0
- package/node_modules_ol_layer_Vector_js-_49291.js.map +1 -0
- package/node_modules_ol_layer_Vector_js-_49292.js +110 -0
- package/node_modules_ol_layer_Vector_js-_49292.js.map +1 -0
- package/node_modules_ol_layer_Vector_js-_49293.js +110 -0
- package/node_modules_ol_layer_Vector_js-_49293.js.map +1 -0
- package/node_modules_ol_loadingstrategy_js.js +95 -0
- package/node_modules_ol_loadingstrategy_js.js.map +1 -0
- package/node_modules_ol_render_VectorContext_js-_3ad60.js +144 -0
- package/node_modules_ol_render_VectorContext_js-_3ad60.js.map +1 -0
- package/node_modules_ol_render_VectorContext_js-_3ad61.js +144 -0
- package/node_modules_ol_render_VectorContext_js-_3ad61.js.map +1 -0
- package/node_modules_ol_render_VectorContext_js-node_modules_ol_render_canvas_hitdetect_js.js +372 -0
- package/node_modules_ol_render_VectorContext_js-node_modules_ol_render_canvas_hitdetect_js.js.map +1 -0
- package/node_modules_ol_render_canvas_ImageBuilder_js.js +318 -0
- package/node_modules_ol_render_canvas_ImageBuilder_js.js.map +1 -0
- package/node_modules_ol_render_canvas_Instruction_js.js +66 -0
- package/node_modules_ol_render_canvas_Instruction_js.js.map +1 -0
- package/node_modules_ol_render_canvas_LineStringBuilder_js.js +187 -0
- package/node_modules_ol_render_canvas_LineStringBuilder_js.js.map +1 -0
- package/node_modules_ol_render_canvas_PolygonBuilder_js.js +276 -0
- package/node_modules_ol_render_canvas_PolygonBuilder_js.js.map +1 -0
- package/node_modules_ol_render_canvas_ZIndexContext_js-_fab20.js +156 -0
- package/node_modules_ol_render_canvas_ZIndexContext_js-_fab20.js.map +1 -0
- package/node_modules_ol_render_canvas_ZIndexContext_js-_fab21.js +156 -0
- package/node_modules_ol_render_canvas_ZIndexContext_js-_fab21.js.map +1 -0
- package/node_modules_ol_render_js-node_modules_ol_render_VectorContext_js.js +301 -0
- package/node_modules_ol_render_js-node_modules_ol_render_VectorContext_js.js.map +1 -0
- package/node_modules_ol_renderer_Layer_js.js +219 -0
- package/node_modules_ol_renderer_Layer_js.js.map +1 -0
- package/node_modules_ol_source_Source_js.js +256 -0
- package/node_modules_ol_source_Source_js.js.map +1 -0
- package/node_modules_ol_source_VectorEventType_js-node_modules_ol_structs_RBush_js.js +318 -0
- package/node_modules_ol_source_VectorEventType_js-node_modules_ol_structs_RBush_js.js.map +1 -0
- package/node_modules_ol_source_VectorEventType_js.js +80 -0
- package/node_modules_ol_source_VectorEventType_js.js.map +1 -0
- package/node_modules_ol_structs_RBush_js.js +242 -0
- package/node_modules_ol_structs_RBush_js.js.map +1 -0
- package/node_modules_ol_style_js.js +2 -1
- package/node_modules_ol_style_js.js.map +1 -1
- package/node_modules_rbush_rbush_min_js.js +16 -0
- package/node_modules_rbush_rbush_min_js.js.map +1 -0
- package/package.json +142 -146
- package/vaadin-bundle.json +2447 -2352
- package/vaadin.js +52246 -63791
- package/vaadin.js.map +1 -1
- package/vendors-node_modules_dompurify_dist_purify_es_mjs.js +1364 -0
- package/vendors-node_modules_dompurify_dist_purify_es_mjs.js.map +1 -0
- package/vendors-node_modules_dompurify_dist_purify_js.js +26 -21
- package/vendors-node_modules_dompurify_dist_purify_js.js.map +1 -1
- package/vendors-node_modules_marked_lib_marked_esm_js.js +2205 -0
- package/vendors-node_modules_marked_lib_marked_esm_js.js.map +1 -0
- package/vendors-node_modules_marked_lib_marked_umd_js.js +2164 -2556
- package/vendors-node_modules_marked_lib_marked_umd_js.js.map +1 -1
- package/vendors-node_modules_ol_Feature_js.js +360 -0
- package/vendors-node_modules_ol_Feature_js.js.map +1 -0
- package/vendors-node_modules_ol_Geolocation_js.js +352 -293
- package/vendors-node_modules_ol_Geolocation_js.js.map +1 -1
- package/vendors-node_modules_ol_ImageTile_js.js +494 -0
- package/vendors-node_modules_ol_ImageTile_js.js.map +1 -0
- package/vendors-node_modules_ol_Overlay_js.js +606 -0
- package/vendors-node_modules_ol_Overlay_js.js.map +1 -0
- package/vendors-node_modules_ol_control_FullScreen_js.js +417 -0
- package/vendors-node_modules_ol_control_FullScreen_js.js.map +1 -0
- package/vendors-node_modules_ol_control_OverviewMap_js.js +711 -0
- package/vendors-node_modules_ol_control_OverviewMap_js.js.map +1 -0
- package/vendors-node_modules_ol_control_ScaleLine_js.js +509 -0
- package/vendors-node_modules_ol_control_ScaleLine_js.js.map +1 -0
- package/vendors-node_modules_ol_control_ZoomSlider_js.js +418 -0
- package/vendors-node_modules_ol_control_ZoomSlider_js.js.map +1 -0
- package/vendors-node_modules_ol_control_js.js +490 -0
- package/vendors-node_modules_ol_control_js.js.map +1 -0
- package/vendors-node_modules_ol_geom_LineString_js.js +574 -0
- package/vendors-node_modules_ol_geom_LineString_js.js.map +1 -0
- package/vendors-node_modules_ol_geom_MultiLineString_js.js +405 -0
- package/vendors-node_modules_ol_geom_MultiLineString_js.js.map +1 -0
- package/vendors-node_modules_ol_geom_MultiPolygon_js.js +773 -0
- package/vendors-node_modules_ol_geom_MultiPolygon_js.js.map +1 -0
- package/vendors-node_modules_ol_geom_js-node_modules_ol_geom_flat_length_js.js +769 -0
- package/vendors-node_modules_ol_geom_js-node_modules_ol_geom_flat_length_js.js.map +1 -0
- package/vendors-node_modules_ol_index_js.js +526 -675
- package/vendors-node_modules_ol_index_js.js.map +1 -1
- package/vendors-node_modules_ol_interaction_Draw_js.js +2777 -0
- package/vendors-node_modules_ol_interaction_Draw_js.js.map +1 -0
- package/vendors-node_modules_ol_interaction_Extent_js.js +586 -0
- package/vendors-node_modules_ol_interaction_Extent_js.js.map +1 -0
- package/vendors-node_modules_ol_interaction_Link_js.js +489 -0
- package/vendors-node_modules_ol_interaction_Link_js.js.map +1 -0
- package/vendors-node_modules_ol_interaction_Modify_js.js +1841 -0
- package/vendors-node_modules_ol_interaction_Modify_js.js.map +1 -0
- package/vendors-node_modules_ol_interaction_Select_js.js +623 -0
- package/vendors-node_modules_ol_interaction_Select_js.js.map +1 -0
- package/vendors-node_modules_ol_interaction_Snap_js.js +982 -0
- package/vendors-node_modules_ol_interaction_Snap_js.js.map +1 -0
- package/vendors-node_modules_ol_interaction_Translate_js.js +466 -0
- package/vendors-node_modules_ol_interaction_Translate_js.js.map +1 -0
- package/vendors-node_modules_ol_interaction_js.js +872 -0
- package/vendors-node_modules_ol_interaction_js.js.map +1 -0
- package/vendors-node_modules_ol_layer_Graticule_js.js +1374 -989
- package/vendors-node_modules_ol_layer_Graticule_js.js.map +1 -1
- package/vendors-node_modules_ol_render_Feature_js.js +546 -0
- package/vendors-node_modules_ol_render_Feature_js.js.map +1 -0
- package/vendors-node_modules_ol_render_canvas_BuilderGroup_js.js +897 -0
- package/vendors-node_modules_ol_render_canvas_BuilderGroup_js.js.map +1 -0
- package/vendors-node_modules_ol_render_canvas_Builder_js.js +907 -0
- package/vendors-node_modules_ol_render_canvas_Builder_js.js.map +1 -0
- package/vendors-node_modules_ol_render_canvas_ExecutorGroup_js.js +539 -0
- package/vendors-node_modules_ol_render_canvas_ExecutorGroup_js.js.map +1 -0
- package/vendors-node_modules_ol_render_canvas_Executor_js.js +1715 -0
- package/vendors-node_modules_ol_render_canvas_Executor_js.js.map +1 -0
- package/vendors-node_modules_ol_render_canvas_Immediate_js.js +1208 -0
- package/vendors-node_modules_ol_render_canvas_Immediate_js.js.map +1 -0
- package/vendors-node_modules_ol_render_canvas_TextBuilder_js.js +825 -0
- package/vendors-node_modules_ol_render_canvas_TextBuilder_js.js.map +1 -0
- package/vendors-node_modules_ol_renderer_canvas_Layer_js.js +654 -0
- package/vendors-node_modules_ol_renderer_canvas_Layer_js.js.map +1 -0
- package/vendors-node_modules_ol_renderer_canvas_VectorLayer_js.js +1044 -0
- package/vendors-node_modules_ol_renderer_canvas_VectorLayer_js.js.map +1 -0
- package/vendors-node_modules_ol_renderer_vector_js.js +460 -0
- package/vendors-node_modules_ol_renderer_vector_js.js.map +1 -0
- package/vendors-node_modules_ol_source_Vector_js.js +2091 -0
- package/vendors-node_modules_ol_source_Vector_js.js.map +1 -0
- package/node_modules_ol_ImageTile_js.js +0 -177
- package/node_modules_ol_ImageTile_js.js.map +0 -1
- package/node_modules_ol_render_js.js +0 -131
- package/node_modules_ol_render_js.js.map +0 -1
- package/node_modules_ol_structs_LRUCache_js.js +0 -275
- package/node_modules_ol_structs_LRUCache_js.js.map +0 -1
- package/node_modules_ol_tilecoord_js.js +0 -115
- package/node_modules_ol_tilecoord_js.js.map +0 -1
- package/vendors-node_modules_ol_TileCache_js.js +0 -461
- package/vendors-node_modules_ol_TileCache_js.js.map +0 -1
- package/vendors-node_modules_ol_Tile_js.js +0 -330
- package/vendors-node_modules_ol_Tile_js.js.map +0 -1
- package/vendors-node_modules_ol_style_Text_js.js +0 -509
- package/vendors-node_modules_ol_style_Text_js.js.map +0 -1
- package/vendors-node_modules_rbush_index_js.js +0 -531
- package/vendors-node_modules_rbush_index_js.js.map +0 -1
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
(self["webpackChunk_vaadin_bundles"] = self["webpackChunk_vaadin_bundles"] || []).push([["node_modules_ol_interaction_DragRotateAndZoom_js"],{
|
|
2
|
+
|
|
3
|
+
/***/ "./node_modules/ol/interaction/DragRotateAndZoom.js":
|
|
4
|
+
/*!**********************************************************!*\
|
|
5
|
+
!*** ./node_modules/ol/interaction/DragRotateAndZoom.js ***!
|
|
6
|
+
\**********************************************************/
|
|
7
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
12
|
+
/* harmony export */ });
|
|
13
|
+
/* harmony import */ var _events_condition_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../events/condition.js */ "./node_modules/ol/events/condition.js");
|
|
14
|
+
/* harmony import */ var _Pointer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Pointer.js */ "./node_modules/ol/interaction/Pointer.js");
|
|
15
|
+
/**
|
|
16
|
+
* @module ol/interaction/DragRotateAndZoom
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @typedef {Object} Options
|
|
23
|
+
* @property {import("../events/condition.js").Condition} [condition] A function that
|
|
24
|
+
* takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
25
|
+
* boolean to indicate whether that event should be handled.
|
|
26
|
+
* Default is {@link module:ol/events/condition.shiftKeyOnly}.
|
|
27
|
+
* @property {number} [duration=400] Animation duration in milliseconds.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @classdesc
|
|
32
|
+
* Allows the user to zoom and rotate the map by clicking and dragging
|
|
33
|
+
* on the map. By default, this interaction is limited to when the shift
|
|
34
|
+
* key is held down.
|
|
35
|
+
*
|
|
36
|
+
* This interaction is only supported for mouse devices.
|
|
37
|
+
*
|
|
38
|
+
* And this interaction is not included in the default interactions.
|
|
39
|
+
* @api
|
|
40
|
+
*/
|
|
41
|
+
class DragRotateAndZoom extends _Pointer_js__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
42
|
+
/**
|
|
43
|
+
* @param {Options} [options] Options.
|
|
44
|
+
*/
|
|
45
|
+
constructor(options) {
|
|
46
|
+
options = options ? options : {};
|
|
47
|
+
|
|
48
|
+
super(/** @type {import("./Pointer.js").Options} */ (options));
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @private
|
|
52
|
+
* @type {import("../events/condition.js").Condition}
|
|
53
|
+
*/
|
|
54
|
+
this.condition_ = options.condition ? options.condition : _events_condition_js__WEBPACK_IMPORTED_MODULE_1__.shiftKeyOnly;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @private
|
|
58
|
+
* @type {number|undefined}
|
|
59
|
+
*/
|
|
60
|
+
this.lastAngle_ = undefined;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @private
|
|
64
|
+
* @type {number|undefined}
|
|
65
|
+
*/
|
|
66
|
+
this.lastMagnitude_ = undefined;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @private
|
|
70
|
+
* @type {number}
|
|
71
|
+
*/
|
|
72
|
+
this.lastScaleDelta_ = 0;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @private
|
|
76
|
+
* @type {number}
|
|
77
|
+
*/
|
|
78
|
+
this.duration_ = options.duration !== undefined ? options.duration : 400;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Handle pointer drag events.
|
|
83
|
+
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
84
|
+
* @override
|
|
85
|
+
*/
|
|
86
|
+
handleDragEvent(mapBrowserEvent) {
|
|
87
|
+
if (!(0,_events_condition_js__WEBPACK_IMPORTED_MODULE_1__.mouseOnly)(mapBrowserEvent)) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const map = mapBrowserEvent.map;
|
|
92
|
+
const size = map.getSize();
|
|
93
|
+
const offset = mapBrowserEvent.pixel;
|
|
94
|
+
const deltaX = offset[0] - size[0] / 2;
|
|
95
|
+
const deltaY = size[1] / 2 - offset[1];
|
|
96
|
+
const theta = Math.atan2(deltaY, deltaX);
|
|
97
|
+
const magnitude = Math.sqrt(deltaX * deltaX + deltaY * deltaY);
|
|
98
|
+
const view = map.getView();
|
|
99
|
+
if (this.lastAngle_ !== undefined) {
|
|
100
|
+
const angleDelta = this.lastAngle_ - theta;
|
|
101
|
+
view.adjustRotationInternal(angleDelta);
|
|
102
|
+
}
|
|
103
|
+
this.lastAngle_ = theta;
|
|
104
|
+
if (this.lastMagnitude_ !== undefined) {
|
|
105
|
+
view.adjustResolutionInternal(this.lastMagnitude_ / magnitude);
|
|
106
|
+
}
|
|
107
|
+
if (this.lastMagnitude_ !== undefined) {
|
|
108
|
+
this.lastScaleDelta_ = this.lastMagnitude_ / magnitude;
|
|
109
|
+
}
|
|
110
|
+
this.lastMagnitude_ = magnitude;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Handle pointer up events.
|
|
115
|
+
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
116
|
+
* @return {boolean} If the event was consumed.
|
|
117
|
+
* @override
|
|
118
|
+
*/
|
|
119
|
+
handleUpEvent(mapBrowserEvent) {
|
|
120
|
+
if (!(0,_events_condition_js__WEBPACK_IMPORTED_MODULE_1__.mouseOnly)(mapBrowserEvent)) {
|
|
121
|
+
return true;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
const map = mapBrowserEvent.map;
|
|
125
|
+
const view = map.getView();
|
|
126
|
+
const direction = this.lastScaleDelta_ > 1 ? 1 : -1;
|
|
127
|
+
view.endInteraction(this.duration_, direction);
|
|
128
|
+
this.lastScaleDelta_ = 0;
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Handle pointer down events.
|
|
134
|
+
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
135
|
+
* @return {boolean} If the event was consumed.
|
|
136
|
+
* @override
|
|
137
|
+
*/
|
|
138
|
+
handleDownEvent(mapBrowserEvent) {
|
|
139
|
+
if (!(0,_events_condition_js__WEBPACK_IMPORTED_MODULE_1__.mouseOnly)(mapBrowserEvent)) {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (this.condition_(mapBrowserEvent)) {
|
|
144
|
+
mapBrowserEvent.map.getView().beginInteraction();
|
|
145
|
+
this.lastAngle_ = undefined;
|
|
146
|
+
this.lastMagnitude_ = undefined;
|
|
147
|
+
return true;
|
|
148
|
+
}
|
|
149
|
+
return false;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DragRotateAndZoom);
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
/***/ })
|
|
157
|
+
|
|
158
|
+
}])
|
|
159
|
+
//# sourceMappingURL=node_modules_ol_interaction_DragRotateAndZoom_js.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node_modules_ol_interaction_DragRotateAndZoom_js.js","mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AAC+D;AACjB;;AAE9C;AACA,aAAa,QAAQ;AACrB,cAAc,4CAA4C;AAC1D,YAAY,iDAAiD;AAC7D;AACA,eAAe,8CAA8C;AAC7D,cAAc,QAAQ;AACtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,mDAAkB;AAClD;AACA,aAAa,SAAS;AACtB;AACA;AACA;;AAEA,qBAAqB,gCAAgC;;AAErD;AACA;AACA,cAAc;AACd;AACA,8DAA8D,8DAAY;;AAE1E;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,aAAa,yCAAyC;AACtD;AACA;AACA;AACA,SAAS,+DAAS;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,yCAAyC;AACtD,cAAc,SAAS;AACvB;AACA;AACA;AACA,SAAS,+DAAS;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,yCAAyC;AACtD,cAAc,SAAS;AACvB;AACA;AACA;AACA,SAAS,+DAAS;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iEAAe,iBAAiB,EAAC","sources":["webpack://@vaadin/bundles/./node_modules/ol/interaction/DragRotateAndZoom.js"],"sourcesContent":["/**\n * @module ol/interaction/DragRotateAndZoom\n */\nimport {mouseOnly, shiftKeyOnly} from '../events/condition.js';\nimport PointerInteraction from './Pointer.js';\n\n/**\n * @typedef {Object} Options\n * @property {import(\"../events/condition.js\").Condition} [condition] A function that\n * takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a\n * boolean to indicate whether that event should be handled.\n * Default is {@link module:ol/events/condition.shiftKeyOnly}.\n * @property {number} [duration=400] Animation duration in milliseconds.\n */\n\n/**\n * @classdesc\n * Allows the user to zoom and rotate the map by clicking and dragging\n * on the map. By default, this interaction is limited to when the shift\n * key is held down.\n *\n * This interaction is only supported for mouse devices.\n *\n * And this interaction is not included in the default interactions.\n * @api\n */\nclass DragRotateAndZoom extends PointerInteraction {\n /**\n * @param {Options} [options] Options.\n */\n constructor(options) {\n options = options ? options : {};\n\n super(/** @type {import(\"./Pointer.js\").Options} */ (options));\n\n /**\n * @private\n * @type {import(\"../events/condition.js\").Condition}\n */\n this.condition_ = options.condition ? options.condition : shiftKeyOnly;\n\n /**\n * @private\n * @type {number|undefined}\n */\n this.lastAngle_ = undefined;\n\n /**\n * @private\n * @type {number|undefined}\n */\n this.lastMagnitude_ = undefined;\n\n /**\n * @private\n * @type {number}\n */\n this.lastScaleDelta_ = 0;\n\n /**\n * @private\n * @type {number}\n */\n this.duration_ = options.duration !== undefined ? options.duration : 400;\n }\n\n /**\n * Handle pointer drag events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @override\n */\n handleDragEvent(mapBrowserEvent) {\n if (!mouseOnly(mapBrowserEvent)) {\n return;\n }\n\n const map = mapBrowserEvent.map;\n const size = map.getSize();\n const offset = mapBrowserEvent.pixel;\n const deltaX = offset[0] - size[0] / 2;\n const deltaY = size[1] / 2 - offset[1];\n const theta = Math.atan2(deltaY, deltaX);\n const magnitude = Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n const view = map.getView();\n if (this.lastAngle_ !== undefined) {\n const angleDelta = this.lastAngle_ - theta;\n view.adjustRotationInternal(angleDelta);\n }\n this.lastAngle_ = theta;\n if (this.lastMagnitude_ !== undefined) {\n view.adjustResolutionInternal(this.lastMagnitude_ / magnitude);\n }\n if (this.lastMagnitude_ !== undefined) {\n this.lastScaleDelta_ = this.lastMagnitude_ / magnitude;\n }\n this.lastMagnitude_ = magnitude;\n }\n\n /**\n * Handle pointer up events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @return {boolean} If the event was consumed.\n * @override\n */\n handleUpEvent(mapBrowserEvent) {\n if (!mouseOnly(mapBrowserEvent)) {\n return true;\n }\n\n const map = mapBrowserEvent.map;\n const view = map.getView();\n const direction = this.lastScaleDelta_ > 1 ? 1 : -1;\n view.endInteraction(this.duration_, direction);\n this.lastScaleDelta_ = 0;\n return false;\n }\n\n /**\n * Handle pointer down events.\n * @param {import(\"../MapBrowserEvent.js\").default} mapBrowserEvent Event.\n * @return {boolean} If the event was consumed.\n * @override\n */\n handleDownEvent(mapBrowserEvent) {\n if (!mouseOnly(mapBrowserEvent)) {\n return false;\n }\n\n if (this.condition_(mapBrowserEvent)) {\n mapBrowserEvent.map.getView().beginInteraction();\n this.lastAngle_ = undefined;\n this.lastMagnitude_ = undefined;\n return true;\n }\n return false;\n }\n}\n\nexport default DragRotateAndZoom;\n"],"names":[],"sourceRoot":""}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
(self["webpackChunk_vaadin_bundles"] = self["webpackChunk_vaadin_bundles"] || []).push([["node_modules_ol_layer_Vector_js-_49290"],{
|
|
2
|
+
|
|
3
|
+
/***/ "./node_modules/ol/layer/Vector.js":
|
|
4
|
+
/*!*****************************************!*\
|
|
5
|
+
!*** ./node_modules/ol/layer/Vector.js ***!
|
|
6
|
+
\*****************************************/
|
|
7
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
12
|
+
/* harmony export */ });
|
|
13
|
+
/* harmony import */ var _renderer_canvas_VectorLayer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../renderer/canvas/VectorLayer.js */ "./node_modules/ol/renderer/canvas/VectorLayer.js");
|
|
14
|
+
/* harmony import */ var _BaseVector_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BaseVector.js */ "./node_modules/ol/layer/BaseVector.js");
|
|
15
|
+
/**
|
|
16
|
+
* @module ol/layer/Vector
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
23
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>]
|
|
24
|
+
* @typedef {Object} Options
|
|
25
|
+
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
26
|
+
* @property {number} [opacity=1] Opacity (0, 1).
|
|
27
|
+
* @property {boolean} [visible=true] Visibility.
|
|
28
|
+
* @property {import("../extent.js").Extent} [extent] The bounding extent for layer rendering. The layer will not be
|
|
29
|
+
* rendered outside of this extent.
|
|
30
|
+
* @property {number} [zIndex] The z-index for layer rendering. At rendering time, the layers
|
|
31
|
+
* will be ordered, first by Z-index and then by position. When `undefined`, a `zIndex` of 0 is assumed
|
|
32
|
+
* for layers that are added to the map's `layers` collection, or `Infinity` when the layer's `setMap()`
|
|
33
|
+
* method was used.
|
|
34
|
+
* @property {number} [minResolution] The minimum resolution (inclusive) at which this layer will be
|
|
35
|
+
* visible.
|
|
36
|
+
* @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will
|
|
37
|
+
* be visible.
|
|
38
|
+
* @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be
|
|
39
|
+
* visible.
|
|
40
|
+
* @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will
|
|
41
|
+
* be visible.
|
|
42
|
+
* @property {import("../render.js").OrderFunction} [renderOrder] Render order. Function to be used when sorting
|
|
43
|
+
* features before rendering. By default features are drawn in the order that they are created. Use
|
|
44
|
+
* `null` to avoid the sort, but get an undefined draw order.
|
|
45
|
+
* @property {number} [renderBuffer=100] The buffer in pixels around the viewport extent used by the
|
|
46
|
+
* renderer when getting features from the vector source for the rendering or hit-detection.
|
|
47
|
+
* Recommended value: the size of the largest symbol, line width or label.
|
|
48
|
+
* @property {VectorSourceType} [source] Source.
|
|
49
|
+
* @property {import("../Map.js").default} [map] Sets the layer as overlay on a map. The map will not manage
|
|
50
|
+
* this layer in its layers collection, and the layer will be rendered on top. This is useful for
|
|
51
|
+
* temporary layers. The standard way to add a layer to a map and have it managed by the map is to
|
|
52
|
+
* use [map.addLayer()]{@link import("../Map.js").default#addLayer}.
|
|
53
|
+
* @property {boolean|string|number} [declutter=false] Declutter images and text. Any truthy value will enable
|
|
54
|
+
* decluttering. Within a layer, a feature rendered before another has higher priority. All layers with the
|
|
55
|
+
* same `declutter` value will be decluttered together. The priority is determined by the drawing order of the
|
|
56
|
+
* layers with the same `declutter` value. Higher in the layer stack means higher priority. To declutter distinct
|
|
57
|
+
* layers or groups of layers separately, use different truthy values for `declutter`.
|
|
58
|
+
* @property {import("../style/Style.js").StyleLike|import("../style/flat.js").FlatStyleLike|null} [style] Layer style. When set to `null`, only
|
|
59
|
+
* features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
|
|
60
|
+
* which will be used if this is not set.
|
|
61
|
+
* @property {import("./Base.js").BackgroundColor} [background] Background color for the layer. If not specified, no background
|
|
62
|
+
* will be rendered.
|
|
63
|
+
* @property {boolean} [updateWhileAnimating=false] When set to `true`, feature batches will
|
|
64
|
+
* be recreated during animations. This means that no vectors will be shown clipped, but the
|
|
65
|
+
* setting will have a performance impact for large amounts of vector data. When set to `false`,
|
|
66
|
+
* batches will be recreated when no animation is active.
|
|
67
|
+
* @property {boolean} [updateWhileInteracting=false] When set to `true`, feature batches will
|
|
68
|
+
* be recreated during interactions. See also `updateWhileAnimating`.
|
|
69
|
+
* @property {Object<string, *>} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @classdesc
|
|
74
|
+
* Vector data is rendered client-side, as vectors. This layer type provides most accurate rendering
|
|
75
|
+
* even during animations. Points and labels stay upright on rotated views. For very large
|
|
76
|
+
* amounts of vector data, performance may suffer during pan and zoom animations. In this case,
|
|
77
|
+
* try {@link module:ol/layer/VectorImage~VectorImageLayer}.
|
|
78
|
+
*
|
|
79
|
+
* Note that any property set in the options is set as a {@link module:ol/Object~BaseObject}
|
|
80
|
+
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
81
|
+
* options means that `title` is observable, and has get/set accessors.
|
|
82
|
+
*
|
|
83
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
84
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>]
|
|
85
|
+
* @extends {BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorLayerRenderer>}
|
|
86
|
+
* @api
|
|
87
|
+
*/
|
|
88
|
+
class VectorLayer extends _BaseVector_js__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
89
|
+
/**
|
|
90
|
+
* @param {Options<VectorSourceType, FeatureType>} [options] Options.
|
|
91
|
+
*/
|
|
92
|
+
constructor(options) {
|
|
93
|
+
super(options);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @override
|
|
98
|
+
*/
|
|
99
|
+
createRenderer() {
|
|
100
|
+
return new _renderer_canvas_VectorLayer_js__WEBPACK_IMPORTED_MODULE_1__["default"](this);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (VectorLayer);
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
/***/ })
|
|
108
|
+
|
|
109
|
+
}])
|
|
110
|
+
//# sourceMappingURL=node_modules_ol_layer_Vector_js-_49290.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node_modules_ol_layer_Vector_js-_49290.js","mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AAC0E;AAC5B;;AAE9C;AACA,cAAc,oDAAoD;AAClE,cAAc,qCAAqC;AACnD,aAAa,QAAQ;AACrB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,cAAc,+BAA+B;AAC7C;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,sCAAsC;AACpD;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA,cAAc,kBAAkB;AAChC,cAAc,6BAA6B;AAC3C;AACA;AACA,wBAAwB,2CAA2C;AACnE,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;AACA,cAAc,qFAAqF;AACnG,6DAA6D,mCAAmC;AAChG;AACA,cAAc,qCAAqC;AACnD;AACA,cAAc,SAAS;AACvB;AACA;AACA;AACA,cAAc,SAAS;AACvB;AACA,cAAc,mBAAmB;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ,mDAAmD;AAC3D;AACA,0DAA0D;AAC1D,iCAAiC;AACjC;AACA;AACA,cAAc,oDAAoD;AAClE,cAAc,qCAAqC;AACnD,aAAa;AACb;AACA;AACA,0BAA0B,sDAAe;AACzC;AACA,aAAa,wCAAwC;AACrD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,uEAAyB;AACxC;AACA;;AAEA,iEAAe,WAAW,EAAC","sources":["webpack://@vaadin/bundles/./node_modules/ol/layer/Vector.js"],"sourcesContent":["/**\n * @module ol/layer/Vector\n */\nimport CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';\nimport BaseVectorLayer from './BaseVector.js';\n\n/**\n * @template {import(\"../source/Vector.js\").default<FeatureType>} [VectorSourceType=import(\"../source/Vector.js\").default<*>]\n * @template {import('../Feature.js').FeatureLike} [FeatureType=import(\"./BaseVector.js\").ExtractedFeatureType<VectorSourceType>]\n * @typedef {Object} Options\n * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.\n * @property {number} [opacity=1] Opacity (0, 1).\n * @property {boolean} [visible=true] Visibility.\n * @property {import(\"../extent.js\").Extent} [extent] The bounding extent for layer rendering. The layer will not be\n * rendered outside of this extent.\n * @property {number} [zIndex] The z-index for layer rendering. At rendering time, the layers\n * will be ordered, first by Z-index and then by position. When `undefined`, a `zIndex` of 0 is assumed\n * for layers that are added to the map's `layers` collection, or `Infinity` when the layer's `setMap()`\n * method was used.\n * @property {number} [minResolution] The minimum resolution (inclusive) at which this layer will be\n * visible.\n * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will\n * be visible.\n * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be\n * visible.\n * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will\n * be visible.\n * @property {import(\"../render.js\").OrderFunction} [renderOrder] Render order. Function to be used when sorting\n * features before rendering. By default features are drawn in the order that they are created. Use\n * `null` to avoid the sort, but get an undefined draw order.\n * @property {number} [renderBuffer=100] The buffer in pixels around the viewport extent used by the\n * renderer when getting features from the vector source for the rendering or hit-detection.\n * Recommended value: the size of the largest symbol, line width or label.\n * @property {VectorSourceType} [source] Source.\n * @property {import(\"../Map.js\").default} [map] Sets the layer as overlay on a map. The map will not manage\n * this layer in its layers collection, and the layer will be rendered on top. This is useful for\n * temporary layers. The standard way to add a layer to a map and have it managed by the map is to\n * use [map.addLayer()]{@link import(\"../Map.js\").default#addLayer}.\n * @property {boolean|string|number} [declutter=false] Declutter images and text. Any truthy value will enable\n * decluttering. Within a layer, a feature rendered before another has higher priority. All layers with the\n * same `declutter` value will be decluttered together. The priority is determined by the drawing order of the\n * layers with the same `declutter` value. Higher in the layer stack means higher priority. To declutter distinct\n * layers or groups of layers separately, use different truthy values for `declutter`.\n * @property {import(\"../style/Style.js\").StyleLike|import(\"../style/flat.js\").FlatStyleLike|null} [style] Layer style. When set to `null`, only\n * features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style\n * which will be used if this is not set.\n * @property {import(\"./Base.js\").BackgroundColor} [background] Background color for the layer. If not specified, no background\n * will be rendered.\n * @property {boolean} [updateWhileAnimating=false] When set to `true`, feature batches will\n * be recreated during animations. This means that no vectors will be shown clipped, but the\n * setting will have a performance impact for large amounts of vector data. When set to `false`,\n * batches will be recreated when no animation is active.\n * @property {boolean} [updateWhileInteracting=false] When set to `true`, feature batches will\n * be recreated during interactions. See also `updateWhileAnimating`.\n * @property {Object<string, *>} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.\n */\n\n/**\n * @classdesc\n * Vector data is rendered client-side, as vectors. This layer type provides most accurate rendering\n * even during animations. Points and labels stay upright on rotated views. For very large\n * amounts of vector data, performance may suffer during pan and zoom animations. In this case,\n * try {@link module:ol/layer/VectorImage~VectorImageLayer}.\n *\n * Note that any property set in the options is set as a {@link module:ol/Object~BaseObject}\n * property on the layer object; for example, setting `title: 'My Title'` in the\n * options means that `title` is observable, and has get/set accessors.\n *\n * @template {import(\"../source/Vector.js\").default<FeatureType>} [VectorSourceType=import(\"../source/Vector.js\").default<*>]\n * @template {import('../Feature.js').FeatureLike} [FeatureType=import(\"./BaseVector.js\").ExtractedFeatureType<VectorSourceType>]\n * @extends {BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorLayerRenderer>}\n * @api\n */\nclass VectorLayer extends BaseVectorLayer {\n /**\n * @param {Options<VectorSourceType, FeatureType>} [options] Options.\n */\n constructor(options) {\n super(options);\n }\n\n /**\n * @override\n */\n createRenderer() {\n return new CanvasVectorLayerRenderer(this);\n }\n}\n\nexport default VectorLayer;\n"],"names":[],"sourceRoot":""}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
(self["webpackChunk_vaadin_bundles"] = self["webpackChunk_vaadin_bundles"] || []).push([["node_modules_ol_layer_Vector_js-_49291"],{
|
|
2
|
+
|
|
3
|
+
/***/ "./node_modules/ol/layer/Vector.js":
|
|
4
|
+
/*!*****************************************!*\
|
|
5
|
+
!*** ./node_modules/ol/layer/Vector.js ***!
|
|
6
|
+
\*****************************************/
|
|
7
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
12
|
+
/* harmony export */ });
|
|
13
|
+
/* harmony import */ var _renderer_canvas_VectorLayer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../renderer/canvas/VectorLayer.js */ "./node_modules/ol/renderer/canvas/VectorLayer.js");
|
|
14
|
+
/* harmony import */ var _BaseVector_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BaseVector.js */ "./node_modules/ol/layer/BaseVector.js");
|
|
15
|
+
/**
|
|
16
|
+
* @module ol/layer/Vector
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
23
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>]
|
|
24
|
+
* @typedef {Object} Options
|
|
25
|
+
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
26
|
+
* @property {number} [opacity=1] Opacity (0, 1).
|
|
27
|
+
* @property {boolean} [visible=true] Visibility.
|
|
28
|
+
* @property {import("../extent.js").Extent} [extent] The bounding extent for layer rendering. The layer will not be
|
|
29
|
+
* rendered outside of this extent.
|
|
30
|
+
* @property {number} [zIndex] The z-index for layer rendering. At rendering time, the layers
|
|
31
|
+
* will be ordered, first by Z-index and then by position. When `undefined`, a `zIndex` of 0 is assumed
|
|
32
|
+
* for layers that are added to the map's `layers` collection, or `Infinity` when the layer's `setMap()`
|
|
33
|
+
* method was used.
|
|
34
|
+
* @property {number} [minResolution] The minimum resolution (inclusive) at which this layer will be
|
|
35
|
+
* visible.
|
|
36
|
+
* @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will
|
|
37
|
+
* be visible.
|
|
38
|
+
* @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be
|
|
39
|
+
* visible.
|
|
40
|
+
* @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will
|
|
41
|
+
* be visible.
|
|
42
|
+
* @property {import("../render.js").OrderFunction} [renderOrder] Render order. Function to be used when sorting
|
|
43
|
+
* features before rendering. By default features are drawn in the order that they are created. Use
|
|
44
|
+
* `null` to avoid the sort, but get an undefined draw order.
|
|
45
|
+
* @property {number} [renderBuffer=100] The buffer in pixels around the viewport extent used by the
|
|
46
|
+
* renderer when getting features from the vector source for the rendering or hit-detection.
|
|
47
|
+
* Recommended value: the size of the largest symbol, line width or label.
|
|
48
|
+
* @property {VectorSourceType} [source] Source.
|
|
49
|
+
* @property {import("../Map.js").default} [map] Sets the layer as overlay on a map. The map will not manage
|
|
50
|
+
* this layer in its layers collection, and the layer will be rendered on top. This is useful for
|
|
51
|
+
* temporary layers. The standard way to add a layer to a map and have it managed by the map is to
|
|
52
|
+
* use [map.addLayer()]{@link import("../Map.js").default#addLayer}.
|
|
53
|
+
* @property {boolean|string|number} [declutter=false] Declutter images and text. Any truthy value will enable
|
|
54
|
+
* decluttering. Within a layer, a feature rendered before another has higher priority. All layers with the
|
|
55
|
+
* same `declutter` value will be decluttered together. The priority is determined by the drawing order of the
|
|
56
|
+
* layers with the same `declutter` value. Higher in the layer stack means higher priority. To declutter distinct
|
|
57
|
+
* layers or groups of layers separately, use different truthy values for `declutter`.
|
|
58
|
+
* @property {import("../style/Style.js").StyleLike|import("../style/flat.js").FlatStyleLike|null} [style] Layer style. When set to `null`, only
|
|
59
|
+
* features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
|
|
60
|
+
* which will be used if this is not set.
|
|
61
|
+
* @property {import("./Base.js").BackgroundColor} [background] Background color for the layer. If not specified, no background
|
|
62
|
+
* will be rendered.
|
|
63
|
+
* @property {boolean} [updateWhileAnimating=false] When set to `true`, feature batches will
|
|
64
|
+
* be recreated during animations. This means that no vectors will be shown clipped, but the
|
|
65
|
+
* setting will have a performance impact for large amounts of vector data. When set to `false`,
|
|
66
|
+
* batches will be recreated when no animation is active.
|
|
67
|
+
* @property {boolean} [updateWhileInteracting=false] When set to `true`, feature batches will
|
|
68
|
+
* be recreated during interactions. See also `updateWhileAnimating`.
|
|
69
|
+
* @property {Object<string, *>} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @classdesc
|
|
74
|
+
* Vector data is rendered client-side, as vectors. This layer type provides most accurate rendering
|
|
75
|
+
* even during animations. Points and labels stay upright on rotated views. For very large
|
|
76
|
+
* amounts of vector data, performance may suffer during pan and zoom animations. In this case,
|
|
77
|
+
* try {@link module:ol/layer/VectorImage~VectorImageLayer}.
|
|
78
|
+
*
|
|
79
|
+
* Note that any property set in the options is set as a {@link module:ol/Object~BaseObject}
|
|
80
|
+
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
81
|
+
* options means that `title` is observable, and has get/set accessors.
|
|
82
|
+
*
|
|
83
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
84
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>]
|
|
85
|
+
* @extends {BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorLayerRenderer>}
|
|
86
|
+
* @api
|
|
87
|
+
*/
|
|
88
|
+
class VectorLayer extends _BaseVector_js__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
89
|
+
/**
|
|
90
|
+
* @param {Options<VectorSourceType, FeatureType>} [options] Options.
|
|
91
|
+
*/
|
|
92
|
+
constructor(options) {
|
|
93
|
+
super(options);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @override
|
|
98
|
+
*/
|
|
99
|
+
createRenderer() {
|
|
100
|
+
return new _renderer_canvas_VectorLayer_js__WEBPACK_IMPORTED_MODULE_1__["default"](this);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (VectorLayer);
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
/***/ })
|
|
108
|
+
|
|
109
|
+
}])
|
|
110
|
+
//# sourceMappingURL=node_modules_ol_layer_Vector_js-_49291.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node_modules_ol_layer_Vector_js-_49291.js","mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AAC0E;AAC5B;;AAE9C;AACA,cAAc,oDAAoD;AAClE,cAAc,qCAAqC;AACnD,aAAa,QAAQ;AACrB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,cAAc,+BAA+B;AAC7C;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,sCAAsC;AACpD;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA,cAAc,kBAAkB;AAChC,cAAc,6BAA6B;AAC3C;AACA;AACA,wBAAwB,2CAA2C;AACnE,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;AACA,cAAc,qFAAqF;AACnG,6DAA6D,mCAAmC;AAChG;AACA,cAAc,qCAAqC;AACnD;AACA,cAAc,SAAS;AACvB;AACA;AACA;AACA,cAAc,SAAS;AACvB;AACA,cAAc,mBAAmB;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ,mDAAmD;AAC3D;AACA,0DAA0D;AAC1D,iCAAiC;AACjC;AACA;AACA,cAAc,oDAAoD;AAClE,cAAc,qCAAqC;AACnD,aAAa;AACb;AACA;AACA,0BAA0B,sDAAe;AACzC;AACA,aAAa,wCAAwC;AACrD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,uEAAyB;AACxC;AACA;;AAEA,iEAAe,WAAW,EAAC","sources":["webpack://@vaadin/bundles/./node_modules/ol/layer/Vector.js"],"sourcesContent":["/**\n * @module ol/layer/Vector\n */\nimport CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';\nimport BaseVectorLayer from './BaseVector.js';\n\n/**\n * @template {import(\"../source/Vector.js\").default<FeatureType>} [VectorSourceType=import(\"../source/Vector.js\").default<*>]\n * @template {import('../Feature.js').FeatureLike} [FeatureType=import(\"./BaseVector.js\").ExtractedFeatureType<VectorSourceType>]\n * @typedef {Object} Options\n * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.\n * @property {number} [opacity=1] Opacity (0, 1).\n * @property {boolean} [visible=true] Visibility.\n * @property {import(\"../extent.js\").Extent} [extent] The bounding extent for layer rendering. The layer will not be\n * rendered outside of this extent.\n * @property {number} [zIndex] The z-index for layer rendering. At rendering time, the layers\n * will be ordered, first by Z-index and then by position. When `undefined`, a `zIndex` of 0 is assumed\n * for layers that are added to the map's `layers` collection, or `Infinity` when the layer's `setMap()`\n * method was used.\n * @property {number} [minResolution] The minimum resolution (inclusive) at which this layer will be\n * visible.\n * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will\n * be visible.\n * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be\n * visible.\n * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will\n * be visible.\n * @property {import(\"../render.js\").OrderFunction} [renderOrder] Render order. Function to be used when sorting\n * features before rendering. By default features are drawn in the order that they are created. Use\n * `null` to avoid the sort, but get an undefined draw order.\n * @property {number} [renderBuffer=100] The buffer in pixels around the viewport extent used by the\n * renderer when getting features from the vector source for the rendering or hit-detection.\n * Recommended value: the size of the largest symbol, line width or label.\n * @property {VectorSourceType} [source] Source.\n * @property {import(\"../Map.js\").default} [map] Sets the layer as overlay on a map. The map will not manage\n * this layer in its layers collection, and the layer will be rendered on top. This is useful for\n * temporary layers. The standard way to add a layer to a map and have it managed by the map is to\n * use [map.addLayer()]{@link import(\"../Map.js\").default#addLayer}.\n * @property {boolean|string|number} [declutter=false] Declutter images and text. Any truthy value will enable\n * decluttering. Within a layer, a feature rendered before another has higher priority. All layers with the\n * same `declutter` value will be decluttered together. The priority is determined by the drawing order of the\n * layers with the same `declutter` value. Higher in the layer stack means higher priority. To declutter distinct\n * layers or groups of layers separately, use different truthy values for `declutter`.\n * @property {import(\"../style/Style.js\").StyleLike|import(\"../style/flat.js\").FlatStyleLike|null} [style] Layer style. When set to `null`, only\n * features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style\n * which will be used if this is not set.\n * @property {import(\"./Base.js\").BackgroundColor} [background] Background color for the layer. If not specified, no background\n * will be rendered.\n * @property {boolean} [updateWhileAnimating=false] When set to `true`, feature batches will\n * be recreated during animations. This means that no vectors will be shown clipped, but the\n * setting will have a performance impact for large amounts of vector data. When set to `false`,\n * batches will be recreated when no animation is active.\n * @property {boolean} [updateWhileInteracting=false] When set to `true`, feature batches will\n * be recreated during interactions. See also `updateWhileAnimating`.\n * @property {Object<string, *>} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.\n */\n\n/**\n * @classdesc\n * Vector data is rendered client-side, as vectors. This layer type provides most accurate rendering\n * even during animations. Points and labels stay upright on rotated views. For very large\n * amounts of vector data, performance may suffer during pan and zoom animations. In this case,\n * try {@link module:ol/layer/VectorImage~VectorImageLayer}.\n *\n * Note that any property set in the options is set as a {@link module:ol/Object~BaseObject}\n * property on the layer object; for example, setting `title: 'My Title'` in the\n * options means that `title` is observable, and has get/set accessors.\n *\n * @template {import(\"../source/Vector.js\").default<FeatureType>} [VectorSourceType=import(\"../source/Vector.js\").default<*>]\n * @template {import('../Feature.js').FeatureLike} [FeatureType=import(\"./BaseVector.js\").ExtractedFeatureType<VectorSourceType>]\n * @extends {BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorLayerRenderer>}\n * @api\n */\nclass VectorLayer extends BaseVectorLayer {\n /**\n * @param {Options<VectorSourceType, FeatureType>} [options] Options.\n */\n constructor(options) {\n super(options);\n }\n\n /**\n * @override\n */\n createRenderer() {\n return new CanvasVectorLayerRenderer(this);\n }\n}\n\nexport default VectorLayer;\n"],"names":[],"sourceRoot":""}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
(self["webpackChunk_vaadin_bundles"] = self["webpackChunk_vaadin_bundles"] || []).push([["node_modules_ol_layer_Vector_js-_49292"],{
|
|
2
|
+
|
|
3
|
+
/***/ "./node_modules/ol/layer/Vector.js":
|
|
4
|
+
/*!*****************************************!*\
|
|
5
|
+
!*** ./node_modules/ol/layer/Vector.js ***!
|
|
6
|
+
\*****************************************/
|
|
7
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
12
|
+
/* harmony export */ });
|
|
13
|
+
/* harmony import */ var _renderer_canvas_VectorLayer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../renderer/canvas/VectorLayer.js */ "./node_modules/ol/renderer/canvas/VectorLayer.js");
|
|
14
|
+
/* harmony import */ var _BaseVector_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BaseVector.js */ "./node_modules/ol/layer/BaseVector.js");
|
|
15
|
+
/**
|
|
16
|
+
* @module ol/layer/Vector
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
23
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>]
|
|
24
|
+
* @typedef {Object} Options
|
|
25
|
+
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
26
|
+
* @property {number} [opacity=1] Opacity (0, 1).
|
|
27
|
+
* @property {boolean} [visible=true] Visibility.
|
|
28
|
+
* @property {import("../extent.js").Extent} [extent] The bounding extent for layer rendering. The layer will not be
|
|
29
|
+
* rendered outside of this extent.
|
|
30
|
+
* @property {number} [zIndex] The z-index for layer rendering. At rendering time, the layers
|
|
31
|
+
* will be ordered, first by Z-index and then by position. When `undefined`, a `zIndex` of 0 is assumed
|
|
32
|
+
* for layers that are added to the map's `layers` collection, or `Infinity` when the layer's `setMap()`
|
|
33
|
+
* method was used.
|
|
34
|
+
* @property {number} [minResolution] The minimum resolution (inclusive) at which this layer will be
|
|
35
|
+
* visible.
|
|
36
|
+
* @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will
|
|
37
|
+
* be visible.
|
|
38
|
+
* @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be
|
|
39
|
+
* visible.
|
|
40
|
+
* @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will
|
|
41
|
+
* be visible.
|
|
42
|
+
* @property {import("../render.js").OrderFunction} [renderOrder] Render order. Function to be used when sorting
|
|
43
|
+
* features before rendering. By default features are drawn in the order that they are created. Use
|
|
44
|
+
* `null` to avoid the sort, but get an undefined draw order.
|
|
45
|
+
* @property {number} [renderBuffer=100] The buffer in pixels around the viewport extent used by the
|
|
46
|
+
* renderer when getting features from the vector source for the rendering or hit-detection.
|
|
47
|
+
* Recommended value: the size of the largest symbol, line width or label.
|
|
48
|
+
* @property {VectorSourceType} [source] Source.
|
|
49
|
+
* @property {import("../Map.js").default} [map] Sets the layer as overlay on a map. The map will not manage
|
|
50
|
+
* this layer in its layers collection, and the layer will be rendered on top. This is useful for
|
|
51
|
+
* temporary layers. The standard way to add a layer to a map and have it managed by the map is to
|
|
52
|
+
* use [map.addLayer()]{@link import("../Map.js").default#addLayer}.
|
|
53
|
+
* @property {boolean|string|number} [declutter=false] Declutter images and text. Any truthy value will enable
|
|
54
|
+
* decluttering. Within a layer, a feature rendered before another has higher priority. All layers with the
|
|
55
|
+
* same `declutter` value will be decluttered together. The priority is determined by the drawing order of the
|
|
56
|
+
* layers with the same `declutter` value. Higher in the layer stack means higher priority. To declutter distinct
|
|
57
|
+
* layers or groups of layers separately, use different truthy values for `declutter`.
|
|
58
|
+
* @property {import("../style/Style.js").StyleLike|import("../style/flat.js").FlatStyleLike|null} [style] Layer style. When set to `null`, only
|
|
59
|
+
* features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style
|
|
60
|
+
* which will be used if this is not set.
|
|
61
|
+
* @property {import("./Base.js").BackgroundColor} [background] Background color for the layer. If not specified, no background
|
|
62
|
+
* will be rendered.
|
|
63
|
+
* @property {boolean} [updateWhileAnimating=false] When set to `true`, feature batches will
|
|
64
|
+
* be recreated during animations. This means that no vectors will be shown clipped, but the
|
|
65
|
+
* setting will have a performance impact for large amounts of vector data. When set to `false`,
|
|
66
|
+
* batches will be recreated when no animation is active.
|
|
67
|
+
* @property {boolean} [updateWhileInteracting=false] When set to `true`, feature batches will
|
|
68
|
+
* be recreated during interactions. See also `updateWhileAnimating`.
|
|
69
|
+
* @property {Object<string, *>} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @classdesc
|
|
74
|
+
* Vector data is rendered client-side, as vectors. This layer type provides most accurate rendering
|
|
75
|
+
* even during animations. Points and labels stay upright on rotated views. For very large
|
|
76
|
+
* amounts of vector data, performance may suffer during pan and zoom animations. In this case,
|
|
77
|
+
* try {@link module:ol/layer/VectorImage~VectorImageLayer}.
|
|
78
|
+
*
|
|
79
|
+
* Note that any property set in the options is set as a {@link module:ol/Object~BaseObject}
|
|
80
|
+
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
81
|
+
* options means that `title` is observable, and has get/set accessors.
|
|
82
|
+
*
|
|
83
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
84
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=import("./BaseVector.js").ExtractedFeatureType<VectorSourceType>]
|
|
85
|
+
* @extends {BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorLayerRenderer>}
|
|
86
|
+
* @api
|
|
87
|
+
*/
|
|
88
|
+
class VectorLayer extends _BaseVector_js__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
89
|
+
/**
|
|
90
|
+
* @param {Options<VectorSourceType, FeatureType>} [options] Options.
|
|
91
|
+
*/
|
|
92
|
+
constructor(options) {
|
|
93
|
+
super(options);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @override
|
|
98
|
+
*/
|
|
99
|
+
createRenderer() {
|
|
100
|
+
return new _renderer_canvas_VectorLayer_js__WEBPACK_IMPORTED_MODULE_1__["default"](this);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (VectorLayer);
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
/***/ })
|
|
108
|
+
|
|
109
|
+
}])
|
|
110
|
+
//# sourceMappingURL=node_modules_ol_layer_Vector_js-_49292.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node_modules_ol_layer_Vector_js-_49292.js","mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AAC0E;AAC5B;;AAE9C;AACA,cAAc,oDAAoD;AAClE,cAAc,qCAAqC;AACnD,aAAa,QAAQ;AACrB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,cAAc,+BAA+B;AAC7C;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,sCAAsC;AACpD;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA,cAAc,kBAAkB;AAChC,cAAc,6BAA6B;AAC3C;AACA;AACA,wBAAwB,2CAA2C;AACnE,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;AACA,cAAc,qFAAqF;AACnG,6DAA6D,mCAAmC;AAChG;AACA,cAAc,qCAAqC;AACnD;AACA,cAAc,SAAS;AACvB;AACA;AACA;AACA,cAAc,SAAS;AACvB;AACA,cAAc,mBAAmB;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ,mDAAmD;AAC3D;AACA,0DAA0D;AAC1D,iCAAiC;AACjC;AACA;AACA,cAAc,oDAAoD;AAClE,cAAc,qCAAqC;AACnD,aAAa;AACb;AACA;AACA,0BAA0B,sDAAe;AACzC;AACA,aAAa,wCAAwC;AACrD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,uEAAyB;AACxC;AACA;;AAEA,iEAAe,WAAW,EAAC","sources":["webpack://@vaadin/bundles/./node_modules/ol/layer/Vector.js"],"sourcesContent":["/**\n * @module ol/layer/Vector\n */\nimport CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';\nimport BaseVectorLayer from './BaseVector.js';\n\n/**\n * @template {import(\"../source/Vector.js\").default<FeatureType>} [VectorSourceType=import(\"../source/Vector.js\").default<*>]\n * @template {import('../Feature.js').FeatureLike} [FeatureType=import(\"./BaseVector.js\").ExtractedFeatureType<VectorSourceType>]\n * @typedef {Object} Options\n * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.\n * @property {number} [opacity=1] Opacity (0, 1).\n * @property {boolean} [visible=true] Visibility.\n * @property {import(\"../extent.js\").Extent} [extent] The bounding extent for layer rendering. The layer will not be\n * rendered outside of this extent.\n * @property {number} [zIndex] The z-index for layer rendering. At rendering time, the layers\n * will be ordered, first by Z-index and then by position. When `undefined`, a `zIndex` of 0 is assumed\n * for layers that are added to the map's `layers` collection, or `Infinity` when the layer's `setMap()`\n * method was used.\n * @property {number} [minResolution] The minimum resolution (inclusive) at which this layer will be\n * visible.\n * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will\n * be visible.\n * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be\n * visible.\n * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will\n * be visible.\n * @property {import(\"../render.js\").OrderFunction} [renderOrder] Render order. Function to be used when sorting\n * features before rendering. By default features are drawn in the order that they are created. Use\n * `null` to avoid the sort, but get an undefined draw order.\n * @property {number} [renderBuffer=100] The buffer in pixels around the viewport extent used by the\n * renderer when getting features from the vector source for the rendering or hit-detection.\n * Recommended value: the size of the largest symbol, line width or label.\n * @property {VectorSourceType} [source] Source.\n * @property {import(\"../Map.js\").default} [map] Sets the layer as overlay on a map. The map will not manage\n * this layer in its layers collection, and the layer will be rendered on top. This is useful for\n * temporary layers. The standard way to add a layer to a map and have it managed by the map is to\n * use [map.addLayer()]{@link import(\"../Map.js\").default#addLayer}.\n * @property {boolean|string|number} [declutter=false] Declutter images and text. Any truthy value will enable\n * decluttering. Within a layer, a feature rendered before another has higher priority. All layers with the\n * same `declutter` value will be decluttered together. The priority is determined by the drawing order of the\n * layers with the same `declutter` value. Higher in the layer stack means higher priority. To declutter distinct\n * layers or groups of layers separately, use different truthy values for `declutter`.\n * @property {import(\"../style/Style.js\").StyleLike|import(\"../style/flat.js\").FlatStyleLike|null} [style] Layer style. When set to `null`, only\n * features that have their own style will be rendered. See {@link module:ol/style/Style~Style} for the default style\n * which will be used if this is not set.\n * @property {import(\"./Base.js\").BackgroundColor} [background] Background color for the layer. If not specified, no background\n * will be rendered.\n * @property {boolean} [updateWhileAnimating=false] When set to `true`, feature batches will\n * be recreated during animations. This means that no vectors will be shown clipped, but the\n * setting will have a performance impact for large amounts of vector data. When set to `false`,\n * batches will be recreated when no animation is active.\n * @property {boolean} [updateWhileInteracting=false] When set to `true`, feature batches will\n * be recreated during interactions. See also `updateWhileAnimating`.\n * @property {Object<string, *>} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.\n */\n\n/**\n * @classdesc\n * Vector data is rendered client-side, as vectors. This layer type provides most accurate rendering\n * even during animations. Points and labels stay upright on rotated views. For very large\n * amounts of vector data, performance may suffer during pan and zoom animations. In this case,\n * try {@link module:ol/layer/VectorImage~VectorImageLayer}.\n *\n * Note that any property set in the options is set as a {@link module:ol/Object~BaseObject}\n * property on the layer object; for example, setting `title: 'My Title'` in the\n * options means that `title` is observable, and has get/set accessors.\n *\n * @template {import(\"../source/Vector.js\").default<FeatureType>} [VectorSourceType=import(\"../source/Vector.js\").default<*>]\n * @template {import('../Feature.js').FeatureLike} [FeatureType=import(\"./BaseVector.js\").ExtractedFeatureType<VectorSourceType>]\n * @extends {BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorLayerRenderer>}\n * @api\n */\nclass VectorLayer extends BaseVectorLayer {\n /**\n * @param {Options<VectorSourceType, FeatureType>} [options] Options.\n */\n constructor(options) {\n super(options);\n }\n\n /**\n * @override\n */\n createRenderer() {\n return new CanvasVectorLayerRenderer(this);\n }\n}\n\nexport default VectorLayer;\n"],"names":[],"sourceRoot":""}
|