[OpenLayers-Users] How to extract attributes on layer load ?

Ken-ichi kenichi.ueda at gmail.com
Thu Jun 19 17:14:39 EDT 2008


Hi,

Have you tried listening for the loadend or featuresadded events?  I
haven't worked with WFS layers yet, so I don't know if this would
work, but you could try

yourWFSLayer.events.on({
  'loadend': function() {
    alert('foo');
  }
});

map.addLayer(yourWFSLayer);

-ken-ichi


On Thu, Jun 19, 2008 at 1:58 PM, Volodymer Grigorenko <wolgri at ya.ru> wrote:
> Hi list .
> I`m trying to make my first OL app . The idea is to get WFS features  for
> extend display it on map and theire attributes parsed and sorted  in div
> zone . Ok i`ve made my function based on http://world.freemap.in/ whitch do
> the job on mouse click event but how to run it on layer load ?
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list