[OpenLayers-Users] Programmatically select a wfs feature by attribute

Pierre GIRAUD bluecarto at gmail.com
Tue Nov 6 16:04:20 EST 2007


It's just a quick thought but you should be able to use the
preFeatureInsert or onFeatureInsert callbacks for that. In those
methods you probably want to check for an attribute value.
However, I don't really know how you can select the features. You'll
probably have to deal with a SelectFeature control and call its select
method.

Regards,
Pierre


On Nov 6, 2007 6:21 PM, mcarsel <carsella11 at msn.com> wrote:
>
> Is there a way to programmatically select wfs features by attribute?  I need
> them to be inserted into the wfs.selectedFeatures array and highlighted in
> blue.  Will I need to draw new vectors on top of the existing myself, or can
> OpenLayers handle this?
> --
> View this message in context: http://www.nabble.com/Programmatically-select-a-wfs-feature-by-attribute-tf4759691.html#a13611555
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list