Helper function to set the bounds of a leaflet map widget.

fitBBox(map, bbox)

Arguments

map

a map widget object created from leaflet()

bbox

A vector c(lng1, lat1, lng2, lat2) specifying the bounding box coordinates

Value

The modified map widget.

Author

Andrzej Oleś andrzej.oles@gmail.com