Description Usage Arguments Examples
Sets the desired view for a map. A list of pre-defined views is available: 'Paris' and 'France'. The view is set using the latitudes and longitudes bounds.
1 | SetMapView(map,mapView)
|
map |
a map |
mapView |
the desired view. Are available: 'Paris' ; 'France' |
1 2 3 4 5 6 7 8 9 10 11 12 | # Test data frame
# testDF <- data.frame(lat=c(48.875403,48.904567,48.846674),
# lng=c(2.317795,2.255450,2.382460))
# Create a map
# map <- leaflet(testDF)
# Set of view on Paris
# SetMapView(map,'Paris')
# Set of view on France
# SetMapView(map,'France')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.