Export of data to textfile
Export of data to textfile

I am using DataTables to access and view my collection of ancient roadmaps.
Data of the maps is in a CSV and via the presented table one can link to a zoomable version of a map.
Presentation is done with OpenSeaDragon.
See: https://wbeulink.nl/publiek/zoomables/
Works fine thanks to DataTables.
There is a different way to view cards in OpenSeaDragon called: Collectionmode.
A view to a combination of related cards.
See: https://wbeulink.nl/publiek/Kaarten/show.php?name=ANWB-50-Stadsplattegronden-1917/
OpenSeaDragon needs information for this view in a simple file.
Example with 3 items:
var tileSources = [
'/sometext/data from row1 columnx/data from row1 column-y.dzi',
'/sometext/data from row2 columnx/data from row2 column-y.dzi',
'/sometext/data from row3 columnx/data from row3 column-y.dzi'
];
var tileNames = [
'data from row1 column-z',
'data from row2 column-z',
'data from row3 column-z'
];
Until now I made such files in a static way.
But I want to be more flexible.
So select and sort via DataTables and then use a button to create the file and start the view.
Is there a way to achieve this.
First step would be the creation of the file (constant name and every time overwritten by new vesion).
Any help is very welcome.
Thanks in advance Willem
Answers
Great use of DataTables. Cool to see my local train station, which shut down around 1900, on one of the train maps
.
I'm not entirely sure what is needed to create the view - sorry. Creating a button in a table is fairly easy - use
columns.defaultContent
if the button is common on all rows, then bind an event listener usingon()
- e.g.Allan