Skip to content

Commit

Permalink
fixed #796
Browse files Browse the repository at this point in the history
  • Loading branch information
mtennekes committed Oct 18, 2023
1 parent 3e6ad93 commit 3783bbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/tmapGridLegend.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ tmapGridCompCorner = function(comp, o, stack, pos.h, pos.v, maxH, maxW, offsetIn
scaleH = legHin / maxH

# because of legend frames (for which margins are added in tmapGridLegend), the scale may be a bit above 1, even though automatic layout is applied and there is enough space
if (any(scaleW > 1.05) || any(scaleH > 1.05)) warning("Some legend items or map compoments do not fit well (e.g. due to the specified font size).", call. = FALSE)
if (any(scaleW > 1.1) || any(scaleH > 1.1)) warning("Some legend items or map compoments do not fit well (e.g. due to the specified font size).", call. = FALSE)

clipW = pmax(1, scaleW)
clipH = pmax(1, scaleH)
Expand Down
1 change: 1 addition & 0 deletions R/tmap_options.R
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@
title.frame.r = 2,
title.stack = "vertical",
title.position = tm_pos_out(cell.h = "center", cell.v ="top", pos.h = "left", pos.v = "top", align.h = "left", align.v = "top", just.h = "left", just.v = "bottom"),
title.width = NA,
title.group.frame = TRUE,
title.resize.as.group = FALSE,

Expand Down

0 comments on commit 3783bbb

Please sign in to comment.