[OpenLayers-Users] Selection on a WFS layer problem

Ian Turton ijturton at gmail.com
Sat Mar 12 19:00:33 EST 2011


On 12 March 2011 18:52, Arnd Wippermann <arnd.wippermann at web.de> wrote:
> Your features lose not there style, but get deleted from your map. You see
> the layer base.
>
> It seems, that this part
>
> onSelect: function(feature){
>    select.addFeatures([feature]);
> },
> onUnselect: function(feature){
>    select.removeFeatures([feature]);
>
> deletes the unselected feature also from the wfs layer. You don't need the
> functions. Try it without onSelect and onUnselect.

I thought I was adding the feature to a new layer (select).

Ian
-- 
Ian Turton


More information about the Users mailing list