[OpenLayers-Users] GetFeatureInfo Customizable

Rodrigo rca.cirdan at gmail.com
Mon Feb 16 08:42:00 EST 2009


Olá Fernando!

Para que vc tenha completo controle sobre a resposta do GetFeatureInfo, voce
pode retornar os dados usando um GML... assim vc pode montar um parser e
apresentar a informação como desejar.. faço isso por exemplo para retornar
os dados em forma de lista (campo: valor) em um
popup...

Para tal, é só mudar o valor do INFO_FORMAT para:

INFO_FORMAT: 'application/vnd.ogc.gml'

Há também uma forma de editar templates para o GetFeatureInfo:

http://geoserver.org/display/GEOSDOC/GetFeatureInfo+templates

Mas esse modo eu nunca cheguei a utilizar.. hehehe

Abraço,

Rodrigo



======================================
Rodrigo C. Antonialli
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 9757-0370
             rca.cirdan at gmail.com
             rcantonialli at gmail.com
             Skype: rc_antonialli




On Mon, Feb 16, 2009 at 10:24, Fernando Quadro <fsquadro at hotmail.com> wrote:

>  Hi,
>
> My name is Fernando Quadro, I'm Brazilian, system analyst working in the
> area of GIS. I have studied and developed an application with the OpenLayers
> + GeoServer.
>
> Published a tutorial on my blog on OpenLayers in Portuguese, which did not
> exist until then. (http://www.fernandoquadro.com.br/html/openlayers/)
>
> My question is this, when I do a GetFeatureInfo in my application, the
> standard answer is a table with the information. I would like to know how to
> customize, or get that information and put it in my style (css).
>
> Best Regards,
>
> Fernando Quadro
> http://www.fernandoquadro.com.br
> fsquadro at hotmail.com
>
>
>
>
> ------------------------------
> Notícias direto do New York Times, gols do Lance, videocassetadas e muitos
> outros vídeos no MSN Videos! Confira já! <http://video.msn.com/?mkt=pt-br>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090216/5cd55987/attachment.html


More information about the Users mailing list