Skip to content

Commit cf281b8

Browse files
author
Justin Debbink
committed
Clicking icon performs search when collapsed:false option is set
1 parent e91658b commit cf281b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Control.Geocoder.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@
8080
this._map.on('movestart', this._collapse, this);
8181
}
8282
} else {
83+
L.DomEvent.addListener(icon, 'click', function(e) {
84+
this._geocode(e);
85+
}, this);
8386
this._expand();
8487
}
8588

0 commit comments

Comments
 (0)