I skimmed the code, and I would guess that the problem is due to creating
the event listener after drawing the chart, instead of before. Try moving
this code block:
google.visualization.events.addListener(geoChart, "regionClick", function
(eventData) {
var countryISO2 = eventData["region"];
inputCountryToValUpCase = "world";
displaySearchResults(countryISO2, inputCountryToValUpCase);
});
to right before you call geoChart.draw().
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/jwbR6NKmt-QJ.
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-visualization-api?hl=en.