forked from p51497208/geo_info_platform
update style
This commit is contained in:
parent
7e814a1b9d
commit
d32e74b8d9
|
@ -168,7 +168,7 @@
|
||||||
.left_echart{
|
.left_echart{
|
||||||
position: fixed !important;
|
position: fixed !important;
|
||||||
height: 60%;
|
height: 60%;
|
||||||
left: 0;
|
left: -100%;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 400px;
|
width: 400px;
|
||||||
z-index: 50;
|
z-index: 50;
|
||||||
|
|
10
js/map.js
10
js/map.js
|
@ -659,10 +659,12 @@ myChart.setOption(option);
|
||||||
myChart.on('brushselected', renderBrushed);
|
myChart.on('brushselected', renderBrushed);
|
||||||
// myChart.on('focusnodeadjacency', renderFocusNodeJacency);
|
// myChart.on('focusnodeadjacency', renderFocusNodeJacency);
|
||||||
myChart.on('click', function (params) {
|
myChart.on('click', function (params) {
|
||||||
// renderFocusNodeJacency(params);
|
$('.fixed-left').css({left: 0}).addClass('collpased');
|
||||||
// renderBrushed();
|
// $('.screen-btn').css({left: '360px'});
|
||||||
// renderBrushed(params);
|
if (!$('.fixed-left').hasClass('active')) {
|
||||||
console.log(params);
|
$('.screen-btn').css({left: '360px'});
|
||||||
|
}
|
||||||
|
$('.collpase-icon').addClass('icon-shouqi').removeClass('icon-zhankai');
|
||||||
const {seriesId, seriesIndex, seriesName, dataIndex, data, value } = params;
|
const {seriesId, seriesIndex, seriesName, dataIndex, data, value } = params;
|
||||||
myChart.dispatchAction({
|
myChart.dispatchAction({
|
||||||
type: 'focusNodeAdjacency',
|
type: 'focusNodeAdjacency',
|
||||||
|
|
12
map.html
12
map.html
|
@ -163,12 +163,12 @@
|
||||||
|
|
||||||
// 根据更新后的option重新画图
|
// 根据更新后的option重新画图
|
||||||
function redrawGraph() {
|
function redrawGraph() {
|
||||||
$('.fixed-left').css({left: 0}).addClass('collpased');
|
// $('.fixed-left').css({left: 0}).addClass('collpased');
|
||||||
// $('.screen-btn').css({left: '360px'});
|
// // $('.screen-btn').css({left: '360px'});
|
||||||
if (!$('.fixed-left').hasClass('active')) {
|
// if (!$('.fixed-left').hasClass('active')) {
|
||||||
$('.screen-btn').css({left: '360px'});
|
// $('.screen-btn').css({left: '360px'});
|
||||||
}
|
// }
|
||||||
$('.collpase-icon').addClass('icon-shouqi').removeClass('icon-zhankai');
|
// $('.collpase-icon').addClass('icon-shouqi').removeClass('icon-zhankai');
|
||||||
optionGraph.series[0].data = Object.values(currentGraph.nodes);
|
optionGraph.series[0].data = Object.values(currentGraph.nodes);
|
||||||
optionGraph.series[0].links = Object.values(currentGraph.links);
|
optionGraph.series[0].links = Object.values(currentGraph.links);
|
||||||
myChartGraph.setOption(optionGraph);
|
myChartGraph.setOption(optionGraph);
|
||||||
|
|
Loading…
Reference in New Issue