From ab5829421c44528755207adb89202d535abaefe1 Mon Sep 17 00:00:00 2001 From: dswdejonge <46383604+dswdejonge@users.noreply.github.com> Date: Fri, 8 May 2020 17:28:06 +0200 Subject: [PATCH 1/2] Add small section on addSimpleGraticule function. I have added a small section on the addSimpleGraticule function as an alternative for adding a graticule, which can show latitudes and longitudes in the map margin in contrast to the addGraticule function. --- docs/morefeatures.Rmd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/morefeatures.Rmd b/docs/morefeatures.Rmd index 7c17e98ad..06e39b0e1 100644 --- a/docs/morefeatures.Rmd +++ b/docs/morefeatures.Rmd @@ -68,6 +68,14 @@ m %>% options = layersControlOptions(collapsed = FALSE)) ``` +You can also consider using the `addSimpleGraticule` function (via the [Leaflet.SimpleGraticule](https://github.com/ablakey/Leaflet.SimpleGraticule) plugin) to add a graticule, which displays corresponding latitudes and longitudes in the map margin. + +```{r } +m <- leaflet() %>% addTiles() %>% setView(0,0,2) +m %>% addSimpleGraticule() +m %>% addSimpleGraticule(interval = 10, showOriginLabel = FALSE) +``` + #### Terminator (day/night indicator) ```{r} From 4b9ae7a52f4761f701c40723709fe194bbfa9993 Mon Sep 17 00:00:00 2001 From: dswdejonge Date: Sat, 9 May 2020 11:27:15 +0200 Subject: [PATCH 2/2] Add change log entry. --- NEWS | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/NEWS b/NEWS index d0b0da358..223527fb7 100644 --- a/NEWS +++ b/NEWS @@ -1,14 +1,8 @@ leaflet 2.0.3.9000 -------------------------------------------------------------------------------- -BREAKING CHANGES -* - -FEATURES -* - BUG FIXES and IMPROVEMENTS -* +* Add usage of `addSimpleGraticule` function to the documentation `morefeatures.Rmd`.