Hi,

I can't tell what's really the problem unless you send me a full code
snippet, but first try these tips:
1. You have an unnecessary parameter in the function you're using for the
select event as a select event has no parameters.
2. A select event isn't always fired. It is documented.
3. Here are code segments from an example we've tried which works:

a. Here is how to add select event for geomap:

google.visualization.events.addListener(geomap, 'select', function() {
alert('Select event called, selected row is ' +
   geomap.getSelection()[0].row);

});

b. Here is how to add regionclick event for geomap:

google.visualization.events.addListener(
globalGeomap, 'regionClick', function(e) {
   doSomething(e['region']);
});

Hope this helps.

- VizBoy.


On Mon, Dec 15, 2008 at 2:12 AM, [email protected] <
[email protected]> wrote:

>
> I was wondering, how I can handle Events in the Geomap Regions
> example. I tried to see the events thrown by adding a
>
> google.visualization.events.addListener(geomap, 'select', function(a)
> {alert(a)});
>
> for the 'select' and 'regionClick' Events, but I did not retrieve any
> triggers.
>
> Where do I have to add the listener to the geomap object?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Visualization 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-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to