-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmapbox.js
More file actions
21 lines (20 loc) · 889 Bytes
/
mapbox.js
File metadata and controls
21 lines (20 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Hardcode image path, because Leaflet's autodetection
// fails, because mapbox.js is not named leaflet.js
window.L.Icon.Default.imagePath = '//api.tiles.mapbox.com/mapbox.js/' + 'v' +
require('./package.json').version + '/images';
L.mapbox = module.exports = {
VERSION: require('./package.json').version,
geocoder: require('./src/geocoder'),
marker: require('./src/marker'),
tileLayer: require('./src/tile_layer'),
shareControl: require('./src/share_control'),
legendControl: require('./src/legend_control'),
geocoderControl: require('./src/geocoder_control'),
gridControl: require('./src/grid_control'),
gridLayer: require('./src/grid_layer'),
markerLayer: require('./src/marker_layer'),
map: require('./src/map'),
config: require('./src/config'),
sanitize: require('sanitize-caja'),
template: require('mustache').to_html
};