Re: [mapserver-users] [OpenLayers-Users] unable to display a geojson layer from mapserver url in openlayers

2013-11-14 Thread John Smith
using openlayers 2.7 and mapserver 6.4.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] [OpenLayers-Users] unable to display a geojson layer from mapserver url in openlayers

2013-11-13 Thread John Smith
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