[?] I don't know if I'm breaking the Terms. Let me tell you the big picture
and you'll decide if I really break the Terms.

I display a Google map in a div. I have many buildings with their (lat, lng)
in a database. At each building position on the map, I'd like to put an
image, which is too complicated to draw using javascript. So I decide to
draw an image having the same size of the div using AWT on the server side,
write that image to a file on the web server, and send the image url to the
page containing the Google map. The javascript part on that page will create
an overlay on the Google map. That overlay is nothing but a <div><img
src="url-to-the-newly-created-image"/></div>.

So to be able to draw that image with AWT, I need to convert a (lat, lng) to
a position in the div.

Is that legal to do that?

Please advise.

Thank you.

On Thu, Dec 2, 2010 at 12:25 PM, Andrew Leach <[email protected]>wrote:

> 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]<google-maps-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api?hl=en.
>
>

-- 
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.

<<328.png>>

Reply via email to