Very handy, thank you.

On Jan 8, 12:54 am, Marcelo <[email protected]> wrote:
> Check out this V2 example:http://maps.forum.nu/gm_driving_radius.html
>
> in particular the function getCirclePoints().
> It calculates points along the circle at an interval of x degrees.
>
> --
> Marcelo -http://maps.forum.nu
> --
>
> On Jan 7, 1:48 am, Tony <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi
> > I have a circle object and i want to draw markers on the circumference
> > using an angle.
>
> > I am aware of the sample 
> > codehttp://code.google.com/apis/maps/articles/mvcfun.html
>
> > Math-wise it should be straight forward, however I need to do it using
> > google maps circle centre lat, lng, radius and an input angle.
>
> > var newCircle = new google.maps.Circle({
> >         map: map,
> >         center: cntr,
> >         radius: 4000,
> >         editable: true
> >     });
>
> >     var raridus = newCircle.getRadius() / 1000;
> >     var latRad = newCircle.center.lat() * Math.PI / 180;
> >     var lngRad = newCircle.center.lng() * Math.PI / 180;
>
> >     var lat = (latRad + (raridus * Math.sin(45 * Math.PI / 180))) *
> > 180 / Math.PI;
> >     var lng = (lngRad + (raridus * -Math.cos(45 * Math.PI / 180))) *
> > 180 / Math.PI;
>
> >     var myMarker = new google.maps.Marker({
> >         map: newCircle.map,
> >         position: position = new google.maps.LatLng(lat, lng),
> >         draggable: false
> >     });
>
> > I think I missing unit conversion for the radius....

-- 
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.

Reply via email to