On Jun 7, 6:45 pm, Aigars V <[email protected]> wrote:
> Is there something similar to circle's
> radius for rectangles (edge length, area ...) ?
Well, you can use an instance of Circle as a tool to make the maths
for you.
1] Set a Circle with a desired center LatLng and radius in meters.
2] Get its bounds by getBounds() method
3] Construct a Rectangle using the bounds
var radius = Math.sqrt(yourArea) / 2;
var circle = new google.maps.Circle({center: yourPoint, radius:
radius});
var bounds = circle.getBounds();
var square = new google.maps.Rectangle({bounds: bounds, map:map});
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.