Merge pull request #263 from JasonSanford/master

Adding toBBoxString method to LatLngBounds
This commit is contained in:
Vladimir Agafonkin 2011-08-25 01:06:03 -07:00
commit 629b9ac3e8

View File

@ -56,6 +56,10 @@ L.LatLngBounds = L.Class.extend({
return (sw2.lat >= sw.lat) && (ne2.lat <= ne.lat) && return (sw2.lat >= sw.lat) && (ne2.lat <= ne.lat) &&
(sw2.lng >= sw.lng) && (ne2.lng <= ne.lng); (sw2.lng >= sw.lng) && (ne2.lng <= ne.lng);
},
toBBoxString: function() {
return this._southWest.lng + "," + this._southWest.lat + "," + this._northEast.lng + "," + this._northEast.lat;
} }
}); });