title: Coordinates to tile pixels
body: <p>I am developing a tile overlay server for google maps. I want to draw a point on a tile for a specific location. How can i convert the real world coordinates to tile pixel coordinates? </p>
  
  <p>I have calculated a tile's bounds so i know if a given point is inside it. My problem is where in the tile should i draw it.</p>
  
  <p>Interpolation works ok for longitude but not for latitude, which is normal for mercatoric maps.</p>
  
  <p>Unfortunately my trigonometry skills are a bit rusty. Could someone give me a hint?</p>
  
  <p>I am using 256x256 pixel tiles. The zoom level, x and y are also given for a tile.</p>