[OpenLayers-Users] Lat / Lon values - different to google maps?

Mike Tonks fluffymike at googlemail.com
Mon Jun 4 12:45:24 EDT 2007


Thismust be a stupid newbie question but why are my lat lon vales out?

In the example code, I have:

  lon = lon * 20037508.34 / 180;
  lat = Math.log(Math.tan( (90 + lat) * PI / 360)) / (PI / 180);
  lat = lat * 20037508.34 / 180;



Why are we converting values like this?  There must be some reason but I
don't get it.

PS: Is the API documentation down?  I get a 404 error on every page, e.g.
http://openlayers.org/doc/reference.html#OpenLayers.Marker

mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070604/258a671f/attachment.html


More information about the Users mailing list