Skip to content

Commit e6f5fdb

Browse files
committed
Fixup indentation etc.
1 parent 5c0659b commit e6f5fdb

File tree

2 files changed

+49
-49
lines changed

2 files changed

+49
-49
lines changed

Control.Geocoder.css

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,85 @@
11
.leaflet-control-geocoder {
2-
background: white;
2+
background: white;
33
}
44
.leaflet-control-geocoder a {
5-
border-bottom-left-radius: 4px;
6-
border-bottom-right-radius: 4px;
7-
border-bottom: none;
8-
display: inline-block;
5+
border-bottom-left-radius: 4px;
6+
border-bottom-right-radius: 4px;
7+
border-bottom: none;
8+
display: inline-block;
99
}
1010
.leaflet-control-geocoder a:hover {
11-
border-bottom: none;
12-
display: inline-block;
11+
border-bottom: none;
12+
display: inline-block;
1313
}
1414

1515
.leaflet-control-geocoder-form {
16-
display: none;
17-
vertical-align: middle;
16+
display: none;
17+
vertical-align: middle;
1818
}
1919
.leaflet-control-geocoder-expanded .leaflet-control-geocoder-form {
20-
display: inline-block;
20+
display: inline-block;
2121
}
2222
.leaflet-control-geocoder-form input {
23-
font-size: 120%;
24-
border: 0;
25-
background-color: transparent;
26-
width: 246px;
23+
font-size: 120%;
24+
border: 0;
25+
background-color: transparent;
26+
width: 246px;
2727
}
2828
.leaflet-control-geocoder-icon {
29-
background-image: url(images/geocoder.png);
30-
background-repeat: no-repeat;
31-
background-position: center;
29+
background-image: url(images/geocoder.png);
30+
background-repeat: no-repeat;
31+
background-position: center;
3232
}
3333
.leaflet-control-geocoder-throbber .leaflet-control-geocoder-icon {
34-
background-image: url(images/throbber.gif);
34+
background-image: url(images/throbber.gif);
3535
}
3636

3737
.leaflet-control-geocoder-form-no-error {
38-
display: none;
38+
display: none;
3939
}
4040

4141
.leaflet-control-geocoder-form input:focus {
42-
outline: none;
42+
outline: none;
4343
}
4444

4545
.leaflet-control-geocoder-form button {
46-
display: none;
46+
display: none;
4747
}
4848
.leaflet-control-geocoder-error {
49-
margin-top: 8px;
50-
display: block;
51-
color: #444;
49+
margin-top: 8px;
50+
display: block;
51+
color: #444;
5252
}
5353
.leaflet-control-geocoder-alternatives {
54-
display: block;
55-
width: 272px;
56-
list-style: none;
57-
padding: 0;
58-
margin: 0;
54+
display: block;
55+
width: 272px;
56+
list-style: none;
57+
padding: 0;
58+
margin: 0;
5959
}
6060

6161
.leaflet-control-geocoder-alternatives-minimized {
62-
display: none;
63-
height: 0;
62+
display: none;
63+
height: 0;
6464
}
6565
.leaflet-control-geocoder-alternatives li {
66-
white-space: nowrap;
67-
display: block;
68-
overflow: hidden;
69-
padding: 5px 8px;
70-
text-overflow: ellipsis;
71-
border-bottom: 1px solid #ccc;
72-
cursor: pointer;
66+
white-space: nowrap;
67+
display: block;
68+
overflow: hidden;
69+
padding: 5px 8px;
70+
text-overflow: ellipsis;
71+
border-bottom: 1px solid #ccc;
72+
cursor: pointer;
7373
}
7474
.leaflet-control-geocoder-alternatives li:last-child {
75-
border-bottom: none;
75+
border-bottom: none;
7676
}
7777
.leaflet-control-geocoder-alternatives li:hover, .leaflet-control-geocoder-selected {
78-
background-color: #f5f5f5;
78+
background-color: #f5f5f5;
7979
}
8080
.leaflet-control-geocoder-address-detail {
81-
81+
8282
}
8383
.leaflet-control-geocoder-address-context {
84-
color: #666;
84+
color: #666;
8585
}

Control.Geocoder.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737

3838
onAdd: function (map) {
3939
var className = 'leaflet-control-geocoder',
40-
container = L.DomUtil.create('div', className + ' leaflet-bar'),
41-
icon = L.DomUtil.create('a', 'leaflet-control-geocoder-icon', container),
42-
form = this._form = L.DomUtil.create('form', className + '-form', container),
43-
input;
40+
container = L.DomUtil.create('div', className + ' leaflet-bar'),
41+
icon = L.DomUtil.create('a', 'leaflet-control-geocoder-icon', container),
42+
form = this._form = L.DomUtil.create('form', className + '-form', container),
43+
input;
4444

4545
icon.innerHTML = ' ';
4646
icon.href = '#';
@@ -165,8 +165,8 @@
165165

166166
_createAlt: function(result, index) {
167167
var li = document.createElement('li'),
168-
icon = this.options.showResultIcons && result.icon ? L.DomUtil.create('img', '', li) : null,
169-
text = result.html ? undefined : document.createTextNode(result.name);
168+
icon = this.options.showResultIcons && result.icon ? L.DomUtil.create('img', '', li) : null,
169+
text = result.html ? undefined : document.createTextNode(result.name);
170170

171171
if (icon) {
172172
icon.src = result.icon;
@@ -190,7 +190,7 @@
190190

191191
_keydown: function(e) {
192192
var _this = this,
193-
select = function select(dir) {
193+
select = function select(dir) {
194194
if (_this._selection) {
195195
L.DomUtil.removeClass(_this._selection, 'leaflet-control-geocoder-selected');
196196
_this._selection = _this._selection[dir > 0 ? 'nextSibling' : 'previousSibling'];

0 commit comments

Comments
 (0)