forked from nodetiles/nodetiles-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
31 lines (29 loc) · 755 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
var Map = require(__dirname + '/lib/Map'),
GeoJson = require(__dirname + '/datasources/GeoJson'),
DynamicGeoJson = require(__dirname + '/datasources/dynamicgeojson'),
Shp = require(__dirname + '/datasources/Shp'),
projector = require(__dirname + '/lib/projector'),
routes = require(__dirname + '/lib/routes'),
UTFGrid = require(__dirname + '/lib/utfgrid');
module.exports = {
/**
* The central map component
*/
Map: Map,
/**
* Datasources are responsible for fetching and returning data
*/
datasources: {
GeoJson: GeoJson,
Shp: Shp,
DynamicGeoJson: DynamicGeoJson
},
/**
* Transform between projections
*/
projector: projector,
/**
* Routing Middleware
*/
route: routes
}