[OpenLayers-Dev] Protocol.WFS question
Tim Schaub
tschaub at opengeo.org
Mon Nov 17 12:19:19 EST 2008
Hey-
Tim Schaub wrote:
> Hey-
>
> bartvde at osgis.nl wrote:
>> Hi list,
>>
>> I am rewriting my application to use the new Protocol.WFS with a Fixed
>> Strategy, instead of Layer.WFS.
>>
>> I used to listen to loadend events on the Layer.WFS, so what is the
>> correct way to do this now?
>>
>> I see that Protocol read gets Strategy.Fixed.merge as the callback
>> function, should it call a loadend on the layer there? But Layer.Vector
>> does not have the load events.
>>
>> Or should I use the featuresadded event instead?
>
> Similar thread:
> http://n2.nabble.com/http-protocol-problem-tt1460006.html#a1478217
>
> We should talk a bit about any additional events that might make sense
> for vector layers.
>
> Hey, that would make a good topic for the weekly OL dev meeting on IRC :)
>
I think #1840 is a good suggestion. Since the layer could have multiple
strategies, the "loadend" event might not actually mean that features
have been added to the layer. I think this is acceptable, not sure if
it works for all. This would mean that the loadstart and loadend events
would only be about fetching remote data - not adding features to the layer.
Bart, if you are in irc range, we could discuss now there.
Tim
> Tim
>
>
>> Best regards,
>> Bart
>>
>> _______________________________________________
>> Dev mailing list
>> Dev at openlayers.org
>> http://openlayers.org/mailman/listinfo/dev
>
>
--
Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.
More information about the Dev
mailing list