Skip to content

Commit 5a62164

Browse files
committed
feat: add home button to modal map
1 parent a98d089 commit 5a62164

File tree

4 files changed

+452
-1
lines changed

4 files changed

+452
-1
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
.leaflet-bar button,
2+
.leaflet-bar button:hover {
3+
background-color: #fff;
4+
border: none;
5+
border-bottom: 1px solid #ccc;
6+
width: 26px;
7+
height: 26px;
8+
line-height: 26px;
9+
display: block;
10+
text-align: center;
11+
text-decoration: none;
12+
color: black;
13+
}
14+
15+
.leaflet-bar button {
16+
background-position: 50% 50%;
17+
background-repeat: no-repeat;
18+
overflow: hidden;
19+
display: block;
20+
}
21+
22+
.leaflet-bar button:hover {
23+
background-color: #f4f4f4;
24+
}
25+
26+
.leaflet-bar button:first-of-type {
27+
border-top-left-radius: 4px;
28+
border-top-right-radius: 4px;
29+
}
30+
31+
.leaflet-bar button:last-of-type {
32+
border-bottom-left-radius: 4px;
33+
border-bottom-right-radius: 4px;
34+
border-bottom: none;
35+
}
36+
37+
.leaflet-bar.disabled,
38+
.leaflet-bar button.disabled {
39+
cursor: default;
40+
pointer-events: none;
41+
opacity: .4;
42+
}
43+
44+
.easy-button-button .button-state{
45+
display: block;
46+
width: 100%;
47+
height: 100%;
48+
position: relative;
49+
}
50+
51+
52+
.leaflet-touch .leaflet-bar button {
53+
width: 30px;
54+
height: 30px;
55+
line-height: 30px;
56+
}

0 commit comments

Comments
 (0)