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. Only accepts actual L.LatLngBounds instances, not arrays.

Implementation

external LatLngBounds wrapLatLngBounds(LatLngBounds bounds);