In this case I would use the 'select' event. You can read more about the events here http://code.google.com/apis/visualization/documentation/gallery/geomap.html#Events
<http://code.google.com/apis/visualization/documentation/gallery/geomap.html>Let me know if you need further assistance, ChartMan On Tue, Jul 6, 2010 at 8:16 AM, Mycoding mycoding <[email protected]>wrote: > Please give me advice. > I'm trying to make a Russia with city, clicking on which somethith > happen. > But Event works only on other country and doesn't want to work on > cities. > > http://vreshenie.ru/11.html > > <html> > <head> > <script type='text/javascript' src='http://www.google.com/jsapi'></ > script> > <script type='text/javascript'> > google.load('visualization', '1', {'packages': ['geomap']}); > google.setOnLoadCallback(drawMap); > > function drawMap() { > var data = new google.visualization.DataTable(); > data.addRows(1); > data.addColumn('string', 'City'); > data.addColumn('number', 'Количество предприятий'); > > data.setValue(0, 0, 'Москва'); > data.setValue(0, 1, 3); > ///data.setValue(0, 2, 'Спеццистерны'); > > var options = {}; > options['region'] = 'RU'; > options['colors'] = [0xFF8747, 0xFFB581, 0xc06000]; //orange > colors > options['dataMode'] = 'markers'; > > var container = document.getElementById('map_canvas'); > var geomap = new google.visualization.GeoMap(container); > geomap.draw(data, options); > google.visualization.events.addListener(geomap, 'regionClick', > function(e) {alert(1);}); > }; > > </script> > </head> > > <body> > <div id='map_canvas'></div> > </body> > > </html> > > -- > 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]<google-visualization-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- 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.
