[OpenLayers-Users] GeoJSON
pedro hernandez
pedrohernandez830 at gmail.com
Wed Apr 21 10:58:48 EDT 2010
Hi,
This is my first post and I wanna congratulate for your project.
I'm creating a layer based in geojson output.
var geojson_format = new OpenLayers.Format.GeoJSON();
var gs = geojson_format.read( my_output ,"FeatureCollection");
And in this output I have some propierties I wanna read in my code for
styling the features.
I tried to use filter parameter in read function but It doesn't works to
me. Something like that:
var gs = geojson_format.read( my_output
,"FeatureCollection",function(a){alert('hello'););
vector_layer.addFeatures(gs);
Can somebody help me?
Thanks,
Pedro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100421/52c60df8/attachment.html
More information about the Users
mailing list