AnsweredAssumed Answered

FeatureLayer OnClick and iOS Touch

Question asked by brassier on Feb 3, 2014
Latest reply on Feb 4, 2014 by brassier
Hello -

I have an app that's intended for mobile consumption.  Development went well using browsers and iOS simulators, but we're having problems using the app on an actual iOS device.

We have a FeatureLayer that shows attributes on click.  This works fine with mouse input on Chrome, FF and Safari, but the event isn't triggered at all for iOS tap's.  Any idea what could cause that?  I've tried increasing the IdentifyParam tolerance, Tried using a polygon feature in place of points, but neither helped.  Here is how I've tried hooking up the events:

                                //Create and add Identify                                 hydrantsLayer = new esri.layers.FeatureLayer(hydrantsUrl, {                                     mode: esri.layers.FeatureLayer.MODE_ONDEMAND,                                     outFields: ["*"]                                 });                                  hydrantsLayer.on("error", function (error) {                                     alert("Error loading hydrants Layer.");                                 });                                  //Also tried this format: hydrantsLayer.on("click", executeIdentifyTask);                                 dojo.connect(hydrantsLayer, 'onClick', executeIdentifyTask);

Outcomes