Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mtennekes committed Oct 21, 2024
1 parent bf67110 commit 6566cd6
Show file tree
Hide file tree
Showing 4 changed files with 262 additions and 229 deletions.
7 changes: 7 additions & 0 deletions R/step1_rearrange.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ step1_rearrange = function(tmel) {
o = c(o, tmf)
# process shapes: put non-spatial data in data.table, keep spatial data separately


# disable s2 in case earth.boundaries are drawn
if (o$earth.boundary && sf::sf_use_s2()) {
suppressMessages(sf::sf_use_s2(FALSE))
.TMAP$set_s2 = TRUE
}

if (any_data_layer) {
tmo = structure(lapply(tmo, function(tmg) {
tmg$tms = do.call(tmapShape, c(tmg$tms, list(o = o, tmf = tmg$tmf)))
Expand Down
Loading

0 comments on commit 6566cd6

Please sign in to comment.