wrapLatLngBounds method

LatLngBounds wrapLatLngBounds(
  1. LatLngBounds bounds
)

Returns a LatLngBounds with the same size as the given one, ensuring that its center is within the CRS's bounds. By default this means the center longitude is wrapped around the dateline so its value is between -180 and +180 degrees, and the majority of the bounds overlaps the CRS's bounds.

Implementation

external LatLngBounds wrapLatLngBounds(LatLngBounds bounds);