Skip to content

Commit 9841cde

Browse files
committed
Fix offset on setStyle
1 parent 5fa9b98 commit 9841cde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/methods.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ setView <- function(map, lng, lat, zoom, options = list()) {
4949
#' }
5050
#' @export
5151
setStyle = function(map, group, styles, label = NULL, offset = 0) {
52-
invokeMethod(map, NULL, "setStyle", group, styles, label, offset)
52+
invokeMethod(map, NULL, "setStyle", group, styles, label, offset - 1)
5353
}
5454

5555
#' @export

0 commit comments

Comments
 (0)