Hello OpenLayers forum,

I would like to have a pop-up on my map that not only displays the feature
info for the wms layer, but also the RSS feed from the GeoRSS layer.  Here
is the code I have so far...

For my GeoRSS layer: 
OpenLayers.ProxyHost ="http://localhost/cgi-bin/proxy.cgi?url=";;
            var georss = new OpenLayers.Layer.GeoRSS( "GeoRSS",
"http://earthquake.usgs.gov/recenteqsww/eqs7day-M2.5.xml"; );
            map.addLayer(georss);   

For my WMS layer:
var tib_villages = new OpenLayers.Layer.WMS(
                                "Villages (Tibetan trans)",
"http://localhost:8080/geoserver/wms";, {layers: 'cite:tib_villages',
transparent: true}, {isBaseLayer: false, displayInLayerSwitcher: true,
visibility: true} 
                        );

For my WMS popup:
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 + '<div>name: Hello!</div>' ,
                                null,
                                true
                                
                            ));
                        }

                     }
                });
                map.addControl(info);
                info.activate();

Before I added the proxy + GeoRSS layer, my feature info of the WMS layer
was showing in that popup.  Now all I get to display is <div>name:
Hello!</div>.  Does anyone know why my WMS feature info is gone, and how I
can display my GeoRSS data in the popup?  My proxy seems correct as 
http://localhost/cgi-bin/proxy.cgi?url=http://earthquake.usgs.gov/recenteqsww/eqs7day-M2.5.xml
displays the feed correctly in my browser...

Thanks for all your time and efforts,

elshae
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/RSS-Feeds-FeatureInfo-In-Popups-tp5589083p5589083.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to