A series of methods to manipulate the map.
a map widget object created from leaflet()
The longitude of the map center
The latitude of the map center
the zoom level
a list of zoom/pan options (see https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#zoom/pan-options)
the coordinates of the map bounds
The modified map widget.
setView(): Set the view of the map (center and zoom level)
flyTo(): Flys to a given location/zoom-level using smooth pan-zoom.
fitBounds(): Set the bounds of a map
flyToBounds(): Flys to given bound using smooth pan/zoom.
setMaxBounds(): Restricts the map view to the given bounds
clearBounds(): Clear the bounds of a map, and the bounds will be
automatically determined from latitudes and longitudes of the map elements
if available (otherwise the full world view is used)