diff --git a/R/tm_layers_raster.R b/R/tm_layers_raster.R index e98006db..2a5e736f 100644 --- a/R/tm_layers_raster.R +++ b/R/tm_layers_raster.R @@ -2,7 +2,7 @@ #' @name opt_tm_raster #' @param interpolate Should the raster image be interpolated? Currently only applicable in view mode (passed on to [`grid`][grid::rasterGrob()]) #' @export -opt_tm_raster = function(interpolate = FALSE) { +opt_tm_raster = function(interpolate = TRUE) { list(trans.args = list(), mapping.args = list(interpolate = interpolate)) } diff --git a/R/tmapGridAux.R b/R/tmapGridAux.R index 9cf4e30b..0ed3e906 100644 --- a/R/tmapGridAux.R +++ b/R/tmapGridAux.R @@ -368,7 +368,7 @@ tmapGridTiles = function(bi, bbx, facet_row, facet_col, facet_page, id, pane, gr shpTM = g$bmaps_shpTHs[[id]][[bi]] gp = list() - if (!is.null(dt)) tmapGridRaster(shpTM, dt, gp, bbx, facet_row, facet_col, facet_page, id, pane, group, o) + if (!is.null(dt)) tmapGridRaster(shpTM, dt, gp, bbx, facet_row, facet_col, facet_page, id, pane, group, o, interpolate = FALSE) }