BMap.html 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="description" content="ECharts">
  8. <meta name="author" content="kener.linfeng@gmail.com">
  9. <title>ECharts · Example</title>
  10. <link rel="shortcut icon" href="../../../doc/asset/ico/favicon.png">
  11. <link href="../../../doc/asset/css/font-awesome.min.css" rel="stylesheet">
  12. <link href="../../../doc/asset/css/bootstrap.css" rel="stylesheet">
  13. <link href="../../../doc/asset/css/carousel.css" rel="stylesheet">
  14. <link href="../../../doc/asset/css/echartsHome.css" rel="stylesheet">
  15. <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  16. <!--[if lt IE 9]>
  17. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  18. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  19. <![endif]-->
  20. <script src="../../../doc/example/www/js/echarts.js"></script>
  21. <script src="../../../doc/asset/js/codemirror.js"></script>
  22. <script src="../../../doc/asset/js/javascript.js"></script>
  23. <link href="../../../doc/asset/css/codemirror.css" rel="stylesheet">
  24. <link href="../../../doc/asset/css/monokai.css" rel="stylesheet">
  25. <style type="text/css">
  26. .CodeMirror {
  27. height: 550px;
  28. }
  29. </style>
  30. </head>
  31. <body>
  32. <!-- Fixed navbar -->
  33. <div class="navbar navbar-default navbar-fixed-top" role="navigation" id="head"></div>
  34. <div class="container-fluid">
  35. <div class="row-fluid example">
  36. <div id="sidebar-code" class="col-md-4">
  37. <div class="well sidebar-nav">
  38. <div class="nav-header"><a href="#" onclick="autoResize()" class="glyphicon glyphicon-resize-full" id ="icon-resize" ></a>option</div>
  39. <textarea id="code" name="code">
  40. // 初始化地图
  41. var BMapExt = new BMapExtension(domMain, BMap, require('echarts'), require('zrender'));
  42. var map = BMapExt.getMap();
  43. var container = BMapExt.getEchartsContainer();
  44. var point = new BMap.Point(startPoint.x, startPoint.y);
  45. map.centerAndZoom(point, 5);
  46. map.enableScrollWheelZoom(true);
  47. option = {
  48. color: ['gold','aqua','lime'],
  49. title : {
  50. text: '模拟迁徙',
  51. subtext:'数据纯属虚构',
  52. x:'right'
  53. },
  54. tooltip : {
  55. trigger: 'item',
  56. formatter: function (v) {
  57. return v[1].replace(':', ' > ');
  58. }
  59. },
  60. legend: {
  61. orient: 'vertical',
  62. x:'left',
  63. data:['北京', '上海', '广州'],
  64. selectedMode: 'single',
  65. selected:{
  66. '上海' : false,
  67. '广州' : false
  68. }
  69. },
  70. toolbox: {
  71. show : true,
  72. orient : 'vertical',
  73. x: 'right',
  74. y: 'center',
  75. feature : {
  76. mark : {show: true},
  77. dataView : {show: true, readOnly: false},
  78. restore : {show: true},
  79. saveAsImage : {show: true}
  80. }
  81. },
  82. dataRange: {
  83. min : 0,
  84. max : 100,
  85. y: '60%',
  86. calculable : true,
  87. color: ['#ff3333', 'orange', 'yellow','lime','aqua']
  88. },
  89. series : [
  90. {
  91. name:'北京',
  92. type:'map',
  93. mapType: 'none',
  94. data:[],
  95. geoCoord: {
  96. '上海': [121.4648,31.2891],
  97. '东莞': [113.8953,22.901],
  98. '东营': [118.7073,37.5513],
  99. '中山': [113.4229,22.478],
  100. '临汾': [111.4783,36.1615],
  101. '临沂': [118.3118,35.2936],
  102. '丹东': [124.541,40.4242],
  103. '丽水': [119.5642,28.1854],
  104. '乌鲁木齐': [87.9236,43.5883],
  105. '佛山': [112.8955,23.1097],
  106. '保定': [115.0488,39.0948],
  107. '兰州': [103.5901,36.3043],
  108. '包头': [110.3467,41.4899],
  109. '北京': [116.4551,40.2539],
  110. '北海': [109.314,21.6211],
  111. '南京': [118.8062,31.9208],
  112. '南宁': [108.479,23.1152],
  113. '南昌': [116.0046,28.6633],
  114. '南通': [121.1023,32.1625],
  115. '厦门': [118.1689,24.6478],
  116. '台州': [121.1353,28.6688],
  117. '合肥': [117.29,32.0581],
  118. '呼和浩特': [111.4124,40.4901],
  119. '咸阳': [108.4131,34.8706],
  120. '哈尔滨': [127.9688,45.368],
  121. '唐山': [118.4766,39.6826],
  122. '嘉兴': [120.9155,30.6354],
  123. '大同': [113.7854,39.8035],
  124. '大连': [122.2229,39.4409],
  125. '天津': [117.4219,39.4189],
  126. '太原': [112.3352,37.9413],
  127. '威海': [121.9482,37.1393],
  128. '宁波': [121.5967,29.6466],
  129. '宝鸡': [107.1826,34.3433],
  130. '宿迁': [118.5535,33.7775],
  131. '常州': [119.4543,31.5582],
  132. '广州': [113.5107,23.2196],
  133. '廊坊': [116.521,39.0509],
  134. '延安': [109.1052,36.4252],
  135. '张家口': [115.1477,40.8527],
  136. '徐州': [117.5208,34.3268],
  137. '德州': [116.6858,37.2107],
  138. '惠州': [114.6204,23.1647],
  139. '成都': [103.9526,30.7617],
  140. '扬州': [119.4653,32.8162],
  141. '承德': [117.5757,41.4075],
  142. '拉萨': [91.1865,30.1465],
  143. '无锡': [120.3442,31.5527],
  144. '日照': [119.2786,35.5023],
  145. '昆明': [102.9199,25.4663],
  146. '杭州': [119.5313,29.8773],
  147. '枣庄': [117.323,34.8926],
  148. '柳州': [109.3799,24.9774],
  149. '株洲': [113.5327,27.0319],
  150. '武汉': [114.3896,30.6628],
  151. '汕头': [117.1692,23.3405],
  152. '江门': [112.6318,22.1484],
  153. '沈阳': [123.1238,42.1216],
  154. '沧州': [116.8286,38.2104],
  155. '河源': [114.917,23.9722],
  156. '泉州': [118.3228,25.1147],
  157. '泰安': [117.0264,36.0516],
  158. '泰州': [120.0586,32.5525],
  159. '济南': [117.1582,36.8701],
  160. '济宁': [116.8286,35.3375],
  161. '海口': [110.3893,19.8516],
  162. '淄博': [118.0371,36.6064],
  163. '淮安': [118.927,33.4039],
  164. '深圳': [114.5435,22.5439],
  165. '清远': [112.9175,24.3292],
  166. '温州': [120.498,27.8119],
  167. '渭南': [109.7864,35.0299],
  168. '湖州': [119.8608,30.7782],
  169. '湘潭': [112.5439,27.7075],
  170. '滨州': [117.8174,37.4963],
  171. '潍坊': [119.0918,36.524],
  172. '烟台': [120.7397,37.5128],
  173. '玉溪': [101.9312,23.8898],
  174. '珠海': [113.7305,22.1155],
  175. '盐城': [120.2234,33.5577],
  176. '盘锦': [121.9482,41.0449],
  177. '石家庄': [114.4995,38.1006],
  178. '福州': [119.4543,25.9222],
  179. '秦皇岛': [119.2126,40.0232],
  180. '绍兴': [120.564,29.7565],
  181. '聊城': [115.9167,36.4032],
  182. '肇庆': [112.1265,23.5822],
  183. '舟山': [122.2559,30.2234],
  184. '苏州': [120.6519,31.3989],
  185. '莱芜': [117.6526,36.2714],
  186. '菏泽': [115.6201,35.2057],
  187. '营口': [122.4316,40.4297],
  188. '葫芦岛': [120.1575,40.578],
  189. '衡水': [115.8838,37.7161],
  190. '衢州': [118.6853,28.8666],
  191. '西宁': [101.4038,36.8207],
  192. '西安': [109.1162,34.2004],
  193. '贵阳': [106.6992,26.7682],
  194. '连云港': [119.1248,34.552],
  195. '邢台': [114.8071,37.2821],
  196. '邯郸': [114.4775,36.535],
  197. '郑州': [113.4668,34.6234],
  198. '鄂尔多斯': [108.9734,39.2487],
  199. '重庆': [107.7539,30.1904],
  200. '金华': [120.0037,29.1028],
  201. '铜川': [109.0393,35.1947],
  202. '银川': [106.3586,38.1775],
  203. '镇江': [119.4763,31.9702],
  204. '长春': [125.8154,44.2584],
  205. '长沙': [113.0823,28.2568],
  206. '长治': [112.8625,36.4746],
  207. '阳泉': [113.4778,38.0951],
  208. '青岛': [120.4651,36.3373],
  209. '韶关': [113.7964,24.7028]
  210. },
  211. markLine : {
  212. smooth:true,
  213. effect : {
  214. show: true,
  215. scaleSize: 1,
  216. period: 30,
  217. color: '#fff',
  218. shadowBlur: 10
  219. },
  220. itemStyle : {
  221. normal: {
  222. borderWidth:1,
  223. lineStyle: {
  224. type: 'solid',
  225. shadowBlur: 10
  226. }
  227. }
  228. },
  229. data : [
  230. [{name:'北京'}, {name:'上海',value:95}],
  231. [{name:'北京'}, {name:'广州',value:90}],
  232. [{name:'北京'}, {name:'大连',value:80}],
  233. [{name:'北京'}, {name:'南宁',value:70}],
  234. [{name:'北京'}, {name:'南昌',value:60}],
  235. [{name:'北京'}, {name:'拉萨',value:50}],
  236. [{name:'北京'}, {name:'长春',value:40}],
  237. [{name:'北京'}, {name:'包头',value:30}],
  238. [{name:'北京'}, {name:'重庆',value:20}],
  239. [{name:'北京'}, {name:'常州',value:10}]
  240. ]
  241. },
  242. markPoint : {
  243. symbol:'emptyCircle',
  244. symbolSize : function (v){
  245. return 10 + v/10
  246. },
  247. effect : {
  248. show: true,
  249. shadowBlur : 0
  250. },
  251. itemStyle:{
  252. normal:{
  253. label:{show:false}
  254. }
  255. },
  256. data : [
  257. {name:'上海',value:95},
  258. {name:'广州',value:90},
  259. {name:'大连',value:80},
  260. {name:'南宁',value:70},
  261. {name:'南昌',value:60},
  262. {name:'拉萨',value:50},
  263. {name:'长春',value:40},
  264. {name:'包头',value:30},
  265. {name:'重庆',value:20},
  266. {name:'常州',value:10}
  267. ]
  268. }
  269. },
  270. {
  271. name:'上海',
  272. type:'map',
  273. mapType: 'none',
  274. data:[],
  275. markLine : {
  276. smooth:true,
  277. effect : {
  278. show: true,
  279. scaleSize: 1,
  280. period: 30,
  281. color: '#fff',
  282. shadowBlur: 10
  283. },
  284. itemStyle : {
  285. normal: {
  286. borderWidth:1,
  287. lineStyle: {
  288. type: 'solid',
  289. shadowBlur: 10
  290. }
  291. }
  292. },
  293. data : [
  294. [{name:'上海'},{name:'包头',value:95}],
  295. [{name:'上海'},{name:'昆明',value:90}],
  296. [{name:'上海'},{name:'广州',value:80}],
  297. [{name:'上海'},{name:'郑州',value:70}],
  298. [{name:'上海'},{name:'长春',value:60}],
  299. [{name:'上海'},{name:'重庆',value:50}],
  300. [{name:'上海'},{name:'长沙',value:40}],
  301. [{name:'上海'},{name:'北京',value:30}],
  302. [{name:'上海'},{name:'丹东',value:20}],
  303. [{name:'上海'},{name:'大连',value:10}]
  304. ]
  305. },
  306. markPoint : {
  307. symbol:'emptyCircle',
  308. symbolSize : function (v){
  309. return 10 + v/10
  310. },
  311. effect : {
  312. show: true,
  313. shadowBlur : 0
  314. },
  315. itemStyle:{
  316. normal:{
  317. label:{show:false}
  318. }
  319. },
  320. data : [
  321. {name:'包头',value:95},
  322. {name:'昆明',value:90},
  323. {name:'广州',value:80},
  324. {name:'郑州',value:70},
  325. {name:'长春',value:60},
  326. {name:'重庆',value:50},
  327. {name:'长沙',value:40},
  328. {name:'北京',value:30},
  329. {name:'丹东',value:20},
  330. {name:'大连',value:10}
  331. ]
  332. }
  333. },
  334. {
  335. name:'广州',
  336. type:'map',
  337. mapType: 'none',
  338. data:[],
  339. markLine : {
  340. smooth:true,
  341. effect : {
  342. show: true,
  343. scaleSize: 1,
  344. period: 30,
  345. color: '#fff',
  346. shadowBlur: 10
  347. },
  348. itemStyle : {
  349. normal: {
  350. borderWidth:1,
  351. lineStyle: {
  352. type: 'solid',
  353. shadowBlur: 10
  354. }
  355. }
  356. },
  357. data : [
  358. [{name:'广州'},{name:'福州',value:95}],
  359. [{name:'广州'},{name:'太原',value:90}],
  360. [{name:'广州'},{name:'长春',value:80}],
  361. [{name:'广州'},{name:'重庆',value:70}],
  362. [{name:'广州'},{name:'西安',value:60}],
  363. [{name:'广州'},{name:'成都',value:50}],
  364. [{name:'广州'},{name:'常州',value:40}],
  365. [{name:'广州'},{name:'北京',value:30}],
  366. [{name:'广州'},{name:'北海',value:20}],
  367. [{name:'广州'},{name:'海口',value:10}]
  368. ]
  369. },
  370. markPoint : {
  371. symbol:'emptyCircle',
  372. symbolSize : function (v){
  373. return 10 + v/10
  374. },
  375. effect : {
  376. show: true,
  377. shadowBlur : 0
  378. },
  379. itemStyle:{
  380. normal:{
  381. label:{show:false}
  382. }
  383. },
  384. data : [
  385. {name:'福州',value:95},
  386. {name:'太原',value:90},
  387. {name:'长春',value:80},
  388. {name:'重庆',value:70},
  389. {name:'西安',value:60},
  390. {name:'成都',value:50},
  391. {name:'常州',value:40},
  392. {name:'北京',value:30},
  393. {name:'北海',value:20},
  394. {name:'海口',value:10}
  395. ]
  396. }
  397. },
  398. {
  399. name:'全国',
  400. type:'map',
  401. mapType: 'none',
  402. data:[],
  403. markLine : {
  404. smooth:true,
  405. symbol: ['none', 'circle'],
  406. symbolSize : 1,
  407. itemStyle : {
  408. normal: {
  409. color:'#fff',
  410. borderWidth:1,
  411. borderColor:'rgba(30,144,255,0.5)'
  412. }
  413. },
  414. data : [
  415. [{name:'北京'},{name:'包头'}],
  416. [{name:'北京'},{name:'北海'}],
  417. [{name:'北京'},{name:'广州'}],
  418. [{name:'北京'},{name:'郑州'}],
  419. [{name:'北京'},{name:'长春'}],
  420. [{name:'北京'},{name:'长治'}],
  421. [{name:'北京'},{name:'重庆'}],
  422. [{name:'北京'},{name:'长沙'}],
  423. [{name:'北京'},{name:'成都'}],
  424. [{name:'北京'},{name:'常州'}],
  425. [{name:'北京'},{name:'丹东'}],
  426. [{name:'北京'},{name:'大连'}],
  427. [{name:'北京'},{name:'东营'}],
  428. [{name:'北京'},{name:'延安'}],
  429. [{name:'北京'},{name:'福州'}],
  430. [{name:'北京'},{name:'海口'}],
  431. [{name:'北京'},{name:'呼和浩特'}],
  432. [{name:'北京'},{name:'合肥'}],
  433. [{name:'北京'},{name:'杭州'}],
  434. [{name:'北京'},{name:'哈尔滨'}],
  435. [{name:'北京'},{name:'舟山'}],
  436. [{name:'北京'},{name:'银川'}],
  437. [{name:'北京'},{name:'衢州'}],
  438. [{name:'北京'},{name:'南昌'}],
  439. [{name:'北京'},{name:'昆明'}],
  440. [{name:'北京'},{name:'贵阳'}],
  441. [{name:'北京'},{name:'兰州'}],
  442. [{name:'北京'},{name:'拉萨'}],
  443. [{name:'北京'},{name:'连云港'}],
  444. [{name:'北京'},{name:'临沂'}],
  445. [{name:'北京'},{name:'柳州'}],
  446. [{name:'北京'},{name:'宁波'}],
  447. [{name:'北京'},{name:'南京'}],
  448. [{name:'北京'},{name:'南宁'}],
  449. [{name:'北京'},{name:'南通'}],
  450. [{name:'北京'},{name:'上海'}],
  451. [{name:'北京'},{name:'沈阳'}],
  452. [{name:'北京'},{name:'西安'}],
  453. [{name:'北京'},{name:'汕头'}],
  454. [{name:'北京'},{name:'深圳'}],
  455. [{name:'北京'},{name:'青岛'}],
  456. [{name:'北京'},{name:'济南'}],
  457. [{name:'北京'},{name:'太原'}],
  458. [{name:'北京'},{name:'乌鲁木齐'}],
  459. [{name:'北京'},{name:'潍坊'}],
  460. [{name:'北京'},{name:'威海'}],
  461. [{name:'北京'},{name:'温州'}],
  462. [{name:'北京'},{name:'武汉'}],
  463. [{name:'北京'},{name:'无锡'}],
  464. [{name:'北京'},{name:'厦门'}],
  465. [{name:'北京'},{name:'西宁'}],
  466. [{name:'北京'},{name:'徐州'}],
  467. [{name:'北京'},{name:'烟台'}],
  468. [{name:'北京'},{name:'盐城'}],
  469. [{name:'北京'},{name:'珠海'}],
  470. [{name:'上海'},{name:'包头'}],
  471. [{name:'上海'},{name:'北海'}],
  472. [{name:'上海'},{name:'广州'}],
  473. [{name:'上海'},{name:'郑州'}],
  474. [{name:'上海'},{name:'长春'}],
  475. [{name:'上海'},{name:'重庆'}],
  476. [{name:'上海'},{name:'长沙'}],
  477. [{name:'上海'},{name:'成都'}],
  478. [{name:'上海'},{name:'丹东'}],
  479. [{name:'上海'},{name:'大连'}],
  480. [{name:'上海'},{name:'福州'}],
  481. [{name:'上海'},{name:'海口'}],
  482. [{name:'上海'},{name:'呼和浩特'}],
  483. [{name:'上海'},{name:'合肥'}],
  484. [{name:'上海'},{name:'哈尔滨'}],
  485. [{name:'上海'},{name:'舟山'}],
  486. [{name:'上海'},{name:'银川'}],
  487. [{name:'上海'},{name:'南昌'}],
  488. [{name:'上海'},{name:'昆明'}],
  489. [{name:'上海'},{name:'贵阳'}],
  490. [{name:'上海'},{name:'兰州'}],
  491. [{name:'上海'},{name:'拉萨'}],
  492. [{name:'上海'},{name:'连云港'}],
  493. [{name:'上海'},{name:'临沂'}],
  494. [{name:'上海'},{name:'柳州'}],
  495. [{name:'上海'},{name:'宁波'}],
  496. [{name:'上海'},{name:'南宁'}],
  497. [{name:'上海'},{name:'北京'}],
  498. [{name:'上海'},{name:'沈阳'}],
  499. [{name:'上海'},{name:'秦皇岛'}],
  500. [{name:'上海'},{name:'西安'}],
  501. [{name:'上海'},{name:'石家庄'}],
  502. [{name:'上海'},{name:'汕头'}],
  503. [{name:'上海'},{name:'深圳'}],
  504. [{name:'上海'},{name:'青岛'}],
  505. [{name:'上海'},{name:'济南'}],
  506. [{name:'上海'},{name:'天津'}],
  507. [{name:'上海'},{name:'太原'}],
  508. [{name:'上海'},{name:'乌鲁木齐'}],
  509. [{name:'上海'},{name:'潍坊'}],
  510. [{name:'上海'},{name:'威海'}],
  511. [{name:'上海'},{name:'温州'}],
  512. [{name:'上海'},{name:'武汉'}],
  513. [{name:'上海'},{name:'厦门'}],
  514. [{name:'上海'},{name:'西宁'}],
  515. [{name:'上海'},{name:'徐州'}],
  516. [{name:'上海'},{name:'烟台'}],
  517. [{name:'上海'},{name:'珠海'}],
  518. [{name:'广州'},{name:'北海'}],
  519. [{name:'广州'},{name:'郑州'}],
  520. [{name:'广州'},{name:'长春'}],
  521. [{name:'广州'},{name:'重庆'}],
  522. [{name:'广州'},{name:'长沙'}],
  523. [{name:'广州'},{name:'成都'}],
  524. [{name:'广州'},{name:'常州'}],
  525. [{name:'广州'},{name:'大连'}],
  526. [{name:'广州'},{name:'福州'}],
  527. [{name:'广州'},{name:'海口'}],
  528. [{name:'广州'},{name:'呼和浩特'}],
  529. [{name:'广州'},{name:'合肥'}],
  530. [{name:'广州'},{name:'杭州'}],
  531. [{name:'广州'},{name:'哈尔滨'}],
  532. [{name:'广州'},{name:'舟山'}],
  533. [{name:'广州'},{name:'银川'}],
  534. [{name:'广州'},{name:'南昌'}],
  535. [{name:'广州'},{name:'昆明'}],
  536. [{name:'广州'},{name:'贵阳'}],
  537. [{name:'广州'},{name:'兰州'}],
  538. [{name:'广州'},{name:'拉萨'}],
  539. [{name:'广州'},{name:'连云港'}],
  540. [{name:'广州'},{name:'临沂'}],
  541. [{name:'广州'},{name:'柳州'}],
  542. [{name:'广州'},{name:'宁波'}],
  543. [{name:'广州'},{name:'南京'}],
  544. [{name:'广州'},{name:'南宁'}],
  545. [{name:'广州'},{name:'南通'}],
  546. [{name:'广州'},{name:'北京'}],
  547. [{name:'广州'},{name:'上海'}],
  548. [{name:'广州'},{name:'沈阳'}],
  549. [{name:'广州'},{name:'西安'}],
  550. [{name:'广州'},{name:'石家庄'}],
  551. [{name:'广州'},{name:'汕头'}],
  552. [{name:'广州'},{name:'青岛'}],
  553. [{name:'广州'},{name:'济南'}],
  554. [{name:'广州'},{name:'天津'}],
  555. [{name:'广州'},{name:'太原'}],
  556. [{name:'广州'},{name:'乌鲁木齐'}],
  557. [{name:'广州'},{name:'温州'}],
  558. [{name:'广州'},{name:'武汉'}],
  559. [{name:'广州'},{name:'无锡'}],
  560. [{name:'广州'},{name:'厦门'}],
  561. [{name:'广州'},{name:'西宁'}],
  562. [{name:'广州'},{name:'徐州'}],
  563. [{name:'广州'},{name:'烟台'}],
  564. [{name:'广州'},{name:'盐城'}]
  565. ]
  566. }
  567. }
  568. ]
  569. };
  570. if (myChart && myChart.dispose) {
  571. myChart.dispose();
  572. }
  573. myChart = BMapExt.initECharts(container, curTheme);
  574. window.onresize = myChart.resize;
  575. BMapExt.setOption(option, true)
  576. </textarea>
  577. </div><!--/.well -->
  578. </div><!--/span-->
  579. <div id="graphic" class="col-md-8">
  580. <div id="main" class="main" style="height: 530px;"></div>
  581. <div>
  582. <button type="button" class="btn btn-sm btn-success" onclick="refresh(true)">刷 新</button>
  583. <span class="text-primary">切换主题</span>
  584. <select id="theme-select"></select>
  585. <span id='wrong-message' style="color:red"></span>
  586. </div>
  587. </div><!--/span-->
  588. </div><!--/row-->
  589. </div><!--/.fluid-container-->
  590. <footer id="footer"></footer>
  591. <!-- Le javascript
  592. ================================================== -->
  593. <!-- Placed at the end of the document so the pages load faster -->
  594. <script src="../../../doc/asset/js/jquery.min.js"></script>
  595. <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=ZUONbpqGBsYGXNIYHicvbAbM"></script>
  596. <script type="text/javascript" src="../../../doc/asset/js/echartsHome.js"></script>
  597. <script src="../../../doc/asset/js/bootstrap.min.js"></script>
  598. <script src="./BMap.js"></script>
  599. </body>
  600. </html>