On Jul 27, 6:07 am, Mr BoDangles <[email protected]> wrote: > Hi Larry, > > I forgot to mention - it needs to be a square. I have looked at the > Haversine formula site before but i can't use most of the equations > because I have only one variable which is the center point. > > Yes i have trouble calculating positions. How would i get the four > coordinate of the square from the center marker? The center marker is > the only variable that i will be passing through the haversine > distance formula....it seems like it needs two points.
It is a square (you said so...) It is made up of 8 right triangles +---+ | | | + | | | +---+ (not a very good square, but...) http://mathworld.wolfram.com/RightTriangle.html -- Larry > > Here's an example. I need to click on point A on the google map. This > will be the center coordinate. I need to calculate four coordinates to > form a 315m x 315m representation on google maps to form a square with > the center coodinate -then form a polygon from it. The trouble i am > having is calculating the four points > > On Jul 27, 1:42 pm, "[email protected]" <[email protected]> > wrote: > > > On Jul 27, 4:49 am, Mr BoDangles <[email protected]> wrote: > > > > Hi there, > > > > Wonder if you can help. I need to plot a marker as a center point and > > > then plot a fixed area size polygon (i.e. 315m x 315m) around the > > > center point. > > > A square? A rectangle? A circle? > > > > This has to be in the form of a polygon overlay. Any > > > ideas? i tried looking on the net already..so i thought i would try > > > here. > > > What have you tried that hasn't worked? > > > Have you looked at the documentation? > > > Have you seen this?http://www.movable-type.co.uk/scripts/latlong.html > > > Are you having trouble calculating the positions? > > > Where on the globe? > > > -- Larry > > > > Many thanks -- 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.
