Skip to content

Commit 4df2544

Browse files
committed
Map layout tweaks
Signed-off-by: Daniel Kastl <[email protected]>
1 parent b6f96cc commit 4df2544

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

src/components/gtt-client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,11 @@ export class GttClient {
308308
this.setView()
309309
this.setGeocoding(this.map)
310310
this.setGeolocation(this.map)
311-
this.toolbar.addControl (new FullScreen())
312-
this.toolbar.addControl (new Rotate())
313311
this.parseHistory()
314312

313+
this.map.addControl (new FullScreen())
314+
this.map.addControl (new Rotate())
315+
315316
// Control button
316317
const maximizeCtrl = new Button({
317318
html: '<i class="material-icons" >zoom_out_map</i>',

src/stylesheets/app.scss

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,25 @@
33
*/
44
.ol-map {
55
width: 100%;
6-
height: 420px;
6+
height: 400px;
77
border: 1px solid #E4E4E4;
88
}
99
#issue-form .ol-map {
1010
width: 100%;
1111
margin-bottom: 1em;
1212
}
1313

14+
$breakpoint-tablet: 899px;
15+
@media (max-width: $breakpoint-tablet) {
16+
.ol-map {
17+
height: 340px;
18+
}
19+
}
20+
1421
.ol-control button {
1522
background-color: rgba(52, 73, 94, 0.8);
23+
height: 32px;
24+
width: 32px;
1625
}
1726
.ol-control button:hover {
1827
background-color: rgba(52, 73, 94, 1);
@@ -24,11 +33,21 @@
2433
.ol-full-screen button.ol-full-screen-false,
2534
.ol-rotate button.ol-rotate-reset,
2635
.ol-bar .ol-button button {
27-
height: 32px;
28-
width: 32px;
2936
font-size: 1.6em;
3037
}
3138

39+
div.ol-full-screen {
40+
right: 3.0em;
41+
}
42+
43+
div.ol-rotate {
44+
right: 5.5em;
45+
}
46+
47+
div.ol-full-screen {
48+
right: 3.0em;
49+
}
50+
3251
.ol-control.ol-bar.ol-top.ol-left, .ol-control.ol-bar.ol-top.ol-right {
3352
top: 5.2em;
3453
}

0 commit comments

Comments
 (0)