Hello Again, when I have added another tab and defined what I want within it (i know 'city' is not an img src, but i am just testing the code) the placement of the items within the tabs is not what i have specified. i thought that this may be because the order of the items in my create marker function was not correct, but this did not alleviate the issue.
http://adgeomatics.com/TestTab3 ..you will notice the error when you click on one of the properties.. The "information" is supposed to hold the address, but its the name of the building..and the "photos" tab is supposed to hold the value of "city" but it is showing [object Object]. here is a snippet of the code: function createMarker(point,name,address,city,i) { address = '<div style="white-space:nowrap;">' + address + '</ div>'; city = '<div style="white-space:nowrap;">' + city + '</div>'; var marker = new GMarker(point, {icon:myIcon, title:name}); var i = gmarkers.length; var tabdata = []; tabdata.push(address,city,directions); var labels = ["Information","Photos","Directions"]; tabdata[0] = '<div style="width:176px">' + tabdata[0] + '<\/div>'; var tabs = []; for (var j = 0; j < tabdata.length; j++) { tabs.push(new GInfoWindowTab(labels[j], tabdata[j])); } GEvent.addListener(marker, "click", function() { myPano.setLocationAndPOV(marker.getLatLng()); marker.openInfoWindowHtml(tabs); }); what is going wrong here? thanks again! regards, adam -- 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.
