aboutsummaryrefslogtreecommitdiff
path: root/src/js/world-staff.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/world-staff.js')
-rw-r--r--src/js/world-staff.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/js/world-staff.js b/src/js/world-staff.js
new file mode 100644
index 0000000..618c2fd
--- /dev/null
+++ b/src/js/world-staff.js
@@ -0,0 +1,18 @@
+//Load common code that includes config, then load the app logic for this page.
+requirejs(['./slippymap'], function(_foo) {
+ requirejs.config({
+ baseUrl: '../../js/lib',
+ });
+ L.Icon.Default.imagePath = '../../img/leaflet';
+ requirejs(['app/mapfactory'], function(mkmap) {
+ var map = mkmap('content');
+ requirejs([
+ 'app/places',
+ 'json!data/staff.json',
+ 'app/position'
+ ], function(places, data, hook) {
+ map.addLayer(places(data));
+ hook(map);
+ });
+ });
+});