aboutsummaryrefslogtreecommitdiff
path: root/src/js/world-staff.js
blob: 2d390f5f2409f59b11ae86520e82387d793474bd (plain)
  1. //Load common code that includes config, then load the app logic for this page.
  2. requirejs(['./slippymap'], function(_foo) {
  3. var depth = '../../';
  4. requirejs.config({
  5. baseUrl: depth + 'js/lib',
  6. });
  7. requirejs(['app/mapfactory'], function(mkmap) {
  8. L.Icon.Default.imagePath = depth + 'img/leaflet/';
  9. var map = mkmap('content');
  10. requirejs([
  11. 'app/places',
  12. 'json!data/staff.json',
  13. 'app/position'
  14. ], function(places, data, hook) {
  15. map.addLayer(places(data));
  16. hook(map);
  17. });
  18. });
  19. });