-
Notifications
You must be signed in to change notification settings - Fork 16
/
config-amd.js
42 lines (39 loc) · 1.28 KB
/
config-amd.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
39
40
41
42
require.config({
paths: {
aeris: 'src',
// Core library dependencies
underscore: 'bower_components/underscore/underscore',
backbone: 'bower_components/backbone/backbone',
// Note that jQuery can be stubbed out.
// jQuery is required by Backbone.View,
// which is never used by Aeris.js
jquery: 'bower_components/jquery/dist/jquery',
// Map strategies
googlemaps: 'bower_components/googlemaps-amd/src/googlemaps',
async: 'bower_components/requirejs-plugins/src/async',
'gmaps-markerclusterer-plus': 'bower_components/gmaps-markerclusterer-plus/index',
leaflet: '//cdn.leafletjs.com/leaflet-0.7.2/leaflet-src',
'leaflet-markercluster': 'bower_components/leaflet.markercluster/dist/leaflet.markercluster-src',
mapbox: '//api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.standalone'
},
shim: {
'gmaps-markerclusterer-plus': {
exports: 'MarkerClusterer',
init: function() {
// Hack for lib not explicity assigned to global scope.
return MarkerClusterer;
}
},
'leaflet-markercluster': {
deps: ['leaflet'],
exports: 'L.MarkerClusterGroup',
init: function() {
return L.MarkerClusterGroup;
}
},
'mapbox': {
deps: ['leaflet'],
exports: 'L.mapbox'
}
}
});