Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation on addSimpleGraticule #681

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions NEWS
Original file line number Diff line number Diff line change
@@ -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`.



Expand Down
8 changes: 8 additions & 0 deletions docs/morefeatures.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down