/* *公司初始化配置 */ export const esriConfig = { 'baseUrl': 'http://221.182.8.141:8080/arcgis_js_api/v416/arcgis_js_api/library/4.16/dojo/dojo.js', 'baseCssUrl': 'http://221.182.8.141:8080/arcgis_js_api/v416/arcgis_js_api/library/4.16/esri/css/main.css', 'font_url': 'http://221.182.8.141:8080/arcgis_js_api/v416/arcgis_js_api/library/fonts/', } export const iserverConfig = { // 'baseUrl': 'http://117.174.10.73:8090/iserver/' 'baseUrl': 'http://221.182.8.141:8090/iserver/' } export const appconfig = { // 底图是否采用在线地图,true在线,false离线 'isonline': true, // 是否根据后台配置服务 'isloadServer': true, // 天地图秘钥 // 'tianMapKey': '700ea8c1e2dd873c349dc880169fd96d', 'tianMapKey': '9248d7f5b183142e4f1d5c908fba42e0', // 打印模板 'templateFolder': 'D:/xrty/template', // 地图初始视角中心 // 临时使用 // 当前地图坐标系, 用于转换 'currPRJ': 'proj47', 'currCenter': { "lon": "113.17326715436977", "lat": "29.37027846440258", "height": "50159.21860055598" }, 'initLayers': 'pipemap&&smlayergroup', // 用于配置图层树 pipemap&&group // 地图初始视角级别 'initZoom': 15, // token 'usertoken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJVc2VySUQiOiIiLCJVU0VSTkFNRSI6IiIsIlJFQUxOQU1FIjoiIiwiV0tJRCI6NDU0NCwiUkFOR0UiOiJYUlRZIiwiUkFOR0VGSUVMRCI6bnVsbCwiQ09ERSI6IlhSVFkiLCJDT05ORUNUU1RSIjoiREFUQUJBU0U9b3JjbDtORVROQU1FPTE5Mi4xNjguMi4yNDIvb3JjbDtTRVJWRVI9MTkyLjE2OC4yLjI0MjtVU0VSSUQ9dGZfeHJ0eV9nZW87UEFTU1dPUkQ9dGZfeHJ0eV9nZW87UE9SVD0xNTIxQDUxNTEvdGNwO1ZFUlNJT049c2RlLkRFRkFVTFQiLCJCb3JuVGltZSI6MCwiQXBwSUQiOm51bGx9.bMNoX6nsvNYukk47_UnT9IHGlNIWclbmiXTj3ak1i5KuF5LGexfwV7TwF80nP08GEPaNwScgk7lbJkRHcqtT8w', } export function setParams (xzq) { console.log('设置坐标') const parmas = { '宜昌': { proj: 'proj46', center: { "lon": "111.291353", "lat": "30.705687", "height": "30159.21860055598" } }, '岳阳': { proj: 'proj47', center: { "lon": "113.17326715436977", "lat": "29.37027846440258", "height": "30159.21860055598" } }, } let { proj, center } = parmas[xzq] appconfig.currCenter = center appconfig.currPRJ = proj //AppX.appConfig.initPosition = center }