1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- import ChartBar from '../../../src/chart/map/ChartChinaMap5/ChartChinaMap5.js';
- import dot1 from "./dot1.json";
- import dot2 from "./dot2.json";
- import dot3 from "./dot3.json";
- import dot4 from "./dot4.json";
- import lineData from "./line4.json";
- import lineData2 from "./line5.json";
- import testJson from './企业节点.json';
- import ycQyJSON from './异常企业节点.json';
- import ycQyJSON2 from './异常企业节点_南京.json';
- import keyJson from './keyDown.json';
-
-
- let bar = new ChartBar(document.getElementsByClassName('c1')[0], {}, true);
- bar.changeQy(true);
- window.addEventListener('resize', () => {
- bar.resize();
- });
-
- window.addEventListener('jgwc', () => {
- console.log(888);
- })
-
- let mapOpt = [{
- type: "map",
- id: "map",
- style: {
- backgroundColor: '#ffffff',
- geoColor: '#00B6FF',
- worldColor: '#0186E7',
- worldShow: true,
- lineShow: true,
- bgShow: true,
- textShow: true,
- textColor: '#ffffff',
- textOpacity: "100%",
- borderColor: '#00F6FF',
- chinaBorderColor: '#FFFFFF',
- cameraAngle: 40,
- nameSize: 20,
- }
- }];
- // console.log(dd)
- // let l2 = JSON.parse(JSON.stringify(lineData2));
- window.addEventListener('loadOver', function (e) {
- let cData = JSON.parse(JSON.stringify(dot1));
- let cData2 = JSON.parse(JSON.stringify(dot2));
- let cData3 = JSON.parse(JSON.stringify(dot3));
- let cData4 = JSON.parse(JSON.stringify(dot4));
-
- // cData.data = JSON.parse(JSON.stringify(testJson));
- console.log(cData)
- setTimeout(() => {
- bar.showAllDot();
- bar.showAllLine();
- }, 100);
- bar.setOption(cData4);
- // bar.setOption(lineData2);
- bar.changeHover(false);
- // bar.changeAniBtn(false);
- // bar.changeHover(true);
-
- bar.setOption2(testJson);
- bar.setOption3(ycQyJSON2);
- bar.setKeyDown(keyJson)
-
- bar.qyRender = true;
- // setTimeout(()=>{
- // console.log(888)
- // bar.setOption3({data:[]});
- // },3000)
-
- console.log(testJson)
- })
-
-
- // initReize();
-
- // function resizeFun() {
- // console.log("resize");
- // let w = window.innerWidth;
- // let s = w / 7680;
- // $('html').css({
- // 'transform': 'scale(' + s + ')', 'transform-origin': '0 0'
- // });
- // console.log(w, s);
- // }
-
- // function initReize() {
- // window.addEventListener("resize", function () {
- // resizeFun();
- // });
- // resizeFun();
- // }
-
|