Row-to-Scope

One to Many

Turn a spreadsheet and an HTML page for the first row into a complete website.



Maps, Too

Use a GeoJSON file, Google Earth KML, or a shapefile instead of a spreadsheet.
Get an HTML page for each feature.



No DB

Avoid database, server, and cross-domain API weirdness. It's a website you can set up by forking this code and editing it online on GitHub.

Currently supports: CSV, GeoJSON, KML, and shapefiles.



Whatever you want to make

Write row/index.html for the first row. Any JavaScript widgets and visualizations work for all of the other rows.

Use the callback function to act after data has been loaded.

For Example:

Data

Hello World,40,-80
Hello Row 2,45,-100
Hello Row-to-Scoped,30.429,30.4

Code

var rts = rowToScope( "data.csv", function(row){
   var center = rts.replaceRow([ 40, -80 ]);
   var map = L.map("map").setView( center, 6 );

   var message = rts.replaceRow("Hello World");
   L.marker( center ).bindPopup( message ).addTo(map);
});




Images CC-BY-SA 24thcentury, robpatrick, Peter Ito, Andy Field