Sign in to follow this  
mipa

Issues Priting A Map

Recommended Posts

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>

Share this post


Link to post
Share on other sites

Hey,

 

Apologies for the delayed response.

 

FCMap_WorldWithCountries.swf issue related to printing was a known issue. Our developers have currently fixed the issue internally.

 

The updated fix will be available in our next service release of FusionMaps.

 

Hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this