Reusable Accessible Mapping Platform

API Docs for: 3.0.0
Show:

File: src\js\RAMP\Modules\globalStorage.js

  1. /*global define */
  2.  
  3. //the "use strict" forces the ECMA Script 5 interpretation of the code
  4.  
  5. /**
  6. *
  7. *
  8. * @module RAMP
  9. * @submodule GlobalStorage
  10. *
  11. */
  12.  
  13. /**
  14. * GlobalStorage class is used to store variables and exchange them between different modules. Each module has the ability to add variables to the global storage and retrieve them as needed.
  15. *
  16. * @class GlobalStorage
  17. */
  18.  
  19. define([],
  20. function () {
  21. "use strict";
  22. return {
  23. /**
  24. * Returns a URL that points to the application configuration (JSON format) if it's hosted on a web service.
  25. * This is not required if the application has a JSON config file in the website's folder
  26. * @property getConfigUrl
  27. * @type Object
  28. */
  29. getConfigUrl: function () {
  30. return "http://sncr01wbingsdv1.ncr.int.ec.gc.ca/ECDMP_Service/";
  31. },
  32.  
  33. layerType: {
  34. Basemap: "Basemap",
  35. WMS: "WMS",
  36. BoundingBox: "Bounding Box",
  37. Feature: "Feature Layer",
  38. Static: "Static",
  39. Highlight: "Highlight",
  40. Hoverlight: "Hoverlight",
  41. Zoomlight: "Zoomlight"
  42. }
  43. };
  44. });