Sorry for my answer, it was more dedicated for geoserver users than geotools
user...
Fix
On 04/09/07, gershwinou <[EMAIL PROTECTED]> wrote:
>
> if you mean on openlayers,
>
> you can get inspiration from the example provided by geoserver.
>
> here is the hack:
>
> function setHTML(response) {
> > OpenLayers.Util.getElement('nodelist').innerHTML =
> > response.responseText;
> > };
> >
> >
> and
>
> // support GetFeatureInfo
> > map.events.register('click', map, function (e) {
> > OpenLayers.Util.getElement('nodelist').innerHTML = "Loading...
> > please wait...";
> >
> > var url = map.layers[0].getFullRequestString({
> > REQUEST: "GetFeatureInfo",
> > EXCEPTIONS: "application/vnd.ogc.se_xml",
> > BBOX:
> > map.getExtent().toBBOX(),
> > X: e.xy.x,
> > Y: e.xy.y,
> > INFO_FORMAT: 'text/html',
> > QUERY_LAYERS: map.layers
> > [0].params.LAYERS,
> > FEATURE_COUNT: 50,
> > srs: 'EPSG:26713',
> > styles: '',
> > layers: 'sf:roads',
> >
> > WIDTH: map.size.w,
> > HEIGHT: map.size.h},
> > "http://lobecia.jrc.it:8080/geoserver/wms
> > "
> > );
> > OpenLayers.loadURL(url, '', this, setHTML, setHTML);
> > Event.stop(e);
> > });
> >
> >
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users