Hello Geoserver List,

I have been checking the Geoserver and GeoWebCache documentation for days
and I do not know how to have my cached layers return the getfeatureinfo on
my WMS server.  I understand that the two are in different locations, but I
would imagine that the popup would still generate the feature info without
issues.  I am very grateful for your time and considerations.  

//One of my Layers:

var tib_townships = new OpenLayers.Layer.WMS(
                                "Townships",
"http://localhost:8080/geoserver/gwc/service/wms";, {layers:
'cite:tib_townships', transparent: true}, {isBaseLayer: false,
displayInLayerSwitcher: true, visibility: true, minScale:
3466752.1306573446} 
                        );

//Here is my popup code:

var info = new OpenLayers.Control.WMSGetFeatureInfo({
                            url: 'http://localhost:8080/geoserver/wms', 
                            title: 'Identify features by clicking',
                            queryVisible: true,
                            eventListeners: {
                                getfeatureinfo: function(event){              
                                   map.addPopup( new
OpenLayers.Popup.AnchoredBubble(
                                        "chicken",
                                        map.getLonLatFromPixel(event.xy),
                                        null,
                                         event.text,
                                        null,
                                        true
                                        
                                    ));

I should mention I've also tried url:
'http://localhost:8080/geoserver/gwc/service/wms',  and when I do this, my
browser is attempting to send a request somewhere...why does it ignore it
completely with  url: 'http://localhost:8080/geoserver/wms', I mean I would
expect for a request to at least be attempted :?

I should also point out that using GWC layers are making my map legend
useless as it seems it is not picking up my SLD for points and lines...

Sincerely,

elshae

-- 
View this message in context: 
http://old.nabble.com/GWC-Layers-Do-Not-Return-GetFeatureInfo-tp30088025p30088025.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to