I am using openlayers 2.11 and I am able to trap the click event (See below code) from a PC web browser but within an ipad2 the click event does not get trapped.<br><br>I have tried using the <i>map.addControl(new OpenLayers.Control.Navigation());</i> and map.addControl(new OpenLayers.Control.TouchNavigation()); and for both cases I get the same result described above.<br>
<br>How can I get a mobile browser to trap a click event like I can for a PC web browser?<br><br>Thanks,<br><br>John <br><br><i> map.events.register('click', map, function (e) {<br> updateMapState();<br>
var xys = map.getLonLatFromViewPortPx(e.xy);<br> var easting = xys.lon;<br> var northing = xys.lat;<br> var point = new OpenLayers.LonLat(easting,northing);<br>
getFeatureInfoForLonLat(point);<br> Event.stop(e);<br> });<br></i><br>