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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -