-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhslayers.js
executable file
·40 lines (38 loc) · 1.63 KB
/
hslayers.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
'use strict';
if (typeof require != 'undefined') {
require.config({
urlArgs: 'bust=' + gitsha,
paths: {
toolbar: hsl_path + 'components/toolbar/toolbar',
layermanager: hsl_path + 'components/layermanager/layermanager',
map: hsl_path + 'components/map/map',
query: hsl_path + 'components/query/query',
search: hsl_path + 'components/search/search',
print: hsl_path + 'components/print/print',
permalink: hsl_path + 'components/permalink/permalink',
geolocation: hsl_path + 'components/geolocation/geolocation',
measure: hsl_path + 'components/measure/measure',
legend: hsl_path + 'components/legend/legend',
app: 'app',
core: hsl_path + 'components/core/core',
api: hsl_path + 'components/api/api',
translations: hsl_path + 'components/translations/js/translations',
hscesium: hsl_path + 'components/hscesium/hscesium',
}
});
//http://code.angularjs.org/1.2.1/docs/guide/bootstrap#overview_deferred-bootstrap
window.name = "NG_DEFER_BOOTSTRAP!";
require(['core'], function(app) {
require(['app'], function(app) {
var $html = angular.element(document.getElementsByTagName('html')[0]);
angular.element().ready(function() {
angular.resumeBootstrap([app['name']]);
});
});
});
} else {
var $html = angular.element(document.getElementsByTagName('html')[0]);
angular.element().ready(function() {
// angular.resumeBootstrap([exports.app['name']]);
});
}