Merge pull request #263 from JasonSanford/master
Adding toBBoxString method to LatLngBounds
This commit is contained in:
commit
629b9ac3e8
@ -56,6 +56,10 @@ L.LatLngBounds = L.Class.extend({
|
||||
|
||||
return (sw2.lat >= sw.lat) && (ne2.lat <= ne.lat) &&
|
||||
(sw2.lng >= sw.lng) && (ne2.lng <= ne.lng);
|
||||
},
|
||||
|
||||
toBBoxString: function() {
|
||||
return this._southWest.lng + "," + this._southWest.lat + "," + this._northEast.lng + "," + this._northEast.lat;
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user