Select to view content in your preferred language

Mobile Flex: Increasing Finger Tap Sensitivity

1969
3
11-05-2013 08:04 AM
MattSheehan
Deactivated User
We've just been testing a Mobile Flex app on an iPhone. One thing we notice is for point features, they are hard to tap. We've made them large in the published service, but too large overwhelms the iPad screen. Just wondered if anybody had found a way to increase the area/sensitivity of a finger tap, to help in selecting features?

Thanks

--Matt
Tags (2)
0 Kudos
3 Replies
YannCabon
Esri Contributor
Hi Matt,

What's the application dpi you use? 160?
0 Kudos
IsaiahAguilera
Frequent Contributor
Hi Matt,

What's the application dpi you use? 160?


Yaan,
I would actually like to revive this question and see if you can provide insight into the similar question I have.  I have noticed that it is very difficult to touch a point and get an infowindow to popup at higher dpi applications.  I have been at 240 and 320 both I feel are more difficult then they should be.  I resorted to doing a spatial query around my finger tap to select features but It would be nice to have a sensitivity option for touch inputs.

Thanks,
0 Kudos
MikeDahm
Frequent Contributor
Matt,
  I use the mapClickHandler within the Map and an extent from the mapPoint of the click to increase the sensitivity.  I adjust the additional numbers that I add to the extent based on the type of map, data and scales that I am working with.  I then use selectionComplete within the feature layer to show the infowindow. 

<esri:Map id="myMap"      
     mapClick="map_mapClickHandler(event)"


private function myMap_mapClickHandler(event:MapMouseEvent):void
   { 
    // set the selection query based on the click
    var vPt:MapPoint = event.mapPoint;
    mapClickPoint = event.mapPoint;
    var vX:Number = vPt.x;
    var vY:Number = vPt.y;
    var vExtent:Extent = new Extent(vX - 20, vY - 20,vX + 20, vY + 20);
    
    queryMapClick.geometry = vExtent;    
    streetLightSelection.selectFeatures(queryMapClick);
    myMap.infoWindow.hide();    
   }
0 Kudos