当前位置: 首页 > 工具软件 > FusionMaps > 使用案例 >

FusionMaps使用

魏宸
2023-12-01
function myJS(at){
        alert(at);    
    }
var map = new FusionCharts('./ui/JScript/flashSwf/FCMap_China2.swf', "Map1Id", "800", "540", "0", "0");
          map.setDataXML("<map showShadow='0' showBevel='1' showMarkerLabels='1'  borderColor='00324A' fillColor='F0FAFF' hoverColor='C0D2F8' baseFont='Verdana' baseFontSize='12' markerBorderColor='000000' markerBgColor='FF5904' markerRadius='6' legendPosition='bottom' useHoverColor='1' showMarkerToolTip='1' showCanvasBorder='1' canvasBorderColor='f1f1f1' canvasBorderThickness='2' borderColor='00324A'  hoverColor='C0D2F8'>       <data>   <entity id='CN.AH' displayValue='安徽' toolText='安徽,53台AC' color='FF0000'  link='JavaScript:myJS(\"安徽\");'/><entity id='CN.SH' displayValue='上海' toolText='上海,53台AC' color='FF0000'  link='JavaScript:myJS(\"上海\");'/> </data>  </map>");
    
       map.render("view_map_pn");

 类似资料: