OR maybe this is what you are looking for?

     var pt:Point = new Point(tilePos.x*tileSize, tilePos.y*tileSize);
     var ll:LatLng = this.map.fromPointToLatLng(pt, zoom);

     var pt2:Point = new Point((tilePos.x+1)*tileSize, (tilePos.y 
+1)*tileSize);
     var ll2:LatLng = this.map.fromPointToLatLng(pt2, zoom);

I use this in a TileLayer class in the loadTile method.


Javier de la Torre
www.vizzuality.com

On Jan 29, 2009, at 12:30 AM, Michael Hansen wrote:

>
> OK, so I have the lat/lng to pixel/tile calcs all worked out.  Anyone
> have the reverse worked out before I go re-invent the wheel?
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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-api-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to