[OpenLayers-Users] Selection on a WFS layer problem
Ravi Pavuluri
ravitheja at ymail.com
Sat Mar 12 20:13:18 EST 2011
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 <ijturton at gmail.com>
To: Arnd Wippermann <arnd.wippermann at web.de>
Cc: users at openlayers.org
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 <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
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110312/341eccc7/attachment.html
More information about the Users
mailing list