Skip to content

Commit

Permalink
#159 : patch css map legend
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Thieurmel committed Apr 23, 2018
1 parent ac3b37f commit ee0a5e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion R/map_plugins.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ addAntaresLegend <- function(map, htmlAreaColor = NULL, htmlAreaSize = NULL,
show_legend = .getLabelLanguage("Show legend", language),
hide_legend = .getLabelLanguage("Hide legend", language)
)



map %>% requireDep("antaresLegend") %>%
invokeMethod(data=NULL, "addAntaresLegend", options)
}
Expand All @@ -90,6 +91,7 @@ updateAntaresLegend <- function(map, htmlAreaColor = NULL, htmlAreaSize = NULL,
nullOpts <- sapply(options, is.null)
options <- options[!nullOpts]


map %>% requireDep("antaresLegend") %>%
invokeMethod(data=NULL, "updateAntaresLegend", options)
}
2 changes: 1 addition & 1 deletion inst/leafletPlugins/antaresLegend.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ html, body {
color: #999;
padding-left:5px;
font-size: 9px;
line-height: 14px;
height: 14px;
}

.legend svg .legend-label {
Expand Down

0 comments on commit ee0a5e2

Please sign in to comment.