mipa

Members
  • Content count

    2
  • Joined

  • Last visited

About mipa

  • Rank
    Forum Newbie
  1. Issues Priting A Map

    seems that it works with FCMap_World.swf but not with FCMap_WorldwithCountries.swf
  2. Hi, I'm trying to print a map inside a page with fusioncharts inclused. the charts are rendered without problems, using the printmanager, but the fields of the maps are always empty in print. after few hours without figuring out why, i've downloaded the newest trial of fusion maps, end even with using the printing example from the manual, I'm unable to print the map.. what i'm doin wrong? does that code work for anybody? <html> <head> <title>FusionCharts Print Manager</title> <script type="text/javascript" src="FusionMaps_XT_Trial/Maps/FusionCharts.js"></script> </head> <body> <div id="mapContainerDiv">FusionMaps XT will load here!</div> <script type="text/javascript"><!-- FusionCharts.printManager.enabled(true); var myMap = new FusionCharts( { "swfUrl" : "FusionMaps_XT_Trial/Maps/FCMap_WorldwithCountries.swf", "width" : "800", "height" : "500", "renderAt" : "mapContainerDiv", "dataFormat" : "xml", "id" : "mapContainer", "dataSource" : "<map> <colorRange> <color minValue='288390' maxValue='480652' displayValue='Very High' color='B80000' /> <color minValue='192260' maxValue='288390' displayValue='High' color='ECA600' /> <color minValue='96137' maxValue='192260' displayValue='Moderate' color='FFCC33' /> <color minValue='0' maxValue='96137' displayValue='Very Low' color='008200' /></colorRange><data></data></map>" } ).render(); FusionCharts.addEventListener ( FusionChartsEvents.PrintReadyStateChange , function (identifier, parameter) { if(parameter.ready){ alert("Map is now ready for printing."); document.getElementById('printButton').disabled = false; } }); // --></script> <input type="button" onclick="FusionCharts.printManager.managedPrint()" value="Managed Print" disabled="disabled" id="printButton" > </body> </html>