File tree Expand file tree Collapse file tree 3 files changed +23
-19
lines changed Expand file tree Collapse file tree 3 files changed +23
-19
lines changed Original file line number Diff line number Diff line change @@ -1844,7 +1844,7 @@ methods.addLegend = function (options) {
1844
1844
var leftDiv = ( 0 , _jquery2 . default ) ( "<div/>" ) . css ( "float" , "left" ) ,
1845
1845
rightDiv = ( 0 , _jquery2 . default ) ( "<div/>" ) . css ( "float" , "left" ) ;
1846
1846
leftDiv . append ( gradSpan ) ;
1847
- ( 0 , _jquery2 . default ) ( div ) . append ( leftDiv ) . append ( rightDiv ) . append ( ( 0 , _jquery2 . default ) ( "<br clear=\"both\"/ >" ) ) ;
1847
+ ( 0 , _jquery2 . default ) ( div ) . append ( leftDiv ) . append ( rightDiv ) . append ( ( 0 , _jquery2 . default ) ( "<br>" ) ) ;
1848
1848
1849
1849
// Have to attach the div to the body at this early point, so that the
1850
1850
// svg text getComputedTextLength() actually works, below.
@@ -1892,7 +1892,7 @@ methods.addLegend = function (options) {
1892
1892
labels . push ( options . na_label ) ;
1893
1893
}
1894
1894
for ( var i = 0 ; i < colors . length ; i ++ ) {
1895
- legendHTML += "<i style=\"background:" + colors [ i ] + ";opacity:" + options . opacity + "\"></i> " + labels [ i ] + "<br clear='both'/>" ;
1895
+ legendHTML += "<i style=\"background:" + colors [ i ] + ";opacity:" + options . opacity + "\"></i> " + labels [ i ] ;
1896
1896
}
1897
1897
div . innerHTML = legendHTML ;
1898
1898
}
Original file line number Diff line number Diff line change @@ -6,27 +6,31 @@ img.leaflet-tile {
6
6
border : none;
7
7
}
8
8
.info {
9
- padding : 6px 8px ;
10
- font : 14 px/16px Arial, Helvetica, sans-serif;
11
- background : white;
12
- background : rgba (255 , 255 , 255 , 0.8 );
13
- box-shadow : 0 0 15px rgba (0 , 0 , 0 , 0.2 );
14
- border-radius : 5px ;
9
+ padding : 6px 8px ;
10
+ font : 14 px/16px Arial, Helvetica, sans-serif;
11
+ background : white;
12
+ background : rgba (255 , 255 , 255 , 0.8 );
13
+ box-shadow : 0 0 15px rgba (0 , 0 , 0 , 0.2 );
14
+ border-radius : 5px ;
15
15
}
16
16
.legend {
17
- line-height : 18px ;
18
- color : # 555 ;
17
+ line-height : 18px ;
18
+ color : # 555 ;
19
19
}
20
20
.legend svg text {
21
- fill : # 555 ;
21
+ fill : # 555 ;
22
22
}
23
23
.legend svg line {
24
- stroke : # 555 ;
24
+ stroke : # 555 ;
25
25
}
26
26
.legend i {
27
- width : 18px ;
28
- height : 18px ;
29
- float : left;
30
- margin-right : 8px ;
31
- opacity : 0.7 ;
27
+ width : 18px ;
28
+ height : 18px ;
29
+ margin-right : 4px ;
30
+ opacity : 0.7 ;
31
+ display : inline-block;
32
+ vertical-align : top;
33
+ /*For IE 7*/
34
+ zoom : 1 ;
35
+ * display : inline;
32
36
}
Original file line number Diff line number Diff line change @@ -739,7 +739,7 @@ methods.addLegend = function(options) {
739
739
rightDiv = $ ( "<div/>" ) . css ( "float" , "left" ) ;
740
740
leftDiv . append ( gradSpan ) ;
741
741
$ ( div ) . append ( leftDiv ) . append ( rightDiv )
742
- . append ( $ ( "<br clear=\"both\"/ >" ) ) ;
742
+ . append ( $ ( "<br>" ) ) ;
743
743
744
744
// Have to attach the div to the body at this early point, so that the
745
745
// svg text getComputedTextLength() actually works, below.
@@ -800,7 +800,7 @@ methods.addLegend = function(options) {
800
800
}
801
801
for ( let i = 0 ; i < colors . length ; i ++ ) {
802
802
legendHTML += "<i style=\"background:" + colors [ i ] + ";opacity:" +
803
- options . opacity + "\"></i> " + labels [ i ] + "<br clear='both'/>" ;
803
+ options . opacity + "\"></i> " + labels [ i ] ;
804
804
}
805
805
div . innerHTML = legendHTML ;
806
806
}
You can’t perform that action at this time.
0 commit comments