@vaadin/map 25.0.0-alpha9 → 25.0.0-beta2
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/package.json +9 -12
- package/src/styles/vaadin-map-base-styles.js +13 -11
- package/src/vaadin-map.js +1 -1
- package/vaadin-map.js +1 -1
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
- package/src/styles/vaadin-map-core-styles.d.ts +0 -13
- package/src/styles/vaadin-map-core-styles.js +0 -314
- package/theme/lumo/vaadin-map-styles.d.ts +0 -16
- package/theme/lumo/vaadin-map-styles.js +0 -188
- package/theme/lumo/vaadin-map.d.ts +0 -12
- package/theme/lumo/vaadin-map.js +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/map",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-beta2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,9 +21,6 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"files": [
|
|
23
23
|
"src",
|
|
24
|
-
"!src/styles/*-base-styles.d.ts",
|
|
25
|
-
"!src/styles/*-base-styles.js",
|
|
26
|
-
"theme",
|
|
27
24
|
"vaadin-*.d.ts",
|
|
28
25
|
"vaadin-*.js",
|
|
29
26
|
"web-types.json",
|
|
@@ -37,23 +34,23 @@
|
|
|
37
34
|
],
|
|
38
35
|
"dependencies": {
|
|
39
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
41
|
-
"@vaadin/component-base": "25.0.0-
|
|
42
|
-
"@vaadin/vaadin-
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha9",
|
|
37
|
+
"@vaadin/a11y-base": "25.0.0-beta2",
|
|
38
|
+
"@vaadin/component-base": "25.0.0-beta2",
|
|
39
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-beta2",
|
|
44
40
|
"lit": "^3.0.0",
|
|
45
41
|
"ol": "10.6.0"
|
|
46
42
|
},
|
|
47
43
|
"devDependencies": {
|
|
48
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
49
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
44
|
+
"@vaadin/chai-plugins": "25.0.0-beta2",
|
|
45
|
+
"@vaadin/test-runner-commands": "25.0.0-beta2",
|
|
50
46
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
51
|
-
"
|
|
47
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-beta2",
|
|
48
|
+
"sinon": "^21.0.0"
|
|
52
49
|
},
|
|
53
50
|
"cvdlName": "vaadin-map",
|
|
54
51
|
"web-types": [
|
|
55
52
|
"web-types.json",
|
|
56
53
|
"web-types.lit.json"
|
|
57
54
|
],
|
|
58
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "e078f8371ae266f05c7ca1ec25686cc489c83f24"
|
|
59
56
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
9
|
* license.
|
|
10
10
|
*/
|
|
11
|
-
import '@vaadin/component-base/src/style-props.js';
|
|
11
|
+
import '@vaadin/component-base/src/styles/style-props.js';
|
|
12
12
|
import { css } from 'lit';
|
|
13
13
|
|
|
14
14
|
export const mapStyles = css`
|
|
@@ -37,7 +37,7 @@ export const mapStyles = css`
|
|
|
37
37
|
content: '';
|
|
38
38
|
position: absolute;
|
|
39
39
|
inset: 0;
|
|
40
|
-
border: 1px solid var(--vaadin-map-border-color, var(--vaadin-border-color));
|
|
40
|
+
border: 1px solid var(--vaadin-map-border-color, var(--vaadin-border-color-secondary));
|
|
41
41
|
border-radius: inherit;
|
|
42
42
|
z-index: 1;
|
|
43
43
|
pointer-events: none;
|
|
@@ -247,7 +247,7 @@ export const mapStyles = css`
|
|
|
247
247
|
gap: 1em;
|
|
248
248
|
list-style: none;
|
|
249
249
|
margin: 0;
|
|
250
|
-
color: var(--vaadin-map-attribution-color, var(--vaadin-color-
|
|
250
|
+
color: var(--vaadin-map-attribution-text-color, var(--vaadin-text-color-secondary));
|
|
251
251
|
padding: var(--vaadin-padding-container);
|
|
252
252
|
font-size: 0.8em;
|
|
253
253
|
}
|
|
@@ -265,7 +265,7 @@ export const mapStyles = css`
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
.ol-compass:empty::before {
|
|
268
|
-
mask
|
|
268
|
+
mask: var(--_vaadin-icon-arrow-up) 50% / var(--vaadin-icon-visual-size, 100%) no-repeat;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
.ol-full-screen {
|
|
@@ -273,11 +273,11 @@ export const mapStyles = css`
|
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
.ol-full-screen button:empty::before {
|
|
276
|
-
mask
|
|
276
|
+
mask: var(--_vaadin-icon-fullscreen) 50% / var(--vaadin-icon-visual-size, 100%) no-repeat;
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
.ol-full-screen .ol-full-screen-true:empty::before {
|
|
280
|
-
mask
|
|
280
|
+
mask: var(--_vaadin-icon-cross) 50% / var(--vaadin-icon-visual-size, 100%) no-repeat;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
.ol-overviewmap {
|
|
@@ -333,7 +333,8 @@ export const mapStyles = css`
|
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
.ol-overviewmap button span:empty::before {
|
|
336
|
-
mask
|
|
336
|
+
mask: var(--vaadin-map-icon-overview-map-collapse, var(--_vaadin-icon-chevron-down)) 50% /
|
|
337
|
+
var(--vaadin-icon-visual-size, 100%) no-repeat;
|
|
337
338
|
}
|
|
338
339
|
|
|
339
340
|
.ol-overviewmap.ol-collapsed button {
|
|
@@ -355,11 +356,12 @@ export const mapStyles = css`
|
|
|
355
356
|
}
|
|
356
357
|
|
|
357
358
|
.ol-zoom-in:empty::before {
|
|
358
|
-
mask
|
|
359
|
+
mask: var(--vaadin-map-icon-zoom-in, var(--_vaadin-icon-plus)) 50% / var(--vaadin-icon-visual-size, 100%) no-repeat;
|
|
359
360
|
}
|
|
360
361
|
|
|
361
362
|
.ol-zoom-out:empty::before {
|
|
362
|
-
mask
|
|
363
|
+
mask: var(--vaadin-map-icon-zoom-out, var(--_vaadin-icon-minus)) 50% / var(--vaadin-icon-visual-size, 100%)
|
|
364
|
+
no-repeat;
|
|
363
365
|
}
|
|
364
366
|
|
|
365
367
|
.ol-zoom button.ol-zoom-in {
|
|
@@ -376,7 +378,7 @@ export const mapStyles = css`
|
|
|
376
378
|
.ol-attribution:not(.ol-uncollapsible) ul {
|
|
377
379
|
transition: 0.15s opacity;
|
|
378
380
|
background: var(--vaadin-map-control-background, var(--vaadin-background-color));
|
|
379
|
-
color: var(--vaadin-map-control-color, var(--vaadin-
|
|
381
|
+
color: var(--vaadin-map-control-text-color, var(--vaadin-text-color-secondary));
|
|
380
382
|
opacity: 0.65;
|
|
381
383
|
display: flex;
|
|
382
384
|
align-items: center;
|
|
@@ -399,7 +401,7 @@ export const mapStyles = css`
|
|
|
399
401
|
}
|
|
400
402
|
|
|
401
403
|
.ol-control button:hover {
|
|
402
|
-
color: var(--vaadin-map-control-color-hover, var(--vaadin-color));
|
|
404
|
+
color: var(--vaadin-map-control-text-color-hover, var(--vaadin-text-color));
|
|
403
405
|
}
|
|
404
406
|
|
|
405
407
|
.ol-control button:focus-visible {
|
package/src/vaadin-map.js
CHANGED
|
@@ -14,7 +14,7 @@ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
|
14
14
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
15
15
|
import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
16
16
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
17
|
-
import { mapStyles } from './styles/vaadin-map-
|
|
17
|
+
import { mapStyles } from './styles/vaadin-map-base-styles.js';
|
|
18
18
|
import { MapMixin } from './vaadin-map-mixin.js';
|
|
19
19
|
|
|
20
20
|
/**
|
package/vaadin-map.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './src/vaadin-map.js';
|
|
2
2
|
export * from './src/vaadin-map.js';
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
-
*
|
|
5
|
-
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
-
* license.
|
|
10
|
-
*/
|
|
11
|
-
import type { CSSResult } from 'lit';
|
|
12
|
-
|
|
13
|
-
export const mapStyles: CSSResult;
|
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
-
*
|
|
5
|
-
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
-
* license.
|
|
10
|
-
*/
|
|
11
|
-
import { css } from 'lit';
|
|
12
|
-
|
|
13
|
-
export const mapStyles = css`
|
|
14
|
-
:host {
|
|
15
|
-
display: block;
|
|
16
|
-
height: 400px;
|
|
17
|
-
flex: 1 1 auto;
|
|
18
|
-
align-self: stretch;
|
|
19
|
-
overflow: hidden;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:host([hidden]) {
|
|
23
|
-
display: none !important;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
#map {
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 100%;
|
|
29
|
-
outline: none;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
#map,
|
|
33
|
-
.ol-viewport,
|
|
34
|
-
.ol-layers {
|
|
35
|
-
border-radius: inherit;
|
|
36
|
-
overflow: hidden;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
#map:fullscreen {
|
|
40
|
-
border-radius: 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
#map:-webkit-full-screen {
|
|
44
|
-
border-radius: 0;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/* Functional styles, copied from 'ol/ol.css' */
|
|
48
|
-
|
|
49
|
-
.ol-box {
|
|
50
|
-
box-sizing: border-box;
|
|
51
|
-
border-radius: 2px;
|
|
52
|
-
border: 1px solid rgba(0, 0, 0, 0.5);
|
|
53
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
54
|
-
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.ol-unsupported {
|
|
58
|
-
display: none;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.ol-viewport,
|
|
62
|
-
.ol-unselectable {
|
|
63
|
-
-webkit-touch-callout: none;
|
|
64
|
-
-webkit-user-select: none;
|
|
65
|
-
user-select: none;
|
|
66
|
-
-webkit-tap-highlight-color: transparent;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.ol-viewport canvas {
|
|
70
|
-
all: unset;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.ol-selectable {
|
|
74
|
-
-webkit-touch-callout: default;
|
|
75
|
-
-webkit-user-select: text;
|
|
76
|
-
user-select: text;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.ol-grabbing {
|
|
80
|
-
cursor: grabbing;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.ol-grab {
|
|
84
|
-
cursor: move;
|
|
85
|
-
cursor: grab;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/* Control positioning and styling */
|
|
89
|
-
|
|
90
|
-
.ol-overlaycontainer-stopevent {
|
|
91
|
-
/* stylelint-disable declaration-block-no-redundant-longhand-properties */
|
|
92
|
-
display: grid;
|
|
93
|
-
grid-template-columns: min-content 1fr min-content;
|
|
94
|
-
grid-template-rows: min-content 1fr min-content min-content min-content min-content;
|
|
95
|
-
padding: var(--vaadin-map-controls-inset, 0.25em);
|
|
96
|
-
box-sizing: border-box;
|
|
97
|
-
grid-template-areas:
|
|
98
|
-
'scale mouse-position fullscreen'
|
|
99
|
-
'overview-map . zoom-extent'
|
|
100
|
-
'overview-map . compass'
|
|
101
|
-
'overview-map . zoom-slider'
|
|
102
|
-
'overview-map . zoom'
|
|
103
|
-
'overview-map attribution attribution';
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.ol-mouse-position {
|
|
107
|
-
grid-area: mouse-position;
|
|
108
|
-
align-self: start;
|
|
109
|
-
text-align: center;
|
|
110
|
-
font-size: 0.625em;
|
|
111
|
-
color: #000;
|
|
112
|
-
filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.ol-scale-line,
|
|
116
|
-
.ol-scale-bar {
|
|
117
|
-
grid-area: scale;
|
|
118
|
-
position: relative;
|
|
119
|
-
pointer-events: none !important;
|
|
120
|
-
color: #000;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.ol-scale-line-inner {
|
|
124
|
-
border: 1px solid rgba(0, 0, 0, 0.5);
|
|
125
|
-
border-top: none;
|
|
126
|
-
font-size: 0.625em;
|
|
127
|
-
text-align: center;
|
|
128
|
-
will-change: contents, width, filter;
|
|
129
|
-
transition: all 0.25s;
|
|
130
|
-
filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.ol-scale-bar-inner {
|
|
134
|
-
border: 1px solid rgba(0, 0, 0, 0.5);
|
|
135
|
-
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
|
|
136
|
-
overflow: hidden;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.ol-scale-step-marker {
|
|
140
|
-
display: none;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.ol-scale-step-text {
|
|
144
|
-
position: absolute;
|
|
145
|
-
top: 0.75em;
|
|
146
|
-
font-size: 0.625em;
|
|
147
|
-
color: #000;
|
|
148
|
-
filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
|
|
149
|
-
white-space: nowrap;
|
|
150
|
-
overflow: hidden;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.ol-scale-text {
|
|
154
|
-
position: absolute;
|
|
155
|
-
font-size: 0.625em;
|
|
156
|
-
top: 2em;
|
|
157
|
-
color: #000;
|
|
158
|
-
white-space: nowrap;
|
|
159
|
-
filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.ol-scale-singlebar {
|
|
163
|
-
height: 0.25em;
|
|
164
|
-
opacity: 0.5;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.ol-control {
|
|
168
|
-
margin: 0.25em;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.ol-control button {
|
|
172
|
-
appearance: none;
|
|
173
|
-
border: 0;
|
|
174
|
-
margin: 0;
|
|
175
|
-
padding: 0;
|
|
176
|
-
background: #fff;
|
|
177
|
-
font: inherit;
|
|
178
|
-
color: inherit;
|
|
179
|
-
width: 1.5em;
|
|
180
|
-
height: 1.5em;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.ol-control button::-moz-focus-inner {
|
|
184
|
-
border: none;
|
|
185
|
-
padding: 0;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.ol-compass {
|
|
189
|
-
grid-area: compass;
|
|
190
|
-
display: block;
|
|
191
|
-
will-change: transform;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.ol-zoom {
|
|
195
|
-
grid-area: zoom;
|
|
196
|
-
display: flex;
|
|
197
|
-
flex-direction: column;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.ol-zoom-in:empty::before {
|
|
201
|
-
content: var(--vaadin-map-icon-zoom-in, '+');
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.ol-zoom-out:empty::before {
|
|
205
|
-
content: var(--vaadin-map-icon-zoom-out, '\\2013');
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.ol-attribution {
|
|
209
|
-
grid-area: attribution;
|
|
210
|
-
margin-inline-start: auto !important;
|
|
211
|
-
display: flex;
|
|
212
|
-
flex-flow: row-reverse;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.ol-attribution.ol-uncollapsible {
|
|
216
|
-
margin-inline-end: calc(var(--vaadin-map-controls-inset, 0.25em) * -1);
|
|
217
|
-
margin-block-end: calc(var(--vaadin-map-controls-inset, 0.25em) * -1);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.ol-attribution button span:empty::before {
|
|
221
|
-
content: var(--vaadin-map-icon-attribution-collapse, '\\25B8');
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.ol-attribution.ol-collapsed button span:empty::before {
|
|
225
|
-
content: var(--vaadin-map-icon-attribution-expand, '\\2139');
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.ol-attribution ul {
|
|
229
|
-
display: flex;
|
|
230
|
-
align-items: center;
|
|
231
|
-
gap: 1em;
|
|
232
|
-
list-style: none;
|
|
233
|
-
margin: 0;
|
|
234
|
-
padding: 0.25em 0.5em;
|
|
235
|
-
font-size: 0.8em;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.ol-attribution.ol-collapsed ul {
|
|
239
|
-
display: none;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.ol-attribution.ol-uncollapsible button {
|
|
243
|
-
display: none;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.ol-rotate {
|
|
247
|
-
grid-area: compass;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.ol-compass:empty::before {
|
|
251
|
-
content: var(--vaadin-map-icon-compass, '\\2191');
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.ol-full-screen {
|
|
255
|
-
grid-area: fullscreen;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.ol-full-screen button:empty::before {
|
|
259
|
-
content: var(--vaadin-map-icon-fullscreen, '\\2922');
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.ol-full-screen .ol-full-screen-true:empty::before {
|
|
263
|
-
content: var(--vaadin-map-icon-close, '\\00D7');
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.ol-overviewmap {
|
|
267
|
-
grid-area: overview-map;
|
|
268
|
-
align-self: end;
|
|
269
|
-
width: max-content;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.ol-overviewmap button span:empty::before {
|
|
273
|
-
content: var(--vaadin-map-icon-overview-map-collapse, '\\25BE');
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.ol-overviewmap.ol-collapsed button span:empty::before {
|
|
277
|
-
content: var(--vaadin-map-icon-overview-map-expand, '\\25B4');
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.ol-overviewmap-map {
|
|
281
|
-
height: 10em;
|
|
282
|
-
width: 10em;
|
|
283
|
-
border: 1px solid rgba(0, 0, 0, 0.5);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.ol-overviewmap.ol-collapsed .ol-overviewmap-map,
|
|
287
|
-
.ol-overviewmap.ol-uncollapsible button {
|
|
288
|
-
display: none;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.ol-overviewmap-box {
|
|
292
|
-
border: 1px dashed rgba(0, 0, 0, 0.5);
|
|
293
|
-
filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
|
|
294
|
-
will-change: filter;
|
|
295
|
-
cursor: move;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.ol-zoomslider {
|
|
299
|
-
grid-area: zoom-slider;
|
|
300
|
-
height: 8em;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.ol-zoomslider button {
|
|
304
|
-
position: relative;
|
|
305
|
-
height: 0.5em;
|
|
306
|
-
display: block;
|
|
307
|
-
border-radius: inherit;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.ol-zoom-extent {
|
|
311
|
-
grid-area: zoom-extent;
|
|
312
|
-
align-self: end;
|
|
313
|
-
}
|
|
314
|
-
`;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
-
*
|
|
5
|
-
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
-
* license.
|
|
10
|
-
*/
|
|
11
|
-
import '@vaadin/vaadin-lumo-styles/color.js';
|
|
12
|
-
import '@vaadin/vaadin-lumo-styles/typography.js';
|
|
13
|
-
import '@vaadin/vaadin-lumo-styles/sizing.js';
|
|
14
|
-
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
15
|
-
import '@vaadin/vaadin-lumo-styles/style.js';
|
|
16
|
-
import '@vaadin/vaadin-lumo-styles/font-icons.js';
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
-
*
|
|
5
|
-
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
-
* license.
|
|
10
|
-
*/
|
|
11
|
-
import '@vaadin/vaadin-lumo-styles/color.js';
|
|
12
|
-
import '@vaadin/vaadin-lumo-styles/typography.js';
|
|
13
|
-
import '@vaadin/vaadin-lumo-styles/sizing.js';
|
|
14
|
-
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
15
|
-
import '@vaadin/vaadin-lumo-styles/style.js';
|
|
16
|
-
import '@vaadin/vaadin-lumo-styles/font-icons.js';
|
|
17
|
-
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
18
|
-
|
|
19
|
-
registerStyles(
|
|
20
|
-
'vaadin-map',
|
|
21
|
-
css`
|
|
22
|
-
:host {
|
|
23
|
-
font-family: var(--lumo-font-family);
|
|
24
|
-
font-size: var(--lumo-font-size-m);
|
|
25
|
-
--vaadin-map-controls-inset: var(--lumo-space-xs);
|
|
26
|
-
--vaadin-map-icon-zoom-in: var(--lumo-icons-plus);
|
|
27
|
-
--vaadin-map-icon-zoom-out: var(--lumo-icons-minus);
|
|
28
|
-
--vaadin-map-icon-compass: var(--lumo-icons-arrow-up);
|
|
29
|
-
--vaadin-map-icon-overview-map-collapse: var(--lumo-icons-angle-down);
|
|
30
|
-
--vaadin-map-icon-overview-map-expand: var(--lumo-icons-angle-up);
|
|
31
|
-
--vaadin-map-icon-close: var(--lumo-icons-cross);
|
|
32
|
-
--vaadin-map-icon-attribution-collapse: var(--lumo-icons-angle-right);
|
|
33
|
-
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
34
|
-
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
:host(:not([theme~='no-border'])) {
|
|
38
|
-
border-radius: var(--lumo-border-radius-l);
|
|
39
|
-
position: relative;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
:host(:not([theme~='no-border']))::before {
|
|
43
|
-
content: '';
|
|
44
|
-
position: absolute;
|
|
45
|
-
inset: 0;
|
|
46
|
-
border: 1px solid var(--lumo-contrast-10pct);
|
|
47
|
-
border-radius: inherit;
|
|
48
|
-
z-index: 1;
|
|
49
|
-
pointer-events: none;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
:host([focus-ring]) {
|
|
53
|
-
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.ol-control,
|
|
57
|
-
.ol-scale-bar,
|
|
58
|
-
.ol-scale-line {
|
|
59
|
-
margin: var(--lumo-space-xs);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.ol-control {
|
|
63
|
-
border-radius: var(--lumo-border-radius-m);
|
|
64
|
-
transition:
|
|
65
|
-
0.15s box-shadow,
|
|
66
|
-
0.15s background-color;
|
|
67
|
-
-webkit-backdrop-filter: blur(8px);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.ol-control:hover {
|
|
71
|
-
background-color: var(--lumo-base-color);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.ol-control:not(.ol-uncollapsible):hover {
|
|
75
|
-
box-shadow: var(--lumo-box-shadow-s);
|
|
76
|
-
background-color: var(--lumo-shade-20pct);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.ol-control button {
|
|
80
|
-
width: var(--lumo-size-s);
|
|
81
|
-
height: var(--lumo-size-s);
|
|
82
|
-
border-radius: inherit;
|
|
83
|
-
font-family: 'lumo-icons';
|
|
84
|
-
font-size: var(--lumo-icon-size-s);
|
|
85
|
-
font-weight: 400;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.ol-control button,
|
|
89
|
-
.ol-attribution:not(.ol-uncollapsible) ul {
|
|
90
|
-
transition: 0.15s opacity;
|
|
91
|
-
background-color: var(--lumo-base-color);
|
|
92
|
-
color: var(--lumo-body-text-color);
|
|
93
|
-
opacity: 0.65;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.ol-control:hover button,
|
|
97
|
-
.ol-control button:focus,
|
|
98
|
-
.ol-attribution:hover ul {
|
|
99
|
-
opacity: 1;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.ol-control button:hover {
|
|
103
|
-
color: var(--lumo-primary-text-color);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.ol-control button:active {
|
|
107
|
-
background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.ol-control button:focus-visible {
|
|
111
|
-
outline: none;
|
|
112
|
-
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.ol-zoom {
|
|
116
|
-
gap: 2px;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
button.ol-zoom-in {
|
|
120
|
-
border-bottom-left-radius: 0;
|
|
121
|
-
border-bottom-right-radius: 0;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
button.ol-zoom-out {
|
|
125
|
-
border-top-left-radius: 0;
|
|
126
|
-
border-top-right-radius: 0;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.ol-attribution.ol-uncollapsible {
|
|
130
|
-
border-radius: var(--lumo-border-radius-m) 0 0 0;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.ol-attribution ul {
|
|
134
|
-
font-size: var(--lumo-font-size-xxs);
|
|
135
|
-
color: var(--lumo-secondary-text-color);
|
|
136
|
-
padding: var(--lumo-space-xs) var(--lumo-space-s);
|
|
137
|
-
cursor: default;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.ol-attribution:not(.ol-uncollapsible) ul {
|
|
141
|
-
background-color: var(--lumo-base-color);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.ol-attribution a {
|
|
145
|
-
color: inherit;
|
|
146
|
-
cursor: pointer;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.ol-scale-bar-inner {
|
|
150
|
-
border-radius: var(--lumo-border-radius-s);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.ol-full-screen {
|
|
154
|
-
height: var(--lumo-size-s);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.ol-overviewmap:not(.ol-collapsed),
|
|
158
|
-
.ol-overviewmap:not(.ol-collapsed):hover {
|
|
159
|
-
background-color: var(--lumo-base-color);
|
|
160
|
-
box-shadow: var(--lumo-box-shadow-s);
|
|
161
|
-
transition: 0.15s box-shadow;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.ol-overviewmap-map {
|
|
165
|
-
margin: var(--lumo-space-xs);
|
|
166
|
-
border: 0;
|
|
167
|
-
border-radius: var(--lumo-border-radius-s);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.ol-overviewmap:not(.ol-uncollapsible) .ol-overviewmap-map {
|
|
171
|
-
margin-bottom: 0;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.ol-zoomslider:not(.ol-uncollapsible):hover {
|
|
175
|
-
box-shadow: none;
|
|
176
|
-
overflow: visible;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.ol-zoomslider button {
|
|
180
|
-
height: var(--lumo-space-m);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.ol-zoomslider:hover button {
|
|
184
|
-
box-shadow: var(--lumo-box-shadow-s);
|
|
185
|
-
}
|
|
186
|
-
`,
|
|
187
|
-
{ moduleId: 'lumo-map' },
|
|
188
|
-
);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
-
*
|
|
5
|
-
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
-
* license.
|
|
10
|
-
*/
|
|
11
|
-
import './vaadin-map-styles.js';
|
|
12
|
-
import '../../src/vaadin-map.js';
|
package/theme/lumo/vaadin-map.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
-
*
|
|
5
|
-
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
-
* license.
|
|
10
|
-
*/
|
|
11
|
-
import './vaadin-map-styles.js';
|
|
12
|
-
import '../../src/vaadin-map.js';
|