forked from mapbox/mapbox-sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundle.js
38 lines (33 loc) · 1.36 KB
/
bundle.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
32
33
34
35
36
37
38
'use strict';
var browserClient = require('./lib/browser/browser-client');
var mbxDatasets = require('./services/datasets');
var mbxDirections = require('./services/directions');
var mbxGeocoding = require('./services/geocoding');
var mbxMapMatching = require('./services/map-matching');
var mbxMatrix = require('./services/matrix');
var mbxOptimization = require('./services/optimization');
var mbxStatic = require('./services/static');
var mbxStyles = require('./services/styles');
var mbxTilequery = require('./services/tilequery');
var mbxTilesets = require('./services/tilesets');
var mbxTokens = require('./services/tokens');
var mbxUploads = require('./services/uploads');
var mbxIsochrone = require('./services/isochrone');
function mapboxSdk(options) {
var client = browserClient(options);
client.datasets = mbxDatasets(client);
client.directions = mbxDirections(client);
client.geocoding = mbxGeocoding(client);
client.mapMatching = mbxMapMatching(client);
client.matrix = mbxMatrix(client);
client.optimization = mbxOptimization(client);
client.static = mbxStatic(client);
client.styles = mbxStyles(client);
client.tilequery = mbxTilequery(client);
client.tilesets = mbxTilesets(client);
client.tokens = mbxTokens(client);
client.uploads = mbxUploads(client);
client.isochrone = mbxIsochrone(client);
return client;
}
module.exports = mapboxSdk;