diff options
-rw-r--r-- | src/js/world-staff.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/js/world-staff.js b/src/js/world-staff.js index 2181881..2d390f5 100644 --- a/src/js/world-staff.js +++ b/src/js/world-staff.js @@ -1,10 +1,11 @@ //Load common code that includes config, then load the app logic for this page. requirejs(['./slippymap'], function(_foo) { + var depth = '../../'; requirejs.config({ - baseUrl: '../../js/lib', + baseUrl: depth + 'js/lib', }); requirejs(['app/mapfactory'], function(mkmap) { - L.Icon.Default.imagePath = '../../img/leaflet/'; + L.Icon.Default.imagePath = depth + 'img/leaflet/'; var map = mkmap('content'); requirejs([ 'app/places', |