[OpenLayers-Users] obtain information about only some fields

Ivan Grcic ivan.grcic at geofoto.hr
Fri Nov 28 09:34:48 EST 2008


Hi Salas,

what excatly do you mean? do you want your wms SERVER to RETRUN only
specific attributes (not all of them), or do you want to DISPLAY only
some of the attributes?


On Fri, Nov 28, 2008 at 9:07 AM, fsalas <fsalas at geocuba.cu> wrote:
> I need obtain information about only some fields of my layer and in this
> sentence not work as i like.
>
> // support GetFeatureInfo
>
> map.events.register('click', map, function (e)
> {document.getElementById('nodelist').innerHTML = "Cargando... por favor
> espere...";
>
> 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,WIDTH: map.size.w,HEIGHT: map.size.h},
>
> "http://localhost:8080/geoserver/wms"
>
> );
>
> OpenLayers.loadURL(url, '', this, setHTML, setHTML);
>
> OpenLayers.Event.stop(e);
>
> });
>
> How I obtain the value of some fields?
>
> Salas
> ___________________________________
> Dpto de Sistemas Informáticos
> Oficina Central Grupo Empresarial GEOCUBA
> Este mensaje esta libre de virus.
> Revisado por Kaspersky Antivirus
> ----------------------------------------------------------------------
> Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: 1275756
> Definition date: 2008/11/28 MDAV version: 2.2.8
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>



-- 
Ivan Grcic



More information about the Users mailing list