Re: [OpenLayers-Users] Getting featurecollection from GeoJSON?

2009-10-06 Thread Eric Lemoine
On Fri, Oct 2, 2009 at 11:00 PM, Christian Schanz christian.sch...@gmail.com wrote: Hello, I need a function that returns a featurecollection which is created from a GeoJSON. So I think that I need to do something like the following: function getGeoJSON() {     var featurecollection;    

[OpenLayers-Users] Getting featurecollection from GeoJSON?

2009-10-02 Thread Christian Schanz
Hello, I need a function that returns a featurecollection which is created from a GeoJSON. So I think that I need to do something like the following: function getGeoJSON() { var featurecollection; function handler(request) { //TODO: What to do here? } var request =

Re: [OpenLayers-Users] Getting featurecollection from GeoJSON?

2009-10-02 Thread Darrell Fuhriman
On Oct 2, 2009, at 14:00, Christian Schanz wrote: Hello, I need a function that returns a featurecollection which is created from a GeoJSON. So I think that I need to do something like the following: I do this (uses prototype.js): var vector_layer = new OpenLayers.Layer.Vector('A Layer',{