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`. 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}