powered by
Add a Graticule on the map see https://github.com/turban/Leaflet.Graticule
addGraticule(map, interval = 20, sphere = FALSE, style = list(color = "#333", weight = 1), layerId = NULL, group = NULL, options = pathOptions(pointerEvents = "none", clickable = FALSE))
a map widget object
The spacing in map units between horizontal and vertical lines.
boolean. Default FALSE
path options for the generated lines. See http://leafletjs.com/reference.html#path-options
the layer id
the name of the group this layer belongs to.
the path options for the graticule layer
# NOT RUN { library(leaflet) leaf <- leaflet() %>% addTiles() %>% addGraticule() # }
Run the code above in your browser using DataLab