Hey guys, I have a problem with trying to use a link to open an info
window. Map is at http://sustainablefoodguide.com/trialV5.php. The way
it should work is, the sidebar is made up of an array of markers
ordered by distance from the point given, for example an australian
post code (just type 3000 in the search for anyone who doesn't know
aus post codes). The ahref links are myclick(i) where i is from 0 to
9, so in the array the i-th marker has it's info window opened.
However, this doesn't work, if you click on a link nothing happens and
the error console just says 'b is undefined' and shows me the google
map api. But, if you click on that actual marker to open it's info
window, then you can use the side bar link fine, like it needs to be
preloaded or something? I've tried playing around with timeouts and
trying to call another function from the function to open the info
window to give it time for the data to load but to no avail, it could
be something really simple though.
Here is the isolated myclick function if it helps:
function myclick(i) {
var tempMarker = closest[i];
var tabs = [];
tabs.push(new GInfoWindowTab('Our
Business',tempMarker.tabBusiness));
tabs.push(new GInfoWindowTab('Our Produce',
tempMarker.tabProduce));
tabs.push(new GInfoWindowTab('Contact',
tempMarker.tabStreetview));
//map.setCenter(tempMarker.mypoint, zoomLevel);
tempMarker.openInfoWindowTabsHtml(tabs, {maxHeight:
325,maxWidth:
570});
//var tabProduce = new GInfoWindowTab('Our Produce',
tabProduceHtml);
}
Any help would be greatly appreciated
--
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.