config.js

49 lines | 1.164 kB Blame History Raw Download
// development
// const serverConfig = {
//     baseUrl: 'http://localhost:4370/API',
//     queryParam: 'agencyName'
// };

// aws
// const serverConfig = {
//     baseUrl: 'http://agolsuborg.s6wcb4yqa4.us-west-2.elasticbeanstalk.com/API',
//     queryParam: 'agencyName'
// };

// geo
const serverConfig = {
    baseUrl: '//dev.navigator.oregon.gov/agol/suborg/Agencies/API',
    queryParam: 'agencyName'
};

// navbar links
const links = [
  {
    title: 'Oregon AGOL',
    link:  'https://geo.maps.arcgis.com/home/index.html'
  },
  {
    title: 'Docs',
    link:  'https://dev.navigator.oregon.gov/agol/docs/'
  }
];

// portal specific
const portalLinks = {
    portalUrl: "https://geo.maps.arcgis.com",
    loginUrl: "https://geo.maps.arcgis.com/home/signin.html",
    rootUrl: "https://geo.maps.arcgis.com/sharing/rest",
    detailsUrl: "https://geo.maps.arcgis.com/home/item.html"
};

// acceptable item types in gallery
const itemTypes = ['Web Mapping Application', 'Dashboard', 'StoryMap', 'Application'];

// mapping of URL to agency abbr if they differ
// special case
const urlmap = {
  //'ODOT' : 'OregonDOT'
};

export { serverConfig, links, portalLinks, itemTypes, urlmap };