title: How to convert Vector Layer coordinates into Map Latitude and Longitude in Openlayers
body: <p>I'm pretty confused. I have a point:</p>
  
  <pre><code>x= -12669114.702301
  y= 5561132.6760608
  </code></pre>
  
  <p>That I got from drawing a square on a vector layer with the DrawFeature controller. </p>
  
  <p>The numbers seem...erm...awfull large, but they seem to work, because if I later draw a square with all the same points, it's in the same position, so I figure they have to be right.</p>
  
  <p>The problem is when I try to convert this point to latitude and longitude. </p>
  
  <p>I'm using:  </p>
  
  <pre><code>map.getLonLatFromPixel(pointToPixel(points[0]));
  </code></pre>
  
  <p>Where points[0] is a geometry Point, and the pointToPixel function takes any point and turns it into a pixel (since the getLonLatFromPixel needs a pixel). It does this by simply taking the point's x, and making it the pixels x, and so on.</p>
  
  <p>The latitude and longitude I get is on the order of:</p>
  
  <pre><code>lat: -54402718463.864
  lng: -18771380.353223
  </code></pre>
  
  <p>This is very clearly wrong.  I'm left really confused. I try projecting this object, using:</p>
  
  <pre><code>.transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject());
  </code></pre>
  
  <p>But I don't really get it and am pretty sure I did it incorrectly, anyways. </p>
  
  <p>My code is here: <a href="http://pastie.org/909644" rel="noreferrer">http://pastie.org/909644</a></p>
  
  <p>I'm sort of at a loss. The coordinates seem consistent, because I can reuse them to get the same result...but they seem way larger than any of the examples I'm seeing on the openLayers website...</p>