[Google Maps API v2] Re: eWindows outside the map
Sorry....please forgive me for the double post, I'm a bit new with
this Google Groups.
I might not be able to give any link. But I could post the code. I'm
just desperate.
The redraw function uses fromLatLngtoDivPixel which basically map div,
but I couldn't do any bound check with map div. It constantly
changing, I prove that by checking bound (getBound) and convert it and
the result is always changing.
If someone could give me a hint how to do some simple checking?
If you basically limit the ewindow not to go over the most right side
and the most top side of the container (not map div).
But placing it correctly with the new ewindow coordinates without
bumping to map viewport.
BTW, when I meant changing, it's the pixels of getBound coordinates. I
know it got to do with some conversion but my mind is so mixed up.
So, if anybody willing to just point the direction or simple
algorithm, that could be an inspiration.
Thanks.
--
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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home