Hi Pedro,

  Don't forget to include the list in your reply :)

You can define an OpenLayers.Layer.Vector that has a OpenLayers.Protocol.WFS defined and pointing to your WFS service. See an example :
    http://openlayers.org/dev/examples/wfs-states.html

Or, you could also use the OpenLayers.Control.GetFeature to only fetch vector features on click. See an example :
    http://openlayers.org/dev/examples/getfeature-wfs.html

HTH,

Alexandre


On 12-08-01 06:02 PM, [email protected] wrote:

Thank you Alexandre.
But how i do for openlayers show a attribute of a postgis table?



Com os melhores cumprimentos,
Pedro Costa
Enviado do meu Android Galaxy


Alexandre Dubé escreveu:

Hi Pedro,

   Using an OpenLayers.Control.Select control, it's just a matter of
displaying the feature.attributes when a feature is clicked. See the
following example, it should give you a good start :

http://openlayers.org/dev/examples/select-feature-openpopup.html

HTH,

Alexandre


On 12-08-01 11:29 AM, Pedro Costa wrote:
> Hi guys,
>
> In my map i have a wfs layer that i want display content of one
> attribute (postgis table) by feature click.
> Can you help me the better choice to that?
>
> I see examples with wms...
>
> Thanks
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users


--
Alexandre Dubé
Mapgears
www.mapgears.com

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users


--
Alexandre Dubé
Mapgears
www.mapgears.com

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to