setViewBounds | R Documentation |
Based on the bounding box of an object you supply.
setViewBounds(map, obj, ...) ## S4 method for signature 'leaflet,list' setViewBounds(map, obj, ...) ## S4 method for signature 'leaflet,sfc' setViewBounds(map, obj, ...) ## S4 method for signature 'leaflet,sf' setViewBounds(map, obj, ...) ## S4 method for signature 'leaflet,Spatial' setViewBounds(map, obj, ...)
map |
leaflet map object |
obj |
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.