[OpenLayers-Dev] Tiled WFS layer (need feedback)
Martijn van Oosterhout
kleptog at gmail.com
Tue Feb 12 15:08:55 EST 2008
On Feb 12, 2008 4:47 PM, Tim Schaub <tschaub at openplans.org> wrote:
> Sounds great. Is this available to take a look at somewhere?
Here, but it's slow as molasses, so be gentle:
> I think it also makes sense to allow users to only remove features that
> are outside the viewport - even in singleTile mode. This can be done
> with an option to removeFeatures that checks bounds on features and only
> ditches features with bounds that do not intersect the viewport bounds.
But then how do you handle the destroying of the features when the
layer is destroyed? Destroy the tile and then destroy what's left.
That what I called bad lifecycle management...
> I think it makes sense to add an option to layer.addFeatures so only
> unique features are added. I've done this by managing a "fids" property
> on the vector layer, relying on that mapping to determine which features
> are on a layer by fid. How did you handle this?
Basically that, only I called it featureIndex.
Have a nice day,
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/
More information about the Dev