From ccbabf73c767b086db8f4e416b128c922ba140ee Mon Sep 17 00:00:00 2001 From: Jason Plante Date: Mon, 13 Apr 2015 13:34:15 -0400 Subject: [PATCH] Added cardinal properties to L.LatLngBounds Added the following property methods to the L.LatLngBounds class: getWest() getEast() getNorth() getSouth() --- leaflet/leaflet.d.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index 1708a9d10f..a1e92ef713 100644 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -1573,6 +1573,26 @@ declare module L { */ getSouthEast(): LatLng; + /** + * Returns the west longitude in degrees of the bounds. + */ + getWest(): number; + + /** + * Returns the east longitude in degrees of the bounds. + */ + getEast(): number; + + /** + * Returns the north latitude in degrees of the bounds. + */ + getNorth(): number; + + /** + * Returns the south latitude in degrees of the bounds. + */ + getSouth(): number; + /** * Returns the center point of the bounds. */