Let's assume, you can calculate the size/pos of the infowindow. What,
if Google change the image/margins/paddings? And be aware of negative
margin/paddings in your infowindow html, ...

It would be much easier to implement your own infowindow replacement
with dynamic positioning. Example here:
http://yellow.local.ch/en/q/z%C3%BCrich/sbb.html


On 23 Sep., 15:52, jbliesener <[EMAIL PROTECTED]> wrote:
> > > Also, my second problem is the inverse of what getBoundsZoomLevel
> > > does. This function returns the zoom level for some given bounds. What
> > > I want to do is to calculate the bounds for a given zoom level.
>
> > The bounds are independent of zoom level.
>
> Clarifying again: I'm looking for the PIXEL BOUNDS (not the LatLng
> bounds) of a set of markers in a given zoom level. I do have LatLng
> for each of them and I want to know what would be the size in pixels
> of the bounding rectangle of this marker set in a given zoom level.
>
> But again: My main task is to FIND A MAP CENTER AND ZOOM that fits ALL
> MARKERS AND THE VARIABLE SIZED INFOWINDOW. My current approach is to
> calculate (pixel) bounding rects for the InfoWindow and the set of
> markers. Maybe, there's another (easier) way...
>
> At this point, I would try some things like using
> getBoundingClientRect/getBoxObjectFor, which is heavily browser
> dependent and probably will break in the future. Ugly!
>
> C'mon folks, this must be possible...
>
> Jörg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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