powered by
Add a simple Graticule on the map see https://github.com/ablakey/Leaflet.SimpleGraticule
addSimpleGraticule(map, interval = 20, showOriginLabel = TRUE, redraw = "move", hidden = FALSE, zoomIntervals = list(), layerId = NULL, group = NULL)
a map widget object
The spacing in map units between horizontal and vertical lines.
true Whether or not to show '(0,0)' at the origin.
on which map event to redraw the graticule. On move is default but moveend can be smoother.
hide on start
use different intervals in different zoom levels. If not specified, all zoom levels use value in interval option.
the layer id
the name of the group this layer belongs to.
# NOT RUN { leaflet() %>% addTiles() %>% addSimpleGraticule() # } # NOT RUN { # }
Run the code above in your browser using DataLab