Hi,

I never tried ist myself before, but there is a GeoJSON Example at
http://www.openlayers.org/dev/examples/geojson.html

Basically yuo should use  var geojson_format = new
OpenLayers.Format.GeoJSON();

Hope this helps.

Gabriele

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/how-to-add-php-postgresql-query-result-as-Geojson-layer-to-openlayers-tp6876808p6879775.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to