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
77* Fix bug with accessing columns in formulas when the data source is a Crosstalk
88 SharedData object wrapping a spatial data frame or sf object.
99
10+ * Fix incorrect opacity on NA entry in legend. (PR #425)
11+
1012leaflet 1.1.0
1113--------------------------------------------------------------------------------
1214
Original file line number Diff line number Diff line change @@ -1839,7 +1839,7 @@ methods.addLegend = function (options) {
18391839 } ) ;
18401840
18411841 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>" ) ;
18431843 }
18441844 } ) ( ) ;
18451845 } else {
Original file line number Diff line number Diff line change @@ -774,7 +774,8 @@ methods.addLegend = function(options) {
774774
775775 if ( options . na_color ) {
776776 $ ( 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>" ) ;
778779 }
779780 } else {
780781 if ( options . na_color ) {
You can’t perform that action at this time.
0 commit comments