-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
shortcuts_3.7.js
72 lines (70 loc) · 1.97 KB
/
shortcuts_3.7.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
lizMap.events.on({
uicreated: function(e) {
//ZoomIn
$(document).keypress(function(e) {
if(e.shiftKey && e.which == 90) { //Touche Shift+z
$('#navbar button.zoom-in').click();
}
});
//ZoomOut
$(document).keypress(function(e) {
if(e.shiftKey && e.which == 79) { //Touche Shift+o
$('#navbar button.zoom-out').click();
}
});
//Switcher
$(document).keypress(function(e) {
if(e.shiftKey && e.which == 83) { //Touche Shift+s
$('#mapmenu li.switcher a').click();
}
});
//Metadata
$(document).keypress(function(e) {
if(e.shiftKey && e.which == 73) { //Touche Shift+i
$('#mapmenu li.metadata a').click();
}
});
//Edition
$(document).keypress(function(e) {
if(e.shiftKey && e.which == 69) { //Touche Shift+e
$('#mapmenu li.edition a').click();
}
});
//Locate
$(document).keypress(function(e) {
if(e.shiftKey && e.which == 76) { //Touche Shift+l
$('#mapmenu li.locate a').click();
}
});
//Geolocation
$(document).keypress(function(e) {
if(e.shiftKey && e.which == 71) { //Touche Shift+g
$('#mapmenu li.geolocation a').click();
}
});
//Print
$(document).keypress(function(e) {
if(e.shiftKey && e.which == 80) { //Touche Shift+p
$('#mapmenu li.print a').click();
}
});
//Measure
$(document).keypress(function(e) {
if(e.shiftKey && e.which == 77) { //Touche Shift+m
$('#mapmenu li.measure a').click();
}
});
//AttributeLayers
$(document).keypress(function(e) {
if(e.shiftKey && e.which == 68) { //Touche Shift+d
$('#mapmenu li.attributeLayers a').click();
}
});
//Atlas
$(document).keypress(function(e) {
if(e.shiftKey && e.which == 65) { //Touche Shift+a
$('#mapmenu li.atlas a').click();
}
});
}
});