numair


hi,
i am working on virtual earth API. it is very interactive API. but i have one problem. when i map the direction between two locations then i want the print of that direction mapping now the problem is that if i am using IE then it is simple to print a map on paper
by calling "javascript:window.print()" on any event. but problem arise when i take a print from FireFox. the whole line of direction is printed out but the map does not print on paper. please help me i am in serious trouble due to this problem.




Re: Virtual Earth printing Maps

Derek Chan


Numair,

What version of the API are you using I believe this occurred in Version 4.0 and is now fixed in Version 5.0. I'd suggest porting over to the newest version if that is the case.

Hope that helps,







Re: Virtual Earth printing Maps

wjcyg

This issue is not fixed in v5. This issue was reported a long time ago, but I have never seen a resolution.

When I first come to a page with a map displayed using Firefox and I print the page, it works fine. If I move the map and try to print again, the custom pushpins, Virtual Earth logo (in the lower left corner) and map scale and copyright info (in the lower right corner) all print, but the map tiles don't.

Sorry, Numair. I wish I had better news.

Walt






Re: Virtual Earth printing Maps

numair

actually when one go to http://maps.live.com and find the route between any two points and then send to print from the embeded print menu it prints perfect even in firefox but when you want to send print from (firefox) browser's print option then problem occurs.

Any one who can resolve this issue. I will be grateful to him/her.






Re: Virtual Earth printing Maps

Derek Chan

Odd the printing problem was fixed at one point during V5 but now it looks like its broken again






Re: Virtual Earth printing Maps

bberndtson

Do you have a resolution you can post






Re: Virtual Earth printing Maps

mdevalla

Hello,
Me too one of the person who is much worried...My client was need it strictly and waiting for it..if some one has solved it please send me as well..

Thnaks in advance..





Re: Virtual Earth printing Maps

TheClansman

I have maps printing in Firefox, basically I load the map into an invisible iframe and print that..I can't really post all my code, but I think the main thing you need to do is before you print change the z-index of all the tiles to something like 70..here is my code for doing that;

Code Block

var tiles = theMap.getElementsByTagName("img");
for (var i = tiles.length-1; i>=0; i--)
{
tiles[i].style.zIndex = 70;
}


So yeah, basically just set the map = to wherever you have your map, and run this before you do your print and it should work..







Re: Virtual Earth printing Maps

SoulSolutions

We had some interesting code post on ViaWindowsLive to solve most printing issues, it is unsupported but may help you out of your problems:

http://www.viawindowslive.com/Articles/VirtualEarth/PrintinginVirtualEarth.aspx

John.