Hi all,
I would like to set my map up so that a particular map marker of
interest has its info window opened automatically. However, when I do
this, the map is panned, pushing some of the markers off of the
viewing area. Ideally, the marker of interest would even be centered.
Here is what I am doing now:
1) Determing bounding box (GLatLngBounds) which contains all map
markers and setting the zoom level
2) Setting a particular map marker as the center
3) Opening info window of that map marker.
Obviously some of the markers are going to pan off the screen at that
point. I'd like to zoom out just enough to keep them visible.
<a href="#" onClick="<a onclick="window.open('http://
uatqawebreg.experient-inc.com/ShowTST304/Housing/HotelWebProfile.aspx?
h=12236', 'window_hotelprofile',
'status=yes,height=500,width=548,toolbars=no,resizable=yes,scrollbars=yes').focus
(); return false;">Here's my link</a>
If you zoom out a couple times you will see that there is another
marker on the map which gets panned off. Even if I attempt to open the
info window, and then set the bounds, the marker gets panned off.
Any help for how to approach this would be great. Right now my plan is
just to zoom out a couple extra levels, which I don't really find
ideal.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---