87,910
社区成员
发帖
与我相关
我的任务
分享
你的做好了没有 ,怎么做的呀
<script type="text/javascript">
var mapdata = {"type": "FeatureCollection", "features": [{"type":"Feature","properties":{"name":"丰台区","id":"110106"},"geometry":{"type":"MultiPolygon","coordinates":[[[[116.317345,39.8938430000001],[116.321324492188,39.8769472480469],[116.35845828125,39.8653823066407],[116.377345,39.873843],[116.39634890625,39.8501113105469],[116.411793242188,39.8693959785156],[116.437345,39.873843],[116.454151640625,39.8484108710938],[116.427345,39.833843],[116.421881132813,39.8293056464844],[116.407515898438,39.8120082832032],[116.431300078125,39.7922487617188],[116.369420195313,39.7793056464844],[116.352808867188,39.7993056464844],[116.32748171875,39.8083803535157],[116.302413359375,39.7677419257813],[116.284703398438,39.7890627265625],[116.247345,39.793843],[116.2157825,39.8279079414063],[116.192530546875,39.778637921875],[116.162877226563,39.7798122382813],[116.152535429688,39.7686525703125],[116.1217590625,39.7590334296875],[116.122545195313,39.7788430000001],[116.122125273438,39.7894289375001],[116.085533476563,39.7879787421875],[116.072535429688,39.8290334296875],[116.047345,39.843843],[116.05388796875,39.8544655585938],[116.131158476563,39.8800307441406],[116.157345,39.883843],[116.210953398438,39.8771450019531],[116.231793242188,39.8893959785157],[116.247345,39.8938430000001],[116.292506132813,39.8882009101563],[116.317345,39.8938430000001]]]]}}]};
echarts.registerMap('丰台区', mapdata);
var chart = echarts.init(document.getElementById('chart'));
var option = {
title: {
text: '丰台区',
},
series: [
{
type: 'map',
map: '丰台区'
}
]
}
chart.setOption(option);
</script>