i am calling, like so:

(from
http://stackoverflow.com/questions/10368726/how-to-read-external-geojson-file-from-openlayers
)
geojson_layer = new OpenLayers.Layer.Vector("GeoJSON", {
            strategies: [new OpenLayers.Strategy.Fixed()],
            protocol: new OpenLayers.Protocol.HTTP({
                url: "/cgi-bin/app?map=...&ouputformat=geojson",
                format: new OpenLayers.Format.GeoJSON()
            })
        });

this may be unrelated but the url above creates a valid geojson however
both http://www.jsoneditoronline.org/ and http://geojson.io/ throw the
following error:

Parse error [ "coordinates": [[ ]] ] Expecting 'EOF', '}', ',', ']', got ':'

(i guess i can always edit my tmpl (
http://osgeo-org.1560.x6.nabble.com/mapserver-5-6-CGI-output-GeoJSON-format-td4890884.html)
but it seems unrelated.)

thks, jzs
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to