[OpenLayers-Users] getfeature info from a single column, how to filter?

Ivan Grcic ivan.grcic at geo-solutions.it
Tue Jun 28 10:43:17 EDT 2011


Hi Gary,

it is possible by modifying gfi templates. Please take a look at :
http://docs.geoserver.org/latest/en/user/tutorials/GetFeatureInfo/index.html

hint:
  <#if (!attribute.isGeometry &&  (attribute.name = "ID_NO" ||
attribute.name = "link"))>
    <th >${attribute.name}</th>
  </#if>

Regards,
Ivan

On Tue, Jun 28, 2011 at 4:04 PM, Gary Nobles <garynobles at yahoo.com> wrote:
> Dear list,
>
> i have a map with a layer and I have the popup request working, however it
> displays all the fields, eg:
>
> fid, id, PolyFID, ID_NO,link
>
> I would like it to only return the 'ID_NO' and 'link' column is there any
> way to do this?
>
> Also I would like to add a hyperlink to the link colum, I guess it is more
> complicate than adding <ahref='www...'>link name  to the data?
>
> Thanks
>
> Gary
>
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/getfeature-info-from-a-single-column-how-to-filter-tp6525030p6525030.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>



-- 
-------------------------------------------------------
Ivan Grcic
GeoSolutions S.A.S.
Software Engineer


Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://twitter.com/geosolutions_it
http://www.youtube.com/user/GeoSolutionsIT

-------------------------------------------------------


More information about the Users mailing list