Hello everybody,

i tried to fetch some featureinfos from geoserver and display in a popup.
I used this code:

    // GetFeatureInfo
    
    var featureInfo = new OpenLayers.Control.WMSGetFeatureInfo({
    url: 'http://sfb806srv.uni-koeln.de:8080/geoserver/wms',
    layers:[pfeile],
    info_format:'text/plain',
    });
    
    featureInfo.events.on({
        getfeatureinfo: function(e) {
            new GeoExt.Popup({
                title: "Feature Info",
                width: 200,
                height: 150,
                autoScroll: true,
                maximizable: true,
                map: mappanel.map,
                lonlat: mappanel.map.getLonLatFromPixel(e.xy),
                html: e.text
            }).show();
        }
    });
    mappanel.map.addControl(featureInfo);
    featureInfo.activate();


A click on the map results in an empty popup and the following errors in Firebug:

centerPx is null





  

WEB.DE DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt mit    
gratis Handy-Flat! http://produkte.web.de/go/DSL_Doppel_Flatrate/2
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to