Hey,

I have a map with several markers. What I want to do is the following:
- if you click on on the marker, the map zooms in, centers on the
marker AND at the same time (or more exactly as soon as that happens)
an info window pops up.

The code I have is very simple:
...
map.setZoom (zoom);
map.setCenter (posn);
marker.openInfoWindowHtml(desc);
...

Everything works just fine as long as the zoom does not change (i.e.
the zoom level used by the map equals to the requested zoom). In such
a case the map centers and the infowindow pops up. If the zoom changes
(the map zooms in from a larger map to a detailed one), the map just
centers but no window pops up (if you however click on the marker
again, it now works as the zoom is already what it needs to be).

I have a feeling I've tried everything. There is no error reported, if
you replace the maker.openInfo... with an alert, it works (i.e. the
code does not halt on setZoom), it does not even help to set timeout
and launch the openInfo... function with a delay (I tried this to give
the program some time to actually zoom in).

Any idea how to work this around?

--~--~---------~--~----~------------~-------~--~----~
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