I've looked at a few similar problems which have solved it with a
setTimeout, but it didn't seem to work in this case, maybe I tried
putting it in the wrong place or maybe something else is incorrect. If
anyone can shed any light I'd be very grateful.

http://www.chantrathai.com/stockists

 function createMarker(point, name, address, post, phone) {
      var marker = new GMarker(point);

GEvent.addListener(marker, 'click', function() {
                var tab1 = new GInfoWindowTab("Info", '<div id="tab1"
style="color:black;" class="bubble"><b>' + name + '</b><pre>' +
address + '</pre><br />' + post + '<br />' + phone + '</div>');
                var tab2 = new GInfoWindowTab("Location", '<b 
style="color:black;">'
+ name + '</b><div id="detailmap" style="overflow: hidden; width:
300px; height:200px"></div>');
                var infoTabs = [tab2,tab1];
                map.closeInfoWindow();
                marker.openInfoWindowTabsHtml(infoTabs);

                var dMapDiv = document.getElementById("detailmap");
                 detailMap = new GMap2(dMapDiv);
                detailMap.setCenter(point , 14);
                detailMap.addControl(new GSmallMapControl());
                detailMap.addOverlay(new GMarker(point));

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