Hi. http://code.google.com/apis/maps/documentation/javascript/maptypes.html#WorldCoordinates
World Coordinates range from 0 to 256 for both x and y values. At zoom level 0 those world coordinates are the same as the pixel coordinets that you want. At higher zoom levels simply take each x and y value and multiply by 2 to the power of the zoom level. Martin. On Jun 12, 10:42 pm, Ben <[email protected]> wrote: > Hi, > > I am having trouble going from the 'world coordinate' to the pixel > location on the tile. From my understanding of the docs the x and y > value from the world coordinate are mapped to the tile's x and y > pixel? When I add a pixel to that location on the tile, it is off from > the latlng location. ( the marker location ) I based my testing on the > example from the link below. The world coordinates seem correct. > > http://code.google.com/apis/maps/documentation/javascript/examples/ma... > > The one thing I do notice is that the world coordinate can't be an > exact xy of the tile since when i change the maptype to base, it isn't > at (65,95) on the tile. > > Any idea what my issue might be? > > Thank you in advance. -- 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.
