On 2 December 2010 17:03, Thai Dang Vu <[email protected]> wrote: > Hi, > > Suppose that I have a Google map inside a div with a known width and height. > I also know the (lat, lng) of the 4 corners of the map and the zoom level on > the map. > > The methods like fromContainerPixelToLatLng, fromLatLngToContainerPixel, > fromLatLngToDivPixel, fromDivPixelToLatLng can map a point on the map to a > point in the div and vice versa. Is there any formula to calculate that > mapping without using those methods? I need to do that mapping in Java where > the Google Maps API javascript is unavailable.
There are calculations which do this -- the longitude calculation is particularly easy; but if you can't run the API, how are you displaying Google map images? If you're not using the API, you're not subject to the API Terms; but you are subject to the general Terms at http://www.google.com/accounts/TOS -- how are you complying with paragraph 5.3? [No-one likes to assist with breaking the Terms] -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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?hl=en.
