a1207172813 opened a new issue #10793: 将 北京市公交线路特效图 中的北京市数据替换为武汉市 为什么只有线路 而没有动态的效果了 URL: https://github.com/apache/incubator-echarts/issues/10793 ### Version 4.2.1 ### Steps to reproduce <!DOCTYPE html> <html style="height: 100%"> <head> <meta charset="UTF-8"> <script src="js/echarts.min.js"></script> <title>wuhan</title> </head> <body style="height: 100%; margin: 0"> <div id="container" style="height: 100%"></div> <script type="text/javascript" src="js/jquery-3.3.1.js"></script> <script src="http://api.map.baidu.com/api?v=2.0&ak=oG30FNeuaTxrpeQIbuOMpyXPmWAVxDOp"></script> <script type="text/javascript" src="js/bmap.js"></script> <script type="text/javascript"> var dom = document.getElementById("container"); var myChart = echarts.init(dom); var app = {}; option = null; app.title = '武汉公交路线 - 线特效'; $.getJSON('lines-bus-wuhan.json', function(data) { var hStep = 300 / (data.length - 1); var busLines = [].concat.apply([], data.map(function (busLine, idx) { var prevPt; var points = []; for (var i = 0; i < busLine.length; i = 2) { var pt = [busLine[i], busLine[i 1]]; if (i > 0) { pt = [ prevPt[0] pt[0], prevPt[1] pt[1] ]; } prevPt = pt; points.push([pt[0] / 1e4, pt[1] / 1e4]); } return { coords: points, lineStyle: { normal: { color: echarts.color.modifyHSL('#5A94DF', Math.round(hStep * idx)) } } }; })); myChart.setOption(option = { bmap: { center: [114.321317, 30.5298428], zoom: 12, roam: true, mapStyle: {
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
