Skip to content

Commit 35022b0

Browse files
committed
replace all :punct: and empty space with _ in homebutton.
1 parent d8157a8 commit 35022b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/fgb.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ sfFgb = function(x,
222222
if (scalebar) list(position = "bottomleft")
223223
, if (homebutton) list(
224224
ext = createExtent(x)
225-
, group = layer.name
225+
, group = gsub("[[:punct:] ]", "_", layer.name)
226226
, position = mapviewGetOption("homebutton.pos")
227227
)
228228
, if (is.null(map)) list(

0 commit comments

Comments
 (0)