-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-example.js
23 lines (23 loc) · 1.22 KB
/
config-example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = {
pgConnection: null, // Postgres connection string
pgQuery: null, // Postgres query
csvFile: './examples/basic/boxes.csv', // Path to CSV file
bbox: false, // Draw boxes instead of points (need columns: west, east, south, west)
width: 4000,
height: 3000,
extent: [[-180, -85], [180, 85]], // Restrict data to this extent as well as scale canvas to fit this extent.
fitToBox: null, // Scale canvas to fit this box
background: 'rgba(255,255,255,1)', // Color for canvas
stroke: 'rgba(0,0,0,0.1)', // Stroke color for box data
fill: 'rgba(255,255,255,0.1)', // Fill color for point data
worldFile: null, // Geojson geography file that can be used to draw an outline behind the data
worldColor: 'rgba(0,0,0,0.3)', // Color to stroke the features in the `worldFile`
fitToFeatures: false, // Will use the features in the `worldFile` to set scale of canvas. Useful for zooming to a particular region.
extentColor: null, // draw extent in this color. Null = don't draw
alpha: 1.0, // global alpha for Canvas context
imageName: 'test.png', // the output image filename
colorizer: function(data){
// function that process a row of data and then returns a color
return 'rgba(0, 0, 0, 0.1)';
}
};