Oops...

I just double checked the definition of GLatLng and found it out.
Yes, the latitude ranges between -90 and 90 and the longitude is
between -180 and 180.
My stupidity...

Larry, thank you for your quick reply.

JR

On Dec 10, 1:56 am, "[email protected]" <[email protected]>
wrote:
> On Dec 9, 11:50 pm, snake211 <[email protected]> wrote:
>
>
>
>
>
>
>
>
>
> > Hi all,
>
> > I have been studying Google Maps Javascript API v.2 and Mike's
> > tutorial page (econym.org.uk/gmap/) has been very very helpful.
>
> > While I followed his Euclidean projection source code (econym.org.uk/
> > gmap/example_custommapflat.htm), I got a question which I cannot
> > solve. This may be because of my poor knowledge about coordinate
> > systems. I would be very grateful if anyone could give me an aid.
>
> > In his code (sorry, I used Google Chrome's "view-source" option to
> > read the code) to draw Euclidean map with markers and a polyline, Mike
> > created the Euclidean Map Type first. Then, when drawing the marker
> > overlay, he wrote as follows:
>
> > var points=[];
> > for (var i=-85; i<85; i+=7) {
> >   var P = new GLatLng(i, i*2);
> >   map.addOverlay(new GMarker(P));
> >   points.push(P);}
>
> > map.addOverlay(new GPolyline(points, "#FF0000", null, 1));
>
> > The part I cannot understand is "var P = new GLatLng(i, i*2);". Could
> > anyone please teach me why we have to set the longitude twice the size
> > of latitude to draw 45 degree line?
>
> The line goes from -90,-180 to +90,+180 ...
>
>   -- Larry
>
>
>
>
>
>
>
>
>
> > Thank you so much in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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-api?hl=en.

Reply via email to