Don't instantiate uiShortcuts or its keybinding multiple times

This commit is contained in:
Quincy Morgan
2020-10-05 10:57:18 -04:00
parent 3ad4d7bd98
commit 0c38363406
3 changed files with 17 additions and 17 deletions
+3 -1
View File
@@ -418,7 +418,7 @@ export function uiInit(context) {
}
context.container()
.call(uiShortcuts(context));
.call(ui.shortcuts);
}
var osm = context.connection();
@@ -499,6 +499,8 @@ export function uiInit(context) {
ui.photoviewer = uiPhotoviewer(context);
ui.shortcuts = uiShortcuts(context);
ui.onResize = function(withPan) {
var map = context.map();