Hi guys!, I have a map wich has a list of markers on a left panel
which are direct links to each of the markers on the map, I'm using a
MarkerManager to administer my markers cuz they all have different
zoom levels.
When the map first come out it is at zoom lvl2 if a click a link to a
marker that is on the 2nd zoom level, it pops up properly, but if i
click on a link that will take me too a deeper zoom level, it takes
me, but the openInfoWindowTabsHtml wont come up. it will do if i hit
it twice. I know its a loading problems, but how can i reestructure my
code to make it work, wait for the map to load perhaps?
Thisn is the function that i've made:
function goToMarker(index,zoom){
var lat = gmarkers[index].getLatLng().lat();
var lng = gmarkers[index].getLatLng().lng();
map.setCenter(new GLatLng(lat,lng) , zoom)
try{
GEvent.trigger(gmarkers[index], "click");
}catch(ex){};
}
Map is still zooming and centering map when the trigger event is
called, so, thats the reason i suppose, waht can i do?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---