Skip to content

Commit 49e12db

Browse files
authored
Merge pull request #1005 from geographika/ol-update
Add custom MapServer OpenLayers 10.4.0 build
2 parents cf93bbe + cd8a7c7 commit 49e12db

File tree

4 files changed

+363
-0
lines changed

4 files changed

+363
-0
lines changed
Lines changed: 354 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,354 @@
1+
:root,
2+
:host {
3+
--ol-background-color: white;
4+
--ol-accent-background-color: #F5F5F5;
5+
--ol-subtle-background-color: rgba(128, 128, 128, 0.25);
6+
--ol-partial-background-color: rgba(255, 255, 255, 0.75);
7+
--ol-foreground-color: #333333;
8+
--ol-subtle-foreground-color: #666666;
9+
--ol-brand-color: #00AAFF;
10+
}
11+
12+
.ol-box {
13+
box-sizing: border-box;
14+
border-radius: 2px;
15+
border: 1.5px solid var(--ol-background-color);
16+
background-color: var(--ol-partial-background-color);
17+
}
18+
19+
.ol-mouse-position {
20+
top: 8px;
21+
right: 8px;
22+
position: absolute;
23+
}
24+
25+
.ol-scale-line {
26+
background: var(--ol-partial-background-color);
27+
border-radius: 4px;
28+
bottom: 8px;
29+
left: 8px;
30+
padding: 2px;
31+
position: absolute;
32+
}
33+
34+
.ol-scale-line-inner {
35+
border: 1px solid var(--ol-subtle-foreground-color);
36+
border-top: none;
37+
color: var(--ol-foreground-color);
38+
font-size: 10px;
39+
text-align: center;
40+
margin: 1px;
41+
will-change: contents, width;
42+
transition: all 0.25s;
43+
}
44+
45+
.ol-scale-bar {
46+
position: absolute;
47+
bottom: 8px;
48+
left: 8px;
49+
}
50+
51+
.ol-scale-bar-inner {
52+
display: flex;
53+
}
54+
55+
.ol-scale-step-marker {
56+
width: 1px;
57+
height: 15px;
58+
background-color: var(--ol-foreground-color);
59+
float: right;
60+
z-index: 10;
61+
}
62+
63+
.ol-scale-step-text {
64+
position: absolute;
65+
bottom: -5px;
66+
font-size: 10px;
67+
z-index: 11;
68+
color: var(--ol-foreground-color);
69+
text-shadow: -1.5px 0 var(--ol-partial-background-color), 0 1.5px var(--ol-partial-background-color), 1.5px 0 var(--ol-partial-background-color), 0 -1.5px var(--ol-partial-background-color);
70+
}
71+
72+
.ol-scale-text {
73+
position: absolute;
74+
font-size: 12px;
75+
text-align: center;
76+
bottom: 25px;
77+
color: var(--ol-foreground-color);
78+
text-shadow: -1.5px 0 var(--ol-partial-background-color), 0 1.5px var(--ol-partial-background-color), 1.5px 0 var(--ol-partial-background-color), 0 -1.5px var(--ol-partial-background-color);
79+
}
80+
81+
.ol-scale-singlebar {
82+
position: relative;
83+
height: 10px;
84+
z-index: 9;
85+
box-sizing: border-box;
86+
border: 1px solid var(--ol-foreground-color);
87+
}
88+
89+
.ol-scale-singlebar-even {
90+
background-color: var(--ol-subtle-foreground-color);
91+
}
92+
93+
.ol-scale-singlebar-odd {
94+
background-color: var(--ol-background-color);
95+
}
96+
97+
.ol-unsupported {
98+
display: none;
99+
}
100+
101+
.ol-viewport,
102+
.ol-unselectable {
103+
-webkit-touch-callout: none;
104+
-webkit-user-select: none;
105+
-moz-user-select: none;
106+
user-select: none;
107+
-webkit-tap-highlight-color: transparent;
108+
}
109+
110+
.ol-viewport canvas {
111+
all: unset;
112+
overflow: hidden;
113+
}
114+
115+
.ol-viewport {
116+
touch-action: pan-x pan-y;
117+
}
118+
119+
.ol-selectable {
120+
-webkit-touch-callout: default;
121+
-webkit-user-select: text;
122+
-moz-user-select: text;
123+
user-select: text;
124+
}
125+
126+
.ol-grabbing {
127+
cursor: -webkit-grabbing;
128+
cursor: -moz-grabbing;
129+
cursor: grabbing;
130+
}
131+
132+
.ol-grab {
133+
cursor: move;
134+
cursor: -webkit-grab;
135+
cursor: -moz-grab;
136+
cursor: grab;
137+
}
138+
139+
.ol-control {
140+
position: absolute;
141+
background-color: var(--ol-subtle-background-color);
142+
border-radius: 4px;
143+
}
144+
145+
.ol-zoom {
146+
top: .5em;
147+
left: .5em;
148+
}
149+
150+
.ol-rotate {
151+
top: .5em;
152+
right: .5em;
153+
transition: opacity .25s linear, visibility 0s linear;
154+
}
155+
156+
.ol-rotate.ol-hidden {
157+
opacity: 0;
158+
visibility: hidden;
159+
transition: opacity .25s linear, visibility 0s linear .25s;
160+
}
161+
162+
.ol-zoom-extent {
163+
top: 4.643em;
164+
left: .5em;
165+
}
166+
167+
.ol-full-screen {
168+
right: .5em;
169+
top: .5em;
170+
}
171+
172+
.ol-control button {
173+
display: block;
174+
margin: 1px;
175+
padding: 0;
176+
color: var(--ol-subtle-foreground-color);
177+
font-weight: bold;
178+
text-decoration: none;
179+
font-size: inherit;
180+
text-align: center;
181+
height: 1.375em;
182+
width: 1.375em;
183+
line-height: .4em;
184+
background-color: var(--ol-background-color);
185+
border: none;
186+
border-radius: 2px;
187+
}
188+
189+
.ol-control button::-moz-focus-inner {
190+
border: none;
191+
padding: 0;
192+
}
193+
194+
.ol-zoom-extent button {
195+
line-height: 1.4em;
196+
}
197+
198+
.ol-compass {
199+
display: block;
200+
font-weight: normal;
201+
will-change: transform;
202+
}
203+
204+
.ol-touch .ol-control button {
205+
font-size: 1.5em;
206+
}
207+
208+
.ol-touch .ol-zoom-extent {
209+
top: 5.5em;
210+
}
211+
212+
.ol-control button:hover,
213+
.ol-control button:focus {
214+
text-decoration: none;
215+
outline: 1px solid var(--ol-subtle-foreground-color);
216+
color: var(--ol-foreground-color);
217+
}
218+
219+
.ol-zoom .ol-zoom-in {
220+
border-radius: 2px 2px 0 0;
221+
}
222+
223+
.ol-zoom .ol-zoom-out {
224+
border-radius: 0 0 2px 2px;
225+
}
226+
227+
.ol-attribution {
228+
text-align: right;
229+
bottom: .5em;
230+
right: .5em;
231+
max-width: calc(100% - 1.3em);
232+
display: flex;
233+
flex-flow: row-reverse;
234+
align-items: center;
235+
}
236+
237+
.ol-attribution a {
238+
color: var(--ol-subtle-foreground-color);
239+
text-decoration: none;
240+
}
241+
242+
.ol-attribution ul {
243+
margin: 0;
244+
padding: 1px .5em;
245+
color: var(--ol-foreground-color);
246+
text-shadow: 0 0 2px var(--ol-background-color);
247+
font-size: 12px;
248+
}
249+
250+
.ol-attribution li {
251+
display: inline;
252+
list-style: none;
253+
}
254+
255+
.ol-attribution li:not(:last-child):after {
256+
content: " ";
257+
}
258+
259+
.ol-attribution img {
260+
max-height: 2em;
261+
max-width: inherit;
262+
vertical-align: middle;
263+
}
264+
265+
.ol-attribution button {
266+
flex-shrink: 0;
267+
}
268+
269+
.ol-attribution.ol-collapsed ul {
270+
display: none;
271+
}
272+
273+
.ol-attribution:not(.ol-collapsed) {
274+
background: var(--ol-partial-background-color);
275+
}
276+
277+
.ol-attribution.ol-uncollapsible {
278+
bottom: 0;
279+
right: 0;
280+
border-radius: 4px 0 0;
281+
}
282+
283+
.ol-attribution.ol-uncollapsible img {
284+
margin-top: -.2em;
285+
max-height: 1.6em;
286+
}
287+
288+
.ol-attribution.ol-uncollapsible button {
289+
display: none;
290+
}
291+
292+
.ol-zoomslider {
293+
top: 4.5em;
294+
left: .5em;
295+
height: 200px;
296+
}
297+
298+
.ol-zoomslider button {
299+
position: relative;
300+
height: 10px;
301+
}
302+
303+
.ol-touch .ol-zoomslider {
304+
top: 5.5em;
305+
}
306+
307+
.ol-overviewmap {
308+
left: 0.5em;
309+
bottom: 0.5em;
310+
}
311+
312+
.ol-overviewmap.ol-uncollapsible {
313+
bottom: 0;
314+
left: 0;
315+
border-radius: 0 4px 0 0;
316+
}
317+
318+
.ol-overviewmap .ol-overviewmap-map,
319+
.ol-overviewmap button {
320+
display: block;
321+
}
322+
323+
.ol-overviewmap .ol-overviewmap-map {
324+
border: 1px solid var(--ol-subtle-foreground-color);
325+
height: 150px;
326+
width: 150px;
327+
}
328+
329+
.ol-overviewmap:not(.ol-collapsed) button {
330+
bottom: 0;
331+
left: 0;
332+
position: absolute;
333+
}
334+
335+
.ol-overviewmap.ol-collapsed .ol-overviewmap-map,
336+
.ol-overviewmap.ol-uncollapsible button {
337+
display: none;
338+
}
339+
340+
.ol-overviewmap:not(.ol-collapsed) {
341+
background: var(--ol-subtle-background-color);
342+
}
343+
344+
.ol-overviewmap-box {
345+
border: 1.5px dotted var(--ol-subtle-foreground-color);
346+
}
347+
348+
.ol-overviewmap .ol-overviewmap-box:hover {
349+
cursor: move;
350+
}
351+
352+
.ol-overviewmap .ol-viewport:hover {
353+
cursor: pointer;
354+
}

_static/openlayers/10.4.0/ol-mapserver.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*!
2+
* OpenLayers (https://openlayers.org/)
3+
* Copyright 2005-present, OpenLayers Contributors All rights reserved.
4+
* Licensed under BSD 2-Clause License (https://github.com/openlayers/openlayers/blob/main/LICENSE.md)
5+
*/

_static/openlayers/10.4.0/ol-mapserver.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)