// This node script was used to generate the list of polygons // The list of polygons is kept the same (not generated client-side) // so that tests in different browsers will have the same dataset var fs = require('fs'); function makePolygon(){ var polygon = { type:'Polygon', coordinates: [[]]}; for(var i = 0; i < 5; i++) { polygon.coordinates[0].push([ Math.random()*180 - 90, Math.random()*360 - 180 ]); } return polygon; } var polygons = []; for(var i = 0; i < 1000; i++) { polygons.push(makePolygon()); } fs.writeFileSync('huge-polygon-list.json', JSON.stringify(polygons));