@@ -3,14 +3,48 @@ L.Control.ComparatorControl = L.Control.extend({
3
3
//L.DomEvent.on();
4
4
5
5
var parent = L . DomUtil . create ( 'div' ) ;
6
- parent . setAttribute ( "class" , "comp-control-parent" ) ;
6
+ parent . setAttribute ( "class" , "comp-control-parent MenuContainer" ) ;
7
+
8
+
9
+ var upContainer = L . DomUtil . create ( "div" ) ;
10
+ upContainer . setAttribute ( "class" , "MenuRow" ) ;
7
11
8
12
this . _root = L . DomUtil . create ( 'div' ) ;
9
13
this . _root . setAttribute ( "class" , "btn-group-vertical" ) ;
10
14
11
- parent . appendChild ( this . _root ) ;
15
+ upContainer . appendChild ( this . _root ) ;
16
+
17
+ var dwnContainer = L . DomUtil . create ( "div" ) ;
18
+ dwnContainer . setAttribute ( "class" , "MenuRow" ) ;
19
+ var loglinToggle = L . DomUtil . create ( "div" ) ;
20
+ loglinToggle . setAttribute ( "class" , "btn-group btn-group-toggle loglinToggle" ) ;
21
+
22
+ var logButton = L . DomUtil . create ( "label" ) ;
23
+ logButton . setAttribute ( "class" , "btn btn-sm btn-secondary active toggleBtn" ) ;
24
+ var logInput = L . DomUtil . create ( "input" ) ;
25
+ logInput . setAttribute ( "type" , "checkbox" ) ;
26
+
27
+ logButton . innerHTML = "dB" ;
28
+
29
+ logButton . appendChild ( logInput ) ;
30
+
31
+ var linButton = L . DomUtil . create ( "label" ) ;
32
+ linButton . setAttribute ( "class" , "btn btn-sm btn-secondary toggleBtn" ) ;
33
+ var linInput = L . DomUtil . create ( "input" ) ;
34
+ linInput . setAttribute ( "type" , "checkbox" ) ;
35
+ linButton . innerHTML = "linear" ;
36
+
37
+ linButton . appendChild ( linInput ) ;
38
+
39
+
40
+ loglinToggle . appendChild ( logButton ) ;
41
+ loglinToggle . appendChild ( linButton ) ;
42
+ dwnContainer . appendChild ( loglinToggle ) ;
12
43
13
44
45
+ parent . appendChild ( upContainer ) ;
46
+ parent . appendChild ( dwnContainer ) ;
47
+ parent . appendChild ( dwnContainer ) ;
14
48
15
49
return parent ;
16
50
} ,
0 commit comments