'l' toggles locate state (#462)
This commit is contained in:
parent
e822a97ed0
commit
103b00a519
1 changed files with 4 additions and 0 deletions
|
|
@ -120,6 +120,10 @@ BR.Map = {
|
||||||
'keydown',
|
'keydown',
|
||||||
function (e) {
|
function (e) {
|
||||||
if (BR.Util.keyboardShortcutsAllowed(e) && e.keyCode === this.options.shortcut.locate) {
|
if (BR.Util.keyboardShortcutsAllowed(e) && e.keyCode === this.options.shortcut.locate) {
|
||||||
|
if (locationControl._active) {
|
||||||
|
locationControl.stop();
|
||||||
|
return;
|
||||||
|
}
|
||||||
locationControl.start();
|
locationControl.start();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue