Set options on a leaflet map object
mapOptions(map, zoomToLimits = c("always", "first", "never"))
A map widget object created from
Controls whether the map is zooms to the limits of the
elements on the map. This is useful for interactive applications where the
map data is updated. If
# Don't auto-zoom to the objects (can be useful in interactive applications) leaflet() %>% addTiles() %>% addPopups(174.7690922, -36.8523071, "R was born here!") %>% mapOptions(zoomToLimits = "first")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.