Hi guys
Not sure this is an API problem, or a javascript problem.
I've got this code that works very well everywhere except on iOS devices:
I have objects with the map data and then I build the map according to that data.
I've modified the code a bit for example purposes, so there might be unecessary code.
But I guess the important code is the getSelection one:
google.visualization.events.addListener(geocharts[key], 'select', (function(x) {
return function () {
var selection = geocharts[x].getSelection();
if (selection.length == 1) {
var selectedRow = selection[0].row;
var selectedRegion = data[x].getValue(selectedRow, 0);
//console.log(values[x][selectedRegion]);
if(values[x][selectedRegion]!=""){
alert(values[x][selectedRegion]);
}
}
}
})(key));
This doesn't seem to be working in iOS.
Any advice on what I could be doing wrong?
Thanks in advanced!
Greetings, Carlos