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

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

Simple file compression in C -

php - Sorting an multidimension array using usort fails -