diff --git a/NAMESPACE b/NAMESPACE index 45e28cfe..cf657b56 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -72,6 +72,8 @@ S3method(tmapLeafletCompWidth,tm_scalebar) S3method(tmapLeafletCompWidth,tm_title) S3method(tmapLeafletLegPlot,tm_compass) S3method(tmapLeafletLegPlot,tm_credits) +S3method(tmapLeafletLegPlot,tm_legend_standard_landscape) +S3method(tmapLeafletLegPlot,tm_legend_standard_portrait) S3method(tmapLeafletLegPlot,tm_mouse_coordinates) S3method(tmapLeafletLegPlot,tm_scalebar) S3method(tmapLeafletLegPlot,tm_title) diff --git a/R/tmapLeafletLegend.R b/R/tmapLeafletLegend.R index e0fad050..5b0d61e7 100644 --- a/R/tmapLeafletLegend.R +++ b/R/tmapLeafletLegend.R @@ -219,12 +219,12 @@ tmapLeaflet_legend = function(cmp, lf, o, orientation) { } -#' @exportS3Method NULL +#' @export tmapLeafletLegPlot.tm_legend_standard_portrait = function(cmp, lf, o) { tmapLeaflet_legend(cmp, lf, o, orientation = "vertical") } -#' @exportS3Method NULL +#' @export tmapLeafletLegPlot.tm_legend_standard_landscape = function(cmp, lf, o) { tmapLeaflet_legend(cmp, lf, o, orientation = "horizontal") }