Thanks all, got it working. I had originally tried the
fromLatLngToPoint(point) method but it didn't work so I moved on.
HOWEVER, it turns out the problem was I was not feeding it points
properly. I was trying to give it pixel coords or tile coords - what
it actually wants are world coords! Like
Hate to bump, but someone must have done this as it's been asked here
a lot before (just with no clear answer). I'm sure one of us has the
maths for this ready to go.
On May 2, 4:48 pm, Kesuke nick_dai...@hotmail.com wrote:
How do I convert a pixel position to a latlng. I've searched and
I *think* i have made a tiny bit of progress but I'm still stuck. It
seems that in a mercator projection the longtitude (x axis) scales
normally. So because I am trying to get a % pixel position on the map,
I can simply say (percentage position * 360) - 180 to get the
longtitude.
HOWEVER,