<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Eric, and others.<br></span></div><div><br><span></span></div><div><span>Thank you for your help. According to Firebug, I am now requesting WMSGetFeatureInfo on a click event.<br></span></div><div><br></div><div>My next question to the group is that the results are not showing up yet. I wonder if that has something to do with the request for a regular html page as opposed to a JSON object, or if there is anything else that I need to do to get the results to show up. <br></div><div><br></div><div>Here is the code that I modified to mobile-base:</div><div><br></div><div> //var selectControl = new OpenLayers.Control.SelectFeature(sprintersLayer, {<br> // autoActivate:true,<br> // onSelect:
onSelectFeatureFunction});<br><br> var selectControl = 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> autoActivate:true<br> });<br></div><div><br></div>Mark<br><div><br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Eric Lemoine <eric.lemoine@camptocamp.com><br> <b><span style="font-weight: bold;">To:</span></b> Mark Volz <volzmark@yahoo.com>
<br><b><span style="font-weight: bold;">Cc:</span></b> "openlayers-users@lists.osgeo.org" <openlayers-users@lists.osgeo.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, December 28, 2011 1:46 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [OpenLayers-Users] JQuery Mobile - Use WMSGetFeatureInfo in place of built in features<br> </font> <br>
<meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv1702527695"><br><br>On Wednesday, December 28, 2011, Mark Volz <<a rel="nofollow" ymailto="mailto:volzmark@yahoo.com" target="_blank" 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: '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><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 rel="nofollow" ymailto="mailto:eric.lemoine@camptocamp.com" target="_blank" href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
http://www.camptocamp.com<br><br>
</div><meta http-equiv="x-dns-prefetch-control" content="on"><br><br> </div> </div> </div></body></html>