[OpenLayers-Users] Export features as json
Paul Meems (Top-X)
p.meems at topx-group.nl
Thu Jun 14 05:15:53 PDT 2012
Hi,
I have a website with a map showing a few vectors using WFS and the
properties of those vectors in a table.
I want give the user to opportunity to save the table as a PDF.
To do this I want to convert the features to a json string and put that in
a hidden form element and submit that form to a PHP file that will create
the PDF.
Of course I can loop through the features and create the json string
manually, but I wonder if I can automatically export to features using
something like:
feature.toJSON().
Of course I've used Google but the answers found talked about the other way
round: JSON to features.
Please advice.
Thanks,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120614/65af09f1/attachment.html>
More information about the Users
mailing list