Skip to content
Snippets Groups Projects
Commit 5cd2e236 authored by Henry Castro's avatar Henry Castro
Browse files

loleaflet: avoid unnecessary "map" global variable in Map.Keyboard.js

Change-Id: I2e566157d468699e901c24ad0c23de501297bf2c
parent 6e6b56ad
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,6 @@
* L.Map.Keyboard is handling keyboard interaction with the map, enabled by default.
*/
/* global map */
L.Map.mergeOptions({
keyboard: true,
keyboardPanOffset: 20,
......@@ -451,7 +449,7 @@ L.Map.Keyboard = L.Handler.extend({
}
if (e.originalEvent.ctrlKey && e.originalEvent.shiftKey && e.originalEvent.key === '?') {
map.showLOKeyboardHelp();
this._map.showLOKeyboardHelp();
e.originalEvent.preventDefault();
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment