-L.LatLngBounds.include({
- getSouthLat: function () {
- return this._southWest.lat;
- },
-
- getWestLng: function () {
- return this._southWest.lng;
- },
-
- getNorthLat: function () {
- return this._northEast.lat;
- },
-
- getEastLng: function () {
- return this._northEast.lng;
- },
-
- toBBOX: function () {
- var decimal = 6;
- var mult = Math.pow(10, decimal);
- var xmin = Math.round(this.getWestLng() * mult) / mult;
- var ymin = Math.round(this.getSouthLat() * mult) / mult;
- var xmax = Math.round(this.getEastLng() * mult) / mult;
- var ymax = Math.round(this.getNorthLat() * mult) / mult;
- return xmin + "," + ymin + "," + xmax + "," + ymax;
- },
-