[OpenLayers-Users] Feature collection array from GeoJSON format
Robert Connolly
r.connolly at auckland.ac.nz
Tue Mar 24 20:32:26 EDT 2009
Hi Everyone,
I'm trying to extract features from a GeoJSON string using the GeoJSON
format object. According to the documentation I'm supposed to be getting
an array of OpenLayers.Feature.Vector items, however when I iterate over
the array I just get zeros!
Here's a snippet of my code:
var features = geojson_format.read(data);
for(var feature in features)
{
alert(feature);
}
The alert box just alerts '0' (zero), for some reason. Does anyone know
what's going on?
Thanks in advance,
Cheers,
Rob Connolly
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090325/70b31ca8/attachment.html
More information about the Users
mailing list