AnsweredAssumed Answered

How can I trigger a FeatureLayer click event on mobile devices?

Question asked by david.meza on Apr 7, 2016
Latest reply on Apr 11, 2016 by david.meza

I'm having an issue where click events don't fire as touch/tap events on mobile and would like to know what is the proper way to do this. Currently, my code looks like this:

  var myLayer = new FeatureLayer(...); 
  myLayer.on('click', function (evt) {
    // do something  
  });  

Also worth noting, I've tried requiring this module

'dojox/mobile/View'

and setting this variable

document.dojoClick = false;

 

Any help would be appreciated. Thank you!

Outcomes