[OpenLayers-Users] Re: Popup only on WMS layer object

Sveen Atle Frenvik (Geomatikk IKT) Atle.Frenvik.Sveen at geomatikk.no
Thu Aug 4 03:28:23 EDT 2011


if you are using Geoserver you can of course edit the templates for 
getfeatureinfo 
(http://docs.geoserver.org/latest/en/user/tutorials/GetFeatureInfo/index.html)

the content.ftl is only included if there is a response, so there you 
can add a html comment (f.ex: <!-- CONTENT --> ) and check for this in 
the if-clause

if you are using another wms-server i am not sure, but i guess you can 
do someting similar.

-a

On 2011-08-04 09:19, michsred wrote:
> Sven,
>
> your solution works great. Of course it works when GeoServer serves
> GetFeatureInfo data in a table which is a member of "featureInfo" class. I
> wonder what kind of tags and other html/css elements can be used in /if/
> clause which you've posted.
>
> Michal
>
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Popup-only-on-WMS-layer-object-tp6648352p6651653.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


-- 
Atle Frenvik Sveen
Utvikler
Geomatikk IKT AS
tlf: 45 27 86 89
atle.frenvik.sveen at geomatikk.no


More information about the Users mailing list