[OpenLayers-Users] Cannot cycle through vector layer features

Eric Lemoine eric.c2c at gmail.com
Fri Jan 30 00:50:58 EST 2009


Right. The Layer.GML constructor triggers an HTTP request and returns
before the response is received.

Cheers,

Eric

2009/1/28, Mauro Bianchi <bianchimro at gmail.com>:
> Sorry guys ;)
>
> Thanks Bart for your solution (and Ivan too).
> The lesson learned here is remebering  that layer features arec loaded
> asynchrounously ...right?
>
> Cheers
> Mauro
>
>
>
> 2009/1/28 Ivan Grcic <igrcic at gmail.com>:
>> That was Bart ;) I was just trying to show you that GML loads in
>> background, and it takes some time to load it..thats why you get
>> features.length =0
>> Also check this example
>> http://openlayers.org/dev/examples/GMLParser.html
>>
>> cheers
>>
>
>
> --
> Mauro Bianchi
> bianchimro at gmail.com
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list