Thanks so much Tim, I did as you told me (only layer_wfs.markers.length == 0 instead of layer_wfs.features.length == 0) Regards,
Guido Tim Schaub wrote: > > > If your layer has no features, then: > > layer_wfs.features.length == 0; > > Since your data is loaded asynchronously, you'd have to listen for the > "loadend" event on your layer: > > layer_wfs.events.register("loadend", layer_wfs, function() { > if(this.features.length == 0) { > // do something about no features > } > }); > > or something like that. > > Tim > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/How-to-know-if-a-WFS-layer-has-no-features--tf4917423.html#a14152911 Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users