Openlayers selection on Geowebcached layer?

1 message Options
Embed this post
Permalink
Dragan Podvezanec

Openlayers selection on Geowebcached layer?

Reply Threaded More More options
Print post
Permalink
Is this possible at all?

Currently I use WMS layer from Geoserver, and I can make selection on it, and get all needed feature info:

onclick.events.register("featureselected", this, function(e) {
                var object = (e.feature);
                var bbox = (object.geometry.bounds);
                var center = (bbox.getCenterLonLat());
                map.panTo(center);
                });

This doesn't work when I try to make the same behaviour on the same layer from Geowebcache.

Do I have to modify geowebcache.xml somehow to enable feature requests, or this isn't possible at all?