Thank you...

> I *think* what you're trying to do is mimic the panning behaviour of 
> GInfoWindow, where the map pans so that the infoWindow stays entirely visible 
> within the map div. Is that right?

Panning behavior? Sorry for my abstract explanation so some might get
wrong impressions.

The scenario here is we have a google map with markers on it. When we
click it, it will show ewindows. Now, although my best effort some
marker shows too close to some corner of map either the right side or
the top side.

Ewindows will show only using the left and bottom position from the
div that ewindows made.

Now, my problem was when we drag a map, the pixel coordinates of map
div change. And if we didn't change anything from redraw function on
ewindows, it will still show the ewindows.

But when the marker get too far right or too close to the top, the
ewindows will show outside the map (got clipped), you couldn't see the
whole ewindows. BTW, I forgot to mention, during this, the map mustn't
move (pan/zoom) because ewindows got clipped. It must only to display
inside the map but using new position.

If ewindows got too close to the right (probably gone to be clipped),
then switch to the left of the markers. And the same for the top.

Again, I didn't know anything that resemble the panning behavior that
GInfoWindow have...but I'm hoping, that someone could just give me
clues on how to get the ewindows stays on the map.

I got the idea on not just using the left and bottom position of div
but also using the top and right but I still need to get the right
algorithm before I could implement it.

Again, thank you for anybody that helps.

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

Reply via email to