jQuery地图插件-jqvmap
程序员文章站
2024-03-05 14:35:01
...
用法:
<script src="js/jquery.vmap.js"></script>
<script src="js/jquery.vmap.world.js"></script>
<script src="js/jquery.vmap.sampledata.js"></script>
<script>
jQuery('#vmap').vectorMap({
map: 'world_en',
backgroundColor: null,
color: '#ffffff',
hoverOpacity: 0.7,
selectedColor: '#666666',
enableZoom: true,
showTooltip: true,
values: sample_data,
scaleColors: ['#C8EEFF', '#006491'],
normalizeFunction: 'polynomial'
});
</script>
<div id="vmap" style="width:%20600px;%20height:%20400px;"></div>
上一篇: Android绘制音乐播放器示波器
下一篇: jQuery中事件的冒泡和默认行为