http://phoons.com/cgi/testmap.pl

My goal:  (1) CENTER at the point of double click, and (2) zoom in one
additional level beyond the default zoom behavior.

Toward achieving this, I added a single-click listener that determines
whether it was a single or a double click. On double click, my routine
sets center to the click point and it sets zoom to getZoom() + 1.

Unexpected behavior:  the point of double click (and the target of my
setCenter) ends up off center. It appears to be just as far off center
as the point of double click, but opposite of the final center. (That
is, if you double click 1 inch down to the left from center, that
location ends up 1 inch up to the right.)

I observe that it is moving that extra distance AFTER my double click
handler.

To help me see that the movement was happening after my routine, I
added a "moveend" listener that alerts when it is called. It's being
called after my setCenter and setZoom (makes sense) AND the map looks
CORRECT at this point. But then my routine ends...and the map moves to
the wrong spot.

Any ideas what causes the additional movement of that off-center
distance?

Thanks
John

--

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