<br><br>On Wednesday, December 28, 2011, Mark Volz <<a href="mailto:volzmark@yahoo.com">volzmark@yahoo.com</a>> wrote:<br>> Hello,<br>> I am trying to configure the JQuery Mobile application so that instead of a click identifying the built in sprinters layer, it will identify using WMSGetFeatureInfo instead. How do I assign the click event to WMSGetFeatureInfo?<br>
<br>WMSGetFeatureInfo works on touchstart/touchend on touch devices. So you shouldn't need anything specific to make the WMSGetFeatureInfo control work.<br><br>> Is it in controls or somewhere else?<br>> controls: [<br>
> new OpenLayers.Control.Attribution(),<br>> new OpenLayers.Control.TouchNavigation({<br>> dragPanOptions: {<br>> enableKinetic: true<br>> }<br>
> }),<br>> click: new <br><br>Remove "click:". The "controls" property references an array of controls.<br><br>Openlayers.Control.WMSGetFeatureInfo({<br>> url: '<a href="http://demo.opengeo.org/geoserver/wms">http://demo.opengeo.org/geoserver/wms</a>',<br>
> title: 'Identify features by clicking',<br>> layers: [water],<br>> queryVisible: true<br>> }), <br>> geolocate<br>> //infoControls<br>
> //selectControl<br>> ],<br><br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com">http://www.camptocamp.com</a><br><br>