Bounds
Bounds for map viewport
fitBounds
takes bounds and opt as arguments and sets the center of the map with the given parameter. bounds parameter is a JSON object with two intercardinal directions (sw and ne), with latitude and longitude (lat, lng) respectively.
Parameter
Example
getBounds
Retrieves the bounds attribute set in 'fitBounds()'
Return
Intercardinal coordinates (ne, sw) with latitude and longitude
Last updated