Skip to content

Commit

Permalink
Merge branch 'master' into doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mtennekes committed Feb 6, 2024
2 parents ac180d7 + 4bf91df commit 957b0c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/tmapGridAux.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ tmapGridTilesPrep = function(a, bs, id, o) {
}

ss = lapply(xs, function(x) {
if (is.null(x)) NULL else do.call(tmapShape, list(shp = x, is.main = FALSE, crs = crs, bbox = NULL, unit=NULL, filter=NULL, shp_name = "x", smeta = list(), o = o))
if (is.null(x)) NULL else do.call(tmapShape, list(shp = x, is.main = FALSE, crs = crs, bbox = NULL, unit=NULL, filter=NULL, shp_name = "x", smeta = list(), o = o, tmf = NULL))
})

srgb = tm_scale_rgb(maxValue = 255, value.na = "#FFFFFF")
Expand Down
6 changes: 4 additions & 2 deletions R/tmapShape.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@ tmapShape.SpatRaster = function(shp, is.main, crs, bbox, unit, filter, shp_name,

names(ctabs) = dtcols
names(cats) = dtcols
# tmf not defined?
make_by_vars(dt, tmf, smeta)


if (!is.null(tmf)) make_by_vars(dt, tmf, smeta)


if (is.null(filter)) filter = rep(TRUE, nrow(dt))
dt[, ':='(sel__ = filter)] # tmapID__ = 1L:nrow(dt),
Expand Down

0 comments on commit 957b0c1

Please sign in to comment.