cheers - good effort. I can get it to work, but it just looks really
clunky flicking the map about compared to V2.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@goog
I made a second version without using any undocumented features.
http://koti.mbnet.fi/ojalesa/v3/iwzoom2.htm
The clicked marker is stored in variable 'activeAnchor' by
activeAnchor = this;
in click handler. That is used as the anchor argument for open()
infowindow.open(map, activeAnchor);
As well as the infopage staying static, I also want the zoom to focus in on
the marker position (like it does in V2).
FYI : my infopages actually have a zoom in and zoom out button (embedded
from parsed xml file), the onclick for zoom in fires the function:
function myzoomin(i) {
var no
i dont liked that behavior in V3 as well, specially with custom
infowindows (it just look not so good when zooming)
i thought you made my day esa, i looked up the exemple before i read
your whole post... then i read "undocumented", you know how it is with
undocumented functions, cant really use em
A simple hack is to re-open the info window by 'zoom_changed' event.
First test if info window is open by
if (infowindow.getMap())
Then open it by
infowindow.open(map);
However it opens without any pixel offset to the marker. To make it
open in exact position on top of the marker, you need