<div dir="ltr"><div>i am calling, like so:<br></div><div><br></div><div>(from <a href="http://stackoverflow.com/questions/10368726/how-to-read-external-geojson-file-from-openlayers">http://stackoverflow.com/questions/10368726/how-to-read-external-geojson-file-from-openlayers</a>)<br>
geojson_layer = new OpenLayers.Layer.Vector("GeoJSON", {<br> strategies: [new OpenLayers.Strategy.Fixed()],<br> protocol: new OpenLayers.Protocol.HTTP({<br> url: "/cgi-bin/app?map=...&ouputformat=geojson",<br>
format: new OpenLayers.Format.GeoJSON()<br> })<br> });<br></div><div><br></div><div>this may be unrelated but the url above creates a valid geojson however both <a href="http://www.jsoneditoronline.org/">http://www.jsoneditoronline.org/</a> and <a href="http://geojson.io/">http://geojson.io/</a> throw the following error:<br>
<br>Parse error [ "coordinates": [[ ]] ] Expecting 'EOF', '}', ',', ']', got ':'<br><br></div><div>(i guess i can always edit my tmpl (<a href="http://osgeo-org.1560.x6.nabble.com/mapserver-5-6-CGI-output-GeoJSON-format-td4890884.html">http://osgeo-org.1560.x6.nabble.com/mapserver-5-6-CGI-output-GeoJSON-format-td4890884.html</a>) but it seems unrelated.)<br>
<br></div>thks, jzs<br><br></div>