Skip to content
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