I am developing an app with the JavaScript API on a mobile website. I'm using the compact build of version 2.5, and I'm having trouble with click/tap events registering on a FeatureLayer to display the InfoWindow with attributes of the clicked graphic. It works fine in the browser, just not when using a mobile device. Any help is much appreciated, here is my code for adding the FeatureLayer to the map: var template = new esri.InfoTemplate("<b>${DESCRIPTION}</b>", getTextContent);
var featureLayer = new esri.layers.FeatureLayer("http://m.skyharbor.com/mapservice/0", {
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
infoTemplate: template,
outFields: ["DESCRIPTION","Type"],
opacity: 0
});
map.addLayer(featureLayer);