Skip to content
Permalink
Browse files

A more thorough replacement of OL namespace

fixes #163
  • Loading branch information...
raitisbe committed Jun 8, 2019
1 parent 443bbdb commit f60f7f686346a9161af4b73a70b71ba9aa7b1beb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -19,131 +19,6 @@ might be accessible as static files eg. http://localhost/jquery/dist.js.
In that case we have hsl_path 'hslayers-ng/' eg. http://localhost/hslayers/
*/
if (hsl_path == 'hslayers-ng/') nm_path = './';
if (window.require && window.require.config) window.require.config({
paths: {
'ngAnimate': nm_path + 'angular-animate/angular-animate' + hslMin,
'ngAria': nm_path + 'angular-aria/angular-aria' + hslMin,
'ngMessages': nm_path + 'angular-messages/angular-messages' + hslMin,
'angular-material': nm_path + 'angular-material/angular-material' + hslMin,
'jquery': nm_path + 'jquery/dist/jquery' + hslMin,
ol: requirejs.s.contexts._.config.paths.ol || ((hslMin == '.min') ? nm_path + 'openlayers/dist/ol' : nm_path + 'openlayers/dist/ol-debug'),
angular: nm_path + 'angular/angular' + hslMin,
'angular-sanitize': nm_path + 'angular-sanitize/angular-sanitize' + hslMin,
// 'ngAnimate': hsl_path + 'node_modules/angular-animate/angular-animate' + hslMin,
// 'ngAria': hsl_path + 'node_modules/angular-aria/angular-aria' + hslMin,
// 'ngMessages': hsl_path + 'node_modules/angular-messages/angular-messages' + hslMin,
// 'ngMaterial': hsl_path + 'node_modules/angular-material/angular-material' + hslMin,
// 'swipe': nm_path + '/angular-swipe/dist/angular-swipe' + hslMin,
'angular-gettext': nm_path +'angular-gettext/dist/angular-gettext' + hslMin,
'angular-socialshare': nm_path +'angular-socialshare/dist/angular-socialshare' + hslMin,
'bottomSheetCollapsible': nm_path + 'angular-material-bottom-sheet-collapsible/bottomSheetCollapsible',
hammer: nm_path +'hammerjs/hammer' + hslMin,
bootstrap: requirejs.s.contexts._.config.paths.bootstrap || nm_path +'bootstrap/dist/js/bootstrap.bundle' + hslMin,
'bootstrap.bundle': requirejs.s.contexts._.config.paths.bootstrap || nm_path +'bootstrap/dist/js/bootstrap.bundle' + hslMin,
draw: hsl_path + 'components/draw/draw',
d3: requirejs.s.contexts._.config.paths.d3 || nm_path + 'd3/build/d3' + hslMin,
'angular-cookies': nm_path + 'angular-cookies/angular-cookies' + hslMin,
proj4: requirejs.s.contexts._.config.paths.proj4 || nm_path + 'proj4/dist/proj4',
api: requirejs.s.contexts._.config.paths.api || hsl_path + 'components/api/api' + hslMin,
compositions: hsl_path + 'components/compositions/compositions' + hslMin,
Cesium: nm_path + 'cesium/Build/Cesium/Cesium',
datasource_selector: hsl_path + 'components/datasource_selector/datasource_selector' + hslMin,
drag: hsl_path + 'components/drag/drag' + hslMin,
feature_filter: hsl_path + 'components/feature_filter/feature_filter' + hslMin,
geojson: requirejs.s.contexts._.config.paths.geojson || hsl_path + 'components/layers/hs.source.GeoJSON' + hslMin,
geolocation: requirejs.s.contexts._.config.paths.geolocation || hsl_path + 'components/geolocation/geolocation' + hslMin,
info: requirejs.s.contexts._.config.paths['info'] || hsl_path + 'components/info/info' + hslMin,
layermanager: hsl_path + 'components/layermanager/layermanager' + hslMin,
legend: hsl_path + 'components/legend/legend' + hslMin,
lodexplorer: hsl_path + 'components/lodexplorer/lodexplorer' + hslMin,
map: hsl_path + 'components/map/map' + hslMin,
measure: hsl_path + 'components/measure/measure' + hslMin,
language: hsl_path + 'components/language/language' + hslMin,
mobile_toolbar: requirejs.s.contexts._.config.paths.mobile_toolbar || hsl_path + 'components/mobile_toolbar/mobile_toolbar',
mobile_settings: requirejs.s.contexts._.config.paths.mobile_settings || hsl_path + 'components/mobile_settings/mobile_settings',
moment: nm_path + 'moment/min/moment.min',
'moment-interval': nm_path + 'moment-interval/src/moment-interval',
ows: hsl_path + 'components/ows/ows' + hslMin,
'ows_nonwms': hsl_path + 'components/ows/ows_nonwms' + hslMin,
'ows_wfs': hsl_path + 'components/ows/ows_wfs' + hslMin,
'ows_wms': hsl_path + 'components/ows/ows_wms' + hslMin,
'ows_wmts': hsl_path + 'components/ows/ows_wmts' + hslMin,
permalink: requirejs.s.contexts._.config.paths.permalink || hsl_path + 'components/permalink/permalink' + hslMin,
print: hsl_path + 'components/print/print' + hslMin,
query: hsl_path + 'components/query/query' + hslMin,
require: nm_path +'requirejs/requirejs/require',
sidebar: requirejs.s.contexts._.config.paths.sidebar || hsl_path + 'components/sidebar/sidebar' + hslMin,
search: hsl_path + 'components/search/search' + hslMin,
'hs.source.SparqlJson': requirejs.s.contexts._.config.paths.SparqlJson || hsl_path + 'components/layers/hs.source.SparqlJson' + hslMin,
status_creator: hsl_path + 'components/status_creator/status_creator' + hslMin,
styles: hsl_path + 'components/styles/styles' + hslMin,
toolbar: requirejs.s.contexts._.config.paths.toolbar || hsl_path + 'components/toolbar/toolbar' + hslMin,
translations: requirejs.s.contexts._.config.paths.translations || hsl_path + 'components/translations/js/translations',
utils: hsl_path + 'components/utils/utils' + hslMin,
'hs.format.WFSCapabilities': requirejs.s.contexts._.config.paths.WFSCapabilities || hsl_path + 'components/format/hs.format.WFSCapabilities' + hslMin,
'ol.popup': requirejs.s.contexts._.config.paths.olPopup || hsl_path + 'components/format/ol.popup' + hslMin,
'hs.source.Wfs': requirejs.s.contexts._.config.paths.WfsSource || hsl_path + 'components/layers/hs.source.Wfs' + hslMin,
routing: hsl_path + 'components/routing/routing' + hslMin,
tracking: hsl_path + 'components/tracking/tracking' + hslMin,
'angular-drag-and-drop-lists': nm_path + 'angular-drag-and-drop-lists/angular-drag-and-drop-lists' + hslMin,
'focusIf': nm_path + 'ng-focus-if/focusIf' + hslMin,
'update-meta': nm_path + 'angular-update-meta/dist/update-meta' + hslMin,
socketio: nm_path + 'socket.io-client/socket.io' + hslMin,
rtserver: requirejs.s.contexts._.config.paths.rtserver || hsl_path + 'components/rtserver/rtserver' + hslMin,
config_parsers: hsl_path + 'components/compositions/config_parsers' + hslMin,
layout: requirejs.s.contexts._.config.paths.layout || hsl_path + 'components/layout/layout' + hslMin
},
shim: {
'angular': {
'exports': 'angular'
},
'hammer': {
'exports': 'hammer'
},
'ngAnimate': {
deps: ['angular']
},
'ngAria': {
deps: ['angular']
},
'angular-material': {
deps: ['ngAnimate', 'ngAria', 'hammer']
},
'bottomSheetCollapsible': {
deps: ['angular-material']
},
'angular-socialshare': {
deps: ['angular']
},
'focusIf': {
deps: ['angular']
},
'angular-sanitize': {
deps: ['angular'],
},
'angular-drag-and-drop-lists': {
deps: ['angular'],
},
'update-meta': {
deps: ['angular'],
},
'angular-gettext': {
deps: ['angular'],
},
'angular-cookies': {
deps: ['angular'],
},
translations: {
deps: ['angular-gettext'],
},
translations_extended: {
deps: ['angular-gettext'],
}
},
priority: [
"angular"
]
});

define(['angular', 'angular-gettext', 'translations', 'ol', 'map', 'drag', 'api', 'proj4', 'layout'],
function(angular) {

0 comments on commit f60f7f6

Please sign in to comment.
You can’t perform that action at this time.