Thank you for the fast reply asgallant! 

I tried doing the touch events mapping, but I had no success. 
After some hours wasted with this I narrowed it down to *a conflict with 
the use of html tooltips*. 

tooltip: {isHtml: false} = Select Listener will work. > 
http://jsfiddle.net/cmoreira/LFrdP/
*tooltip: {isHtml: true} = Select Listener will NOT work in iOS 
> http://jsfiddle.net/cmoreira/NBMs5/*

I guess this is a bug in the API, what do you think?

This is only an issue on iOS devices, like iPhone and iPad. 

Tried with 1.1 and still the same issue. 
Someone from the Google team can confirm this bug? Sergey? 

Cheers

On Monday, April 7, 2014 7:53:35 PM UTC+2, asgallant wrote:
>
> Likely this is an issue with touch events.  As I understand it, some 
> mobile browsers send click events whenever a comparable touch event fires, 
> but Safari on iOS doesn't.  You need to emulate mouse events from touch 
> events in iOS.  There is a post over on StackOverflow that should get you 
> started: http://stackoverflow.com/a/1781750/613559
>
> On Monday, April 7, 2014 12:34:45 PM UTC-4, Carlos Moreira wrote:
>>
>> 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:
>> http://jsfiddle.net/cmoreira/acS65/ 
>>
>> 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
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to