Sign in to follow this  
duckndive

printing page - map and data not showing

Recommended Posts

Wonder if anyone can help. We've created a php page that dynamically loads xml data into FusionMap and all works wonderfully. The client requires a print page button that will print the entire page as it appears (or as close as possible) via a button link within the page. We've tried all sorts of things, printing through the browser, using javascript, printing as pdf and other techniques, but they all suffer the same problem, which is that either the map and data do not render at all or the map part renders (without data).

 

 

 

The 'save as image' routine works, but that doesn't print the entire page, of course.

 

 

 

The brief calls for a cross-browser, cross platform solution that should not require the installation of third-party software. Any suggestions much appreciated:

 

 

 

here's the development version (the print page button within the nav bar doesn't actually do anything at the moment.

 

 

 

http://79.170.40.226/tecirc.com/index.php

Share this post


Link to post
Share on other sites

Hello,

 

 

 

Could you please try removing one line of code from the wrapper div and see if things work?

 

 

 

var map = new FusionMaps("maps/C_FCMap_NorthAmerica.swf", "map1Id", 708.75, 405, "0", "1");

 

map.setDataURL("xml.php?id=NA");

 

//map.addParam("WMode", "Transparent");

 

map.render("mapDiv");

 

 

 

Hope this helps.

Share this post


Link to post
Share on other sites

Thank you for the suggestion. The bits of code you are referring to (map.addParam("WMode", "Transparent")) are there so that the dropdown menus will dropdown in front of the map. Without this, the dropdowns will be hidden behind the map regardless of whatever z-index settings are defined for the div containing the map and the dropdown nav bar.

 

 

 

All that aside, alas, having tried your suggestion, i'm sorry to report that even removing the code doesn't actually fix the problem.

 

 

 

Do you have any further guidance?

 

 

 

Many thanks.

Share this post


Link to post
Share on other sites

Anything new on this?

 

 

 

I've got the same problem, and still looking for a solution.

 

 

 

Actually the problem regards in flash, not only fusion-maps ones. :hehe:

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