[OpenLayers-Users] Re: How it works WMSGetFeatureInfo??

Max Stephan max.stephan at gmx.net
Tue Feb 7 10:29:44 EST 2012


Hi Francesc,

for debugging the error you get in Firebug I would recommend to use the
non-compressed OpenLayer-JS-files instead of the compressed ones - just
import the OpenLayer.js from the lib folder instead of that from the
"root"-folder and it will automatically import the single files. Anyway the
error doesn´t result from the WMSGetFeatureInfo-request itself but from the
popup-creation.

But apart from that error. Could you have a look into Firebug to see if you
even get a response from the server to your GetFeatureInfo-request? A very
common error is that the request is not possible due to the restrictions of
Javascript-cross-domain-policy (which means XML-HTTP-requests are only
allowed when the client-HTML-page and the server - GeoServer in this case -
are in the same domain). If your client and server should be in a different
domain you would need to implement a proxy to your server.

Best regards
Max Stephan

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-it-works-WMSGetFeatureInfo-tp4361191p4372878.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list