4
0

app.js 759 B

12345678910111213141516171819202122232425
  1. require.config({
  2. baseUrl: "lib",
  3. paths: {
  4. "leaflet": "../bower_components/leaflet/dist/leaflet",
  5. "leaflet.label": "../bower_components/Leaflet.label/dist/leaflet.label",
  6. "chroma-js": "../bower_components/chroma-js/chroma.min",
  7. "moment": "../bower_components/moment/min/moment-with-locales.min",
  8. "tablesort": "../bower_components/tablesort/tablesort.min",
  9. "tablesort.numeric": "../bower_components/tablesort/src/sorts/tablesort.numeric",
  10. "d3": "../bower_components/d3/d3.min",
  11. "helper": "../helper"
  12. },
  13. shim: {
  14. "leaflet.label": ["leaflet"],
  15. "tablesort": {
  16. exports: "Tablesort"
  17. },
  18. "tablesort.numeric": ["tablesort"],
  19. "helper": []
  20. }
  21. })
  22. require(["main", "helper"], function (main) {
  23. main()
  24. })