Add shortcut for geocoder search field
Press 'F', type a query and press 'Enter' to find places effortlessly. Note that the button already triggers on mousedown events, even though by convention it should react on mouseup (i.e. a regular click) only. However, that's an issue in the external dependency, and can be worked around for now.
This commit is contained in:
parent
f23e3751b5
commit
37ab05310b
3 changed files with 15 additions and 1 deletions
|
|
@ -46,6 +46,7 @@
|
|||
|
||||
search = new BR.Search();
|
||||
map.addControl(search);
|
||||
$('#map .leaflet-control-geocoder > button')[0].title = i18next.t('map.geocoder');
|
||||
|
||||
router = L.bRouter(); //brouterCgi dummyRouter
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue