> Right. For that to work you will need to change the EWindow itself -- > its EStyle will need to change so that the stalk points in a different > direction. Once you have determined that the EWindow will be clipped > (not sure how to do that without examining Mike's code in detail) then > you need to ensure that the right EStyle is used.
The style of div especially correlates with the position needed to change. This is where redraw needed. Basically the functions receive the offset, pixel (translated to pixel on map div) and the offset of 'the box' (div that contain info window/html). And the div get the position for the left and bottom. Now, I've changed the redraw so it will do exactly like I want to do which is change the position if it's not possible (nearly clipped). But, I'm a moron and I couldn't exactly make it detect nicely the boundaries. Sometimes, ewindow goes way off chart. > None of that is easy to do dynamically. It would certainly be easier > to pan the map if you have determined that the EWindow will be > clipped. Actually the same properties is the container, and based on my findings, the map always return the same size of the container, never bigger. Now, I think, I might have to get two coordinates which basically coordinates (latlng) from markers for container and also for the div. One for checking with the container, one for placing it on the map div. But I'm not so sure. I don't know if it will works nicely. Tomorrow, I couldn't do any coding, since it will be showed to the client. So, I'm crossing my fingers here, hopefully they didn't found out the bug. This night, is the only time I could do any changes, and if I could (somehow) find the exact algorithm, that's the end of my misery. Again Andrew, thank you. -- 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.
