echarts.registerMap('lockdatav', data, { "妈祖": { // 左上角经度 left: 120.178644, // 左上角纬度 top: 24.84237, // 经度横跨的范围 width: 0.21 }, "金门": { left: 119.847492, top: 24.270233, width: 0.21 } }); var myChart = echarts.init(document.getElementById('map')); var option = {}
Done !