[OpenLayers-Users] getFeatures().length very often zero

Horst Garstka horst at hike.de
Fri Nov 28 05:11:53 PST 2014


Hi to everyone,

my problem with ol3 is that
[vectorlayer].getSource().getFeatures().length results very often in
'0'. Only if I stop and restart the javascript with FireBug near that
command I get the correct result '64'.

The vector layer is loading a KML file with 64 placemarks. And I'm able
to display popups of the name of the placemarks via click-events.

Thanks for your help


More information about the Users mailing list