LatLongBounds Class¶
- class BeastBytes\Yii\Leaflet\Types\LatLngBounds¶
Represents a rectangular geographical area on a map
@template T of array{float, float}array{float, float, float}|array{lat: float, lng: float}|array{lat: float, lng: float, alt: float}|LatLng
- __construct(array|LatLng $corner1, array|LatLng $corner2)¶
Create a new LatLngBounds instance
Note
If the area crosses the antimeridian, a corner whose longitude is outside the range -180 <= longitude <= 180 must be specified
- Parameters:
$corner1 (
T) – A geographical location that is a corner of the bounding box$corner2 (
T) – A geographical location that is the diagonally opposite corner of the bounding box from $corner1
- Returns:
A new LatLngBounds instance
- Return type:
See also