Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const URL_WAYBACK_IMAGERY_SELECT = URL_WAYBACK_IMAGERY_BASE + '?f=json';
const URL_WAYBACK_AGOL_ITEMS_LOOKUP_BASE = 'https://s3-us-west-2.amazonaws.com/config.maptiles.arcgis.com';
const URL_WAYBACK_AGOL_ITEMS_LOOKUP = tierInfo.devMode ? URL_WAYBACK_AGOL_ITEMS_LOOKUP_BASE + '/dev/waybackconfig.json' : URL_WAYBACK_AGOL_ITEMS_LOOKUP_BASE + '/waybackconfig.json';
const URL_PORTAL = tierInfo.devMode ? 'https://devext.arcgis.com' : 'https://www.arcgis.com';
const URL_CUSTOMIZED_PORTAL = tierInfo.portal || null;
const KEY_RELEASE_NUM = 'M';
const KEY_RELEASE_NAME = 'Name';
const DOM_ID_MAP_CONTAINER = 'mapDiv';
const DOM_ID_BARCHART = 'barChartDiv';
const DOM_ID_ITEMLIST = 'listCardsWrap';
const MODAL_ID_UPLAOD_WEBMAP = 'web-map-loading-indicator';
// before using esri-loader, tell it to use the promise library
esriLoader.utils.Promise = Promise;
const esriLoaderOptions = {
// url: 'https://js.arcgis.com/4.10'
};
$(window).on('load', function() {
esriLoader.loadModules([
'esri/views/MapView',
'esri/WebMap',
// "esri/geometry/Extent",
"esri/geometry/Point",
// "esri/Graphic",
"esri/layers/BaseTileLayer",
"esri/request",
"esri/core/watchUtils",
init () {
this._super(...arguments);
// have esriLoader use Ember's RSVP promise
esriLoader.utils.Promise = EmberPromise;
},