Skip to content

Commit 387cc90

Browse files
committed
fix: minor modifications for better composite rasters display.
1 parent bcf6d57 commit 387cc90

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

R/mf_init.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ mf_init <- function(x, expandBB = rep(0, 4)) {
3535
bb <- terra::ext(x)[c(1, 3, 2, 4)]
3636
y <- st_as_sfc(st_bbox(bb))
3737
st_crs(y) <- proj
38-
mf_init(y, expandBB = c(rep(-.04, 4)) + expandBB)
38+
mf_init(y, expandBB = c(rep(-.0399, 4)) + expandBB)
3939
return(invisible(x))
4040
}
4141

R/mf_raster.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ mf_raster <- function(x,
125125
)
126126

127127

128-
128+
op <- par(mar = getOption("mapsf.mar"), no.readonly = TRUE)
129+
on.exit(par(op))
129130

130131

131132
# catch arguments
@@ -146,6 +147,7 @@ mf_raster <- function(x,
146147
mf_raster_multiband(ops, expandBB, add)
147148
}
148149

150+
ops$clip <- FALSE
149151
# One band raster
150152
if (terra::nlyr(x) == 1) {
151153
# set the type - default to continuous for numeric raster

0 commit comments

Comments
 (0)