Ian, Your selection is currently limited to only two features. I cannot select any feature after selecting 2 features. Is that intentional? An error is shown that "layer is null" in OpenLayers.js
In IE, the selection does not overlay on the feature(offset by some good distance). Are you missing something on SRS? Any luck with "wfs.refresh();" after select and unselect events? -Ravi ________________________________ From: Ian Turton <[email protected]> To: Arnd Wippermann <[email protected]> Cc: [email protected] Sent: Sat, March 12, 2011 7:00:33 PM Subject: Re: [OpenLayers-Users] Selection on a WFS layer problem On 12 March 2011 18:52, Arnd Wippermann <[email protected]> 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 _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
