[OpenLayers-Users] unable to display a geojson layer from mapserver url in openlayers
John Smith
jayzee.smith at gmail.com
Wed Nov 13 13:31:29 PST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20131113/5d420822/attachment.html>
More information about the Users
mailing list