<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Pedro,<br>
<br>
Don't forget to include the list in your reply :)<br>
<br>
You can define an OpenLayers.Layer.Vector that has a
OpenLayers.Protocol.WFS defined and pointing to your WFS service.
See an example :<br>
<a class="moz-txt-link-freetext" href="http://openlayers.org/dev/examples/wfs-states.html">http://openlayers.org/dev/examples/wfs-states.html</a><br>
<br>
Or, you could also use the OpenLayers.Control.GetFeature to only
fetch vector features on click. See an example :<br>
<a class="moz-txt-link-freetext" href="http://openlayers.org/dev/examples/getfeature-wfs.html">http://openlayers.org/dev/examples/getfeature-wfs.html</a><br>
<br>
HTH,<br>
<br>
Alexandre<br>
<br>
<br>
On 12-08-01 06:02 PM, <a class="moz-txt-link-abbreviated" href="mailto:pedrocostaarma@sapo.pt">pedrocostaarma@sapo.pt</a> wrote:<br>
</div>
<blockquote
cite="mid:978565538.21509.1343858557942.JavaMail.seven@ap11.p0.fra.samsungsocialhub.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div><br>
</div>
<div>Thank you Alexandre.</div>
<div>But how i do for openlayers show a attribute of a postgis
table?</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div style="font-size:75%;color:#575757">Com os melhores
cumprimentos,<br>
Pedro Costa<br>
Enviado do meu Android Galaxy</div>
</div>
<br>
<br>
Alexandre Dubé <adube@mapgears.com> escreveu:<br>
<br>
Hi Pedro,<br>
<br>
Using an OpenLayers.Control.Select control, it's just a
matter of <br>
displaying the feature.attributes when a feature is clicked. See
the <br>
following example, it should give you a good start :<br>
<br>
http://openlayers.org/dev/examples/select-feature-openpopup.html<br>
<br>
HTH,<br>
<br>
Alexandre<br>
<br>
<br>
On 12-08-01 11:29 AM, Pedro Costa wrote:<br>
> Hi guys,<br>
><br>
> In my map i have a wfs layer that i want display content of
one <br>
> attribute (postgis table) by feature click.<br>
> Can you help me the better choice to that?<br>
><br>
> I see examples with wms...<br>
><br>
> Thanks<br>
> _______________________________________________<br>
> Users mailing list<br>
> Users@lists.osgeo.org<br>
> http://lists.osgeo.org/mailman/listinfo/openlayers-users<br>
<br>
<br>
-- <br>
Alexandre Dubé<br>
Mapgears<br>
www.mapgears.com<br>
<br>
_______________________________________________<br>
Users mailing list<br>
Users@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/openlayers-users<br>
</adube@mapgears.com></blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Alexandre Dubé
Mapgears
www.mapgears.com
</pre>
</body>
</html>