File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ leaflet 1.1.1
7
7
* Fix bug with accessing columns in formulas when the data source is a Crosstalk
8
8
SharedData object wrapping a spatial data frame or sf object.
9
9
10
+ * Fix incorrect opacity on NA entry in legend. (PR #425)
11
+
10
12
leaflet 1.1.0
11
13
--------------------------------------------------------------------------------
12
14
Original file line number Diff line number Diff line change @@ -1839,7 +1839,7 @@ methods.addLegend = function (options) {
1839
1839
} ) ;
1840
1840
1841
1841
if ( options . na_color ) {
1842
- ( 0 , _jquery2 . default ) ( div ) . append ( "<div><i style=\"background:" + options . na_color + "\"></i> " + options . na_label + "</div>" ) ;
1842
+ ( 0 , _jquery2 . default ) ( div ) . append ( "<div><i style=\"background:" + options . na_color + ";opacity:" + options . opacity + "; \"></i> " + options . na_label + "</div>" ) ;
1843
1843
}
1844
1844
} ) ( ) ;
1845
1845
} else {
Original file line number Diff line number Diff line change @@ -774,7 +774,8 @@ methods.addLegend = function(options) {
774
774
775
775
if ( options . na_color ) {
776
776
$ ( div ) . append ( "<div><i style=\"background:" + options . na_color +
777
- "\"></i> " + options . na_label + "</div>" ) ;
777
+ ";opacity:" + options . opacity +
778
+ ";\"></i> " + options . na_label + "</div>" ) ;
778
779
}
779
780
} else {
780
781
if ( options . na_color ) {
You can’t perform that action at this time.
0 commit comments