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

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -