<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello,</div><div><br></div><div>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? Is it in controls or somewhere else?</div><div><br></div><div> controls: [<br> new OpenLayers.Control.Attribution(),<br> new OpenLayers.Control.TouchNavigation({<br> dragPanOptions: {<br>
enableKinetic: true<br> }<br> }),<br> click: new Openlayers.Control.WMSGetFeatureInfo({<br> url: 'http://demo.opengeo.org/geoserver/wms', <br> title: 'Identify features by clicking',<br> layers: [water],<br> queryVisible: true<br> }), <br> geolocate<br>
//infoControls<br> //selectControl<br> ],<br></div><div><br></div><div>P.S. I realize that http://demo.opengeo.org/geoserver/wms probably does not return in geoJSON. At this point I am just trying to get the application to call a WMS. I will deal with making sure that the WMS service I use is returning geoJSON.</div><div><br></div><div>Thanks<br> </div><div><br></div><div><br></div><div></div></div></body></html>