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