I asked this over on the ESRI forum but it didn't get any traction. I have an app that I'm designing specifically for mobile. At one point in its usage, a user needs to pan and zoom to a location and select a point and get back the evt.mapPoint.x/y. While developing on a desktop/laptop, the double-click event is available. One mobile, it's not. ESRI does support a double-tap/click to zoom the map, but this event doesn't look like I can use it to select a location. I've tried using Dojo Gestures for a tap.hold event, but the ESRI API doesn't honor this event. Right now, this is how I'm implementing it.
pickLocation: function() {
menus.closePointPicker();
menus.showTapAndHoldDialog();
map.disableDoubleClickZoom();
var pick = on(map, 'dbl-click', function(evt) {
Event.stop(evt);
var latLng = webMercatorUtils.xyToLngLat(evt.mapPoint.x, evt.mapPoint.y);
var location = {};
coords = {
latitude: latLng[1],
longitude: latLng[0],
accuracy:null,
heading:null
};
var locationInfo = {
coords:coords,
point: evt.mapPoint
};
pick.remove();
topic.publish('location-picked', locationInfo);
menus.hideTapAndHoldDialog();
});
Any ideas on how to either get a double-tap or tap and hold event to connect?