Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm really really struggling with this. I have created a map using Geoserver and Openlayers. Things have been working out here and there, as I am new to all this so a lot has been just trial and error. I noticed my map started loading slower and slower so I have decided to use GeoWebCache to cache my layers. The problem is that now I cannot get the feature info to display in a pop-up as it once was when I was getting the layers straight from the server/wms. The part that even confuses me further is that when I provide the pop-up with the url 'http://localhost:8080/geoserver/gwc/service/wms' it actually attempts to send a request. However when I provide the right url from the server where the data actually is (http://localhost:8080/geoserver/wms), it's like if no request is being made. (I am seeing this in firebug). I've also created a geowebcache.xml files and have listed several of my layers as true, but no differences there either :( Any suggestions you can offer me will be greatly appreciated. I am truly very stuck.

Many thank yous,

elshae

share|improve this question

1 Answer 1

up vote 7 down vote accepted

0 down vote accept

Finally I have stumbled across here:

http://getsatisfaction.com/opengeo/topics/error_in_wmsgetfeatureinfo#reply_2612983

new OpenLayers.Control.WMSGetFeatureInfo({

    url: "http://localhost:8080/geoserver/wms", 

    layerUrls: ["http://localhost:8080/geoserver/gwc/service/wms"],

    title: 'Identify features by clicking',

    queryVisible: true

});

Turns out what I was missing was layerUrls: ["http://localhost:8080/geoserver/gwc/service/wms"]

This means: consider the layerUrls (i.e. your gwc urls), but issue requests to the url (i.e. your wms url).

elshae

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.