本人想用echarts把区级的具体地图详情显示出来,怎么做呢
echarts吧
全部回复
仅看楼主
level 2
想做成这个样子的
可是我的水平就只做出来了个框框而已,没有里面的具体每个街道,下面是我的代码,怎么改才能实现,谢谢大家了
myChart = echarts.init(document.getElementById('main'));
myChart.showLoading();
$.get('tongzhou.json', function (geoJson) {
myChart.hideLoading();
echarts.registerMap('tongzhou', geoJson, {
'张家湾镇': {
left: -131,
top: 25,
width: 15
}
});
myChart.setOption(option = {
title: {
text: '通州区'
},
tooltip: {
trigger: 'item',
formatter: '{b}<br/>{c} (p / km2)'
},
toolbox: {
show: true,
orient: 'vertical',
left: 'right',
top: 'center',
feature: {
dataView: {readOnly: false},
restore: {},
saveAsImage: {}
}
},
visualMap: {
min: 800,
max: 50000,
text:['High','Low'],
realtime: false,
calculable: true,
color: ['orangered','yellow','lightskyblue']
},
series: [
{
name: '通州区',
type: 'map',
mapType: 'tongzhou', // 自定义扩展图表类型
itemStyle:{
normal:{label:{show:true}},
emphasis:{label:{show:true}}
},
data:[
],
// 自定义名称映射
nameMap: {
}
}
]
});
});
2016年05月23日 03点05分 1
level 2
框框是存了个GPS地址文件吗?连点成线的那种
2016年05月27日 03点05分 2
level 1
你这个tongzhou.json路径怎么搞的
2017年08月02日 09点08分 4
level 7
Tong zhou的json哪弄的。。
2017年08月03日 12点08分 5
level 1
挖贴出来
楼主 那个区级的地图你都有弄出来了吗?
2017年09月08日 03点09分 6
level 1
请问楼主有县级JS或者json吗??可以分享下不
2017年12月01日 09点12分 7
level 1
麻皮 一群人不会就知道问
2018年06月01日 04点06分 8
level 1
楼主你的那个效果实现了吗
2018年12月13日 06点12分 11
level 1
我也想做这样的效果但是怎么都实现不了
2018年12月13日 06点12分 12
1