Added cardinal properties to L.LatLngBounds

Added the following property methods to the L.LatLngBounds class:
getWest()
getEast()
getNorth()
getSouth()
This commit is contained in:
Jason Plante
2015-04-13 13:34:15 -04:00
parent b0056383b5
commit ccbabf73c7

20
leaflet/leaflet.d.ts vendored
View File

@@ -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.
*/