[Google Maps API v3] Re: zooming when infopage visible does not zoom with marker

2011-03-12 Thread _bigfoot_
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

[Google Maps API v3] Re: zooming when infopage visible does not zoom with marker

2011-03-12 Thread Esa
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);

[Google Maps API v3] Re: zooming when infopage visible does not zoom with marker

2011-03-11 Thread _bigfoot_
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

[Google Maps API v3] Re: zooming when infopage visible does not zoom with marker

2011-03-11 Thread en4ce
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

[Google Maps API v3] Re: zooming when infopage visible does not zoom with marker

2011-03-11 Thread Esa
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