I would like to create a square (LatLngBounds) around a central point (LatLng) at X meters.
Use the L.LatLng.toBounds() method, e.g.
var center = L.latLng(40,-3);
var bounds = center.toBounds(500);
or
var bounds = L.latLng(40,-3).toBounds(500)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With