Skip to content

Commit

Permalink
fixed #900
Browse files Browse the repository at this point in the history
  • Loading branch information
mtennekes committed Jul 16, 2024
1 parent 732cf46 commit 702a226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/tmapGridAux.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ tmapGridTilesPrep = function(a, bs, id, o) {
d = s$dt
d[, c("col", "legnr", "crtnr") := do.call(srgb$FUN, list(x1 = red, x2 = green, x3 = blue, scale = srgb, legend = list(), o = o, aes = "col", layer = "raster", sortRev = NA, bypass_ord = TRUE))]
if ("alpha" %in% names(d)) {
d[, col_alpha:=alpha/255]
d[, col_alpha:=alpha/255 * a$alpha]
d[is.na(col_alpha), col_alpha:=0]
} else {
d[, col_alpha:=1L]
d[, col_alpha:=a$alpha]
}
d
})
Expand Down

0 comments on commit 702a226

Please sign in to comment.