Skip to content

Commit 8b3b6f1

Browse files
authored
Merge pull request projecthorus#25 from LukePrior/testing
Show map scale & fixes
2 parents a6f3814 + 931f818 commit 8b3b6f1

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

css/main.css

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -150,17 +150,14 @@ body {
150150
background: #00A3D3;
151151
}
152152
#loading img {
153-
width: 350px;
154-
height: 250px;
155-
}
156-
#loading > div {
157153
position: absolute;
158-
top: 50%;
154+
display: block;
155+
width: 80vw;
156+
max-width: 500px;
159157
left: 50%;
160-
width: 350px;
161-
height: 250px;
162-
margin-top: -175px;
163-
margin-left: -125px;
158+
top: 50%;
159+
-ms-transform: translate(-50%, -50%);
160+
transform: translate(-50%, -50%);
164161
}
165162
#loading .bar {
166163
position: relative;
@@ -446,7 +443,6 @@ header .search form input[type='submit'] {
446443
#main .row .data img {
447444
position: absolute;
448445
z-index: 2;
449-
bottom: 40%;
450446
right: 30%;
451447
opacity: 0.6;
452448
width: 46px;

js/tracker.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,19 @@ function load() {
392392
preferCanvas: true,
393393
});
394394

395+
// fullscreen button
395396
map.addControl(new L.Control.Fullscreen({ position: 'bottomleft' }));
396397

398+
// scale (would be better if integrated into attirbution bar)
399+
L.control.scale({position:'bottomright', imperial:false}).addTo(map);
400+
401+
// zoom controls
397402
new L.Control.Zoom({ position: 'bottomright' }).addTo(map);
398403

404+
// map selector
399405
layers = L.control.layers(baseMaps, null, {position: "topleft"}).addTo(map);
400406

407+
// update time div
401408
L.Control.Status = L.Control.extend({
402409
onAdd: function(map) {
403410
var div = L.DomUtil.create('div');

manifest.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"theme_color": "#00a3d3",
66
"background_color": "#00a3d3",
77
"display": "standalone",
8+
"orientation": "any",
9+
"categories": ["utilities"],
810
"scope": "/",
911
"start_url": "/",
1012
"icons": [

0 commit comments

Comments
 (0)