javascript - Google maps v3 API - calculate bounds given center coordinates and distance -


So, I've seen the center and zoom counting the boundaries given, but I can calculate the boundary according to the center Trying coordinates and miles in distance

How can I do this?

Use the two points to calculate a point on the east and west distances of the center Add and call on map.fitBounds on that border.

Comments