union

Returns a new LatLngBounds that stretches to contain both this and another LatLngBounds.

Return

LatLngBounds

Parameters

bounds

LatLngBounds to add


fun union(northLat: Double, eastLon: Double, southLat: Double, westLon: Double): LatLngBounds

Returns a new LatLngBounds that stretches to contain both this and another LatLngBounds.

This values of northLat and southLat should be in the range of -90, 90, see GeometryConstants.MIN_LATITUDE and GeometryConstants.MAX_LATITUDE, otherwise IllegalArgumentException will be thrown. northLat should be greater or equal southLat, otherwise IllegalArgumentException will be thrown. eastLon should be greater or equal westLon, otherwise IllegalArgumentException will be thrown.

Return

LatLngBounds

Parameters

northLat

Northern Latitude corner point

eastLon

Eastern Longitude corner point

southLat

Southern Latitude corner point

westLon

Western Longitude corner point