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

Francesc Cañas kikocanas at gmail.com
Thu Feb 9 04:11:43 EST 2012


Thanks Max!

Well, I've removed the proxy-host-variable, so the code is the same as
before. Now I have the html-file and the openlayers-folder inside the
www-folder of geoserver and the path to the openlayers.js file relative to
html-file:

<script src="/OpenLayers/lib/OpenLayers.js"></script>

 If I launch the page with http://localhost:8080/geoserver/www/popup.htm it
says

HTTP ERROR: 404
NOT_FOUND
RequestURI=/geoserver/www/popup.htm

If I open with mozilla, keep saying *OpenLayers is not defined*. It's the
only bug that shows...

If I keep the <script src="http://www.openlayers.org/api/OpenLayers.js">, I
either can launch the page via geoserver, but firebugs says that size is
null and displays:

http://localhost:8080/geoserver/Proj_CAT/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=Proj_CAT%3AProjectes_UTM31&QUERY_LAYERS=Proj_CAT%3AProjectes_UTM31&STYLES=&BBOX=-3.119873%2C38.473145%2C5.119873%2C43.526855&FEATURE_COUNT=10&HEIGHT=460&WIDTH=750&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fhtml&SRS=EPSG%3A4326&X=357&Y=161

If I open the link, it shows the info that it supose to be inside the
popup. I really don't understand...


--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-it-works-WMSGetFeatureInfo-tp4361191p4378510.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120209/d430aea4/attachment.html


More information about the Users mailing list