Skip to content

Commit f2c0c18

Browse files
authored
Merge pull request #223 from Malvoz/tap-target-size
Increase default size of primary tap targets
2 parents 3bce60a + 4261566 commit f2c0c18

File tree

3 files changed

+23
-15
lines changed

3 files changed

+23
-15
lines changed

index-mapml-viewer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</noscript>
5555
</head>
5656
<body>
57-
<mapml-viewer projection="CBMTILE" zoom="2" lat="45" lon="-90" controls controlslist="nofullscreen">
57+
<mapml-viewer projection="CBMTILE" zoom="2" lat="45" lon="-90" controls controlslist="nofullscreen noreload">
5858
<layer- label="CBMT" src="https://geogratis.gc.ca/mapml/en/cbmtile/cbmt/" checked></layer->
5959
</mapml-viewer>
6060
</body>

src/mapml.css

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,27 @@
3838
/*
3939
* Controls.
4040
*/
41+
42+
.leaflet-top .leaflet-control {
43+
margin-top: 5px;
44+
}
45+
46+
.leaflet-left .leaflet-control {
47+
margin-left: 5px;
48+
}
4149

4250
.leaflet-bar a {
4351
box-sizing: border-box;
44-
width: 30px !important;
45-
height: 30px !important;
46-
line-height: 30px !important;
47-
font-size: 24px !important;
52+
width: 44px !important;
53+
height: 44px !important;
54+
line-height: 44px !important;
55+
font-size: 34px !important;
4856
font-weight: normal;
4957
}
5058

5159
.leaflet-control-layers-toggle {
52-
width: 36px !important;
53-
height: 36px !important;
60+
width: 44px !important;
61+
height: 44px !important;
5462
}
5563

5664
.leaflet-bar a,
@@ -103,21 +111,21 @@
103111
*/
104112

105113
.leaflet-control-fullscreen a {
106-
background-size: 30px 60px !important;
107-
background-position: 0 0 !important;
114+
background-size: 38px 76px !important;
115+
background-position: 3px 3px !important;
108116
}
109117
.leaflet-fullscreen-on .leaflet-control-fullscreen a {
110-
background-size: 30px 60px !important;
111-
background-position: 0 -30px !important;
118+
background-size: 38px 76px !important;
119+
background-position: 3px -35px !important;
112120
}
113121

114122
/*
115123
* Layer controls.
116124
*/
117125

118126
.leaflet-control-layers.leaflet-control {
119-
margin-right: 10px;
120-
margin-left: 10px;
127+
margin-right: 5px;
128+
margin-left: 5px;
121129
padding: 0;
122130
}
123131

src/mapml/layers/DebugLayer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export var DebugOverlay = L.Layer.extend({
2020
this._container.style.zIndex = 10000;
2121
this._container.style.position = "absolute";
2222
this._container.style.top = "auto";
23-
this._container.style.bottom = "10px";
24-
this._container.style.left = "10px";
23+
this._container.style.bottom = "5px";
24+
this._container.style.left = "5px";
2525
this._container.style.right = "auto";
2626
}
2727

0 commit comments

Comments
 (0)