83 lines
1.6 KiB
TypeScript
83 lines
1.6 KiB
TypeScript
|
|
import { store } from './models/store'
|
||
|
|
|
||
|
|
const address = localStorage.getItem('address') ? localStorage.getItem('address') : 'jianshi';
|
||
|
|
|
||
|
|
// @ts-ignore
|
||
|
|
const extent: [number, number, number, number] = [139.5514, 30.1131, 110.2219, 30.9030];
|
||
|
|
const ADCD6 = address === "jianshi" ? "422822" : "420529";
|
||
|
|
const ADCD12 = ADCD6 + '000000';
|
||
|
|
const ADCD = ADCD6 + '000000000';
|
||
|
|
const ADNM = address === 'jianshi' ? '建始县' : '五峰县'
|
||
|
|
|
||
|
|
const SHYJ_ADCD = ADCD;
|
||
|
|
|
||
|
|
const TOKEN_VARIFY = 'http://220.203.2.194:20042/sys/loginByToken';
|
||
|
|
const NOAUTH_REDIRECT = 'http://220.203.2.194:20046/user/login?redirect=';
|
||
|
|
|
||
|
|
/*const drpColors = [
|
||
|
|
[255, 255, 255],
|
||
|
|
[189, 238, 154],
|
||
|
|
[86, 183, 100],
|
||
|
|
[109, 195, 249],
|
||
|
|
[29, 26, 205],
|
||
|
|
[235, 32, 245],
|
||
|
|
[121, 28, 78],
|
||
|
|
];*/
|
||
|
|
|
||
|
|
const drpColors = [
|
||
|
|
// [173, 182, 217],
|
||
|
|
// [189, 239, 154],
|
||
|
|
// [89, 182, 102],
|
||
|
|
// [110, 194, 250],
|
||
|
|
// [30, 26, 202],
|
||
|
|
// [235, 32, 247],
|
||
|
|
// [120, 29, 79],
|
||
|
|
[0, 0, 0],//0
|
||
|
|
[167, 240, 143],//0-10
|
||
|
|
[64, 215, 255],//10-25
|
||
|
|
[32, 143, 238],//25-50
|
||
|
|
[85, 86, 255],//50-100
|
||
|
|
[191, 90, 252],//100-250
|
||
|
|
[246, 66, 66],//250
|
||
|
|
];
|
||
|
|
|
||
|
|
|
||
|
|
export const config = {
|
||
|
|
address,
|
||
|
|
title: '',
|
||
|
|
extent,
|
||
|
|
ADCD,
|
||
|
|
ADCD6,
|
||
|
|
ADCD12,
|
||
|
|
SHYJ_ADCD,
|
||
|
|
ADNM,
|
||
|
|
|
||
|
|
/*commonBreaks: [
|
||
|
|
0, 0.1, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 120, 140, 160, 180, 200, 99999
|
||
|
|
],*/
|
||
|
|
|
||
|
|
commonBreaks: [
|
||
|
|
0, 0.1, 10, 25, 50, 100, 250, 99999
|
||
|
|
],
|
||
|
|
|
||
|
|
pubapi: 'https://owrsvr.cloudowr.cn/pubapi',
|
||
|
|
|
||
|
|
transitionDuaration: 500,
|
||
|
|
|
||
|
|
initalExtent: [[109.5514, 30.1131 - 0.05], [110.2219, 30.9030 - 0.05]],
|
||
|
|
|
||
|
|
TOKEN_VARIFY,
|
||
|
|
NOAUTH_REDIRECT,
|
||
|
|
|
||
|
|
drpColors,
|
||
|
|
|
||
|
|
homePitch: 60,
|
||
|
|
|
||
|
|
poiPitch: 60,
|
||
|
|
|
||
|
|
picRealSize: {
|
||
|
|
w: 1280 / 2,
|
||
|
|
h: 720 / 2
|
||
|
|
},
|
||
|
|
};
|