<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Hi Matt,</span></div><div><br><span></span></div><div><span>Were you able to make it work finally? I am trying a similar approach and with no success.</span></div><div><br><span></span></div><div><span>Is anyone else able to make it work with SenchaTouch/JQM?</span></div><div><br><span></span></div><div><span>Thanks,</span></div><div><span>Ravi.<br></span></div><div><br><span></span></div><div><br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> maw269 <maw269@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> users@openlayers.org<br><b><span style="font-weight: bold;">Sent:</span></b> Tuesday, April 19, 2011
12:33 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [OpenLayers-Users] OL w/ JQuery Mobile - WMSGetFeatureInfo<br></font><br>
Hello,<br>The OL mobile code sprint cranked out some awesome results! I've been able<br>to successfully utilize the OL w/ JQuery Mobile example<br>(http://www.openlayers.org/dev/examples/mobile-jq.html). It is soo smooth.<br>Now I am trying to port my WMSGetFeatureInfo and popup code to my mobile<br>page. Can someone please help me to do this? I want to be able to touch WMS<br>features and get their attributes in a popup.<br>My current popup/wmsfeature code (from my desktop version) looks like this:<br><br>// Begin: Add Popups with getFeatureInfo info :-)<br>var maximumSize = new OpenLayers.Size(200, 200);<br><br>var myPopupClass = new OpenLayers.Class<br>(<br> OpenLayers.Popup.FramedCloud,<br> {<br> 'autoSize': true,<br> 'maxSize': new OpenLayers.Size(500,500)<br> } <br>);
<br><br>var info = new OpenLayers.Control.WMSGetFeatureInfo<br>({<br> url: 'http://mydomain.com/geoserver/wms', <br> layerUrls: [('http://mydomain.com/geoserver/gwc/service/wms')],<br> layers: [dncObs, dncNav, dncPlaces, dncSoundings], <br> queryVisible: true, <br> eventListeners: <br> { <br> getfeatureinfo: function(event) <br> {
<br> if (event.text.search("Type") != -1)<br> { <br> var myPopup = new myPopupClass<br> (<br> "chicken",
<br> map.getLonLatFromPixel(event.xy),<br> null,<br> event.text,<br> null,<br> true<br> );<br> map.addPopup(myPopup); <br>
} <br> }<br> }<br>});<br>map.addControl(info);<br>info.activate();<br>// End: Add Popup<br><br><br>How do I make this work in the JQuery Mobile version?<br><br>Thanks!<br>Matt<br><br>--<br>View this message in context: http://osgeo-org.1803224.n2.nabble.com/OL-w-JQuery-Mobile-WMSGetFeatureInfo-tp6287908p6287908.html<br>Sent from the OpenLayers Users mailing list archive at <a target="_blank" href="http://Nabble.com">Nabble.com</a>.<br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.osgeo.org" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/openlayers-users<br><br><br></div></div></div></body></html>