hmmm Rosko, now I understood your post. Need to check that function!
But looks like the correct answer, hence there is absolutely no need for
the function I posted!
Sorry for the mess
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3"
Remember that everything added to an API set makes the API larger,
slower, harder to load, etc. If only 1% of users want to use a
function, and it's a matter of 20 lines of javascript for those users
to add it themselves, why would you want to burden the other 99%?
The development team does (I thi
> It took time to find that function to me (I dont remember the source). It
> could certainly be added to the API set.
Why? Circle() exists already and has a getBounds() method
Is there a problem with that? (might not work well at the poles for
example, not much does in Mercator)
--
You receive
It took time to find that function to me (I dont remember the source). It
could certainly be added to the API set.
function llr_to_bounds ( lat, lng, distance )
{
// angular distance in radians on a great circle
var radius = 6371000
, radDist = distance / radius
, radLat = to_rad( l
@Rossko:
Yes, it appears that something like:
function convertToBounds(latLng, radius) {
return new google.maps.Circle({center: latLng, radius:
radius}).getBounds();
}
... should do the trick. Thank you!
--
You received this message because you are subscribed to the Google Groups
"Google M
> If there is such such a built-in function, I haven't found it. If there
> isn't, I'd like to see it added.
Isn't it Circle() ?http://code.google.com/apis/maps/documentation/
javascript/overlays.html#Circles
which has a getBounds() method
http://code.google.com/apis/maps/documentation/javascript